Skip to content

BigQuery: re-pinned compression and SHOW_GRAPH_EXPAND_SCHEMA pages, with 35 dry-run receipts - #46

Merged
kvlonge merged 4 commits into
mainfrom
bigquery-doc-drift-repin
Dec 6, 2026
Merged

kvlonge merged 4 commits into
mainfrom
bigquery-doc-drift-repin

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

BigQuery's documentation changed after the last pin: the new compression-functions page documents ZSTD_COMPRESS, ZSTD_DECOMPRESS_TO_BYTES and ZSTD_DECOMPRESS_TO_STRING, and BQ.SHOW_GRAPH_EXPAND_SCHEMA gains optional start_node and flatten_results arguments and types graph_name and start_node as STRING. The re-pinned catalogue derives new cases for them.

Changes

  • syntax/bigquery/cases: 18 cases for the three ZSTD forms. BQ.SHOW_GRAPH_EXPAND_SCHEMA's 18 cases are rebuilt: the graph is passed as the string 'SQLQUACK_DATASET.g1', start_node as 't1' and flatten_results as TRUE, and the form is read as its two productions with and without start_node. ( , v1 ) stays as the omitted-graph_name reject case; 10 cases of the old fills leave and 17 new ones arrive.
  • syntax/bigquery/receipts: 35 dry-run receipts appended (18 ZSTD, 17 SHOW_GRAPH_EXPAND_SCHEMA), 0 bytes processed or billed. Main's lines are unchanged.

Verification

  • The builder's --check against this tree: 0 stale; GoogleSQL parser gate: 0 disagreements.
  • Every SHOW_GRAPH_EXPAND_SCHEMA reject case is a BigQuery syntax error; the accept cases reach the OUT variable (Undeclared variable: v1), since a case setup cannot declare a script variable.

Builder: 16dc156c4aee56990cfaa2a1ca705024d68cbf60

kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Review at 3b2d720: changes requested on the SHOW_GRAPH_EXPAND_SCHEMA cases. The ZSTD cases hold.

Holds

  • The builder --check at 7b501c5fd reports 0 stale against this tree.
  • Both receipts files only append (0 removed lines). Each of the 23 new cases has a dry-run receipt for its exact SQL.
  • kad4c5fc786da keeps its SQL and receipt and gains o015 (the optional group absent).
  • ZSTD (18 cases): checked against the live compression-functions page.
    • level may be named or not, and size_limit is named only.
    • The accept cases (( b'a' ), ( b'a' , 1 ), level => 1, size_limit => 1024) are accepted.
    • Every reject case is a syntax error at the expected token.

Changes requested

  1. o002 (omit <graph_name>) moved from a refused case to an observed ( v1 ).
    • The new suppression says the grammar "leaves no comma that marks the missing graph_name". With the optional group absent, the grammar still writes ( <graph_name> , <output_schema> ), so omitting graph_name gives ( , v1 ).
    • That is what the removed kbb43a0cf1e59 wrote, and BigQuery refused it as a syntax error. The omission cases for the other two operands keep their commas: ( g1 , , v1 ) and ( g1 , 1 , , v1 ).
    • BigQuery also refuses the replacement ( v1 ), only later, for its argument count ("expects 2, 3, or 4 argument(s), 1 provided").
    • Keeping ( , v1 ) as a reject case meets o002 without a suppression. This PR would then keep kbb43a0cf1e59 and drop kc6e7d9eb31fa.
  2. For the builder PR, since it changes these cases: the page types graph_name as a STRING, '[project_id.]dataset.graph', and its example passes a string literal.
    • Every accept case passes the unquoted path SQLQUACK_DATASET.g1, which BigQuery refuses as "Unrecognized name", so they are credited only through that refusal.
    • o003 ("a valid identifier") and the observed string-literal neighbour o013 read the operand the other way round from the page.
    • The page also types start_node as STRING and flatten_results as BOOL, while the cases pass 1 and v1.

Splitting the ZSTD cases into their own PR would let them merge now.

…e as strings, with 17 dry-run receipts

The page types graph_name and start_node as STRING and flatten_results as BOOL. The form's cases are
rebuilt with 'SQLQUACK_DATASET.g1', 't1' and TRUE, and omitting graph_name keeps its comma again as
( , v1 ), the case BigQuery refused as a syntax error. The 5 superseded receipts this branch added
leave; 17 dry-run receipts at 0 bytes are appended after main's lines.
@kvlonge kvlonge closed this Dec 6, 2026
@kvlonge kvlonge reopened this Dec 6, 2026
@kvlonge kvlonge changed the title BigQuery: re-pinned compression and SHOW_GRAPH_EXPAND_SCHEMA pages, with 23 dry-run receipts BigQuery: re-pinned compression and SHOW_GRAPH_EXPAND_SCHEMA pages, with 35 dry-run receipts Dec 6, 2026

kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Fixes-only check at c235522 (builder 16dc156c4): approved. Both findings are fixed.

  1. o002:
    • The observe suppression is gone. The two-production reading (bound to catalogue sha 7b2782f9…) writes the same calls as the page's nested optional.
    • kbb43a0cf1e59 ( , v1 ) is back as o002's reject case, on its syntax-error receipt. The production with start_node has its own omission case, ( , 't1' , v1 ), also a syntax error.
    • ( v1 ) is no longer built.
  2. Fills:
    • graph_name and start_node are now string literals and flatten_results is TRUE, as the page types them.
    • The 3 accept cases now get through to Undeclared variable: v1, the OUT variable, rather than stopping at the graph name.
    • The unquoted m1 neighbours (o023, o026, o029) are observed and refused as "Unrecognized name". Every reject case is a syntax error at the expected token.

Bookkeeping

  • The builder --check at 16dc156c4 reports 0 stale against this tree. The form has 18 cases, each with a receipt for its exact SQL: 17 new dry-run receipts plus the existing kbb43a0cf1e59.
  • Both receipts files only append to main's lines.
  • The 10 cases that leave (5 reject, 5 accept) are exactly the 10 removed_cases entries, and the old kbb43a0cf1e59 entry is gone.
  • No id in the new retired group of 8 is still live, and the reissued ids (o022 to o033) are new.
  • The 18 ZSTD cases are unchanged from my earlier check.

@kvlonge
kvlonge merged commit 717196d into main Dec 6, 2026
2 of 3 checks passed
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.

1 participant