Skip to content

fix(bigquery): support LOAD DATA FROM FILES syntax#7482

Open
RedZapdos123 wants to merge 1 commit intotobymao:mainfrom
RedZapdos123:fix/bigquery-load-data-from-files
Open

fix(bigquery): support LOAD DATA FROM FILES syntax#7482
RedZapdos123 wants to merge 1 commit intotobymao:mainfrom
RedZapdos123:fix/bigquery-load-data-from-files

Conversation

@RedZapdos123
Copy link
Copy Markdown
Contributor

@RedZapdos123 RedZapdos123 commented Apr 9, 2026

Summary:

  • add BigQuery parser support for LOAD DATA ... FROM FILES(...) syntax used in BigQuery docs
  • keep existing LOAD DATA ... INPATH ... parsing behavior by falling back to the base parser when FROM FILES is not matched
  • make LoadData.inpath optional and add optional iles payload for BigQuery form
  • add BigQuery generator override to emit LOAD DATA [OVERWRITE|INTO TABLE ...] FROM FILES(...)
  • add BigQuery regression tests for both OVERWRITE ... FROM FILES(...) and INTO TABLE ... FROM FILES(...)

Closes #7480.

Validation:

  • Reproduced issue before fix: ParseError: Required keyword: 'inpath' missing
  • python -m pytest -q tests/dialects/test_bigquery.py -vv
  • python -m pytest -q
  • Direct parse reproduction now succeeds, and returns LoadData

The validations screenshots of the tests run, locally on WSL:

image image

Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQuery: LOAD DATA ... FROM FILES(...) raises ParseError: Required keyword 'inpath' missing

2 participants