Add BIGQUERY client-side statement#689
Conversation
Enable running BigQuery SQL from spanner-mycli with dedicated auth options, system variables, and result formatting that preserves headers on empty result sets. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Code Review
This pull request integrates BigQuery support into the CLI tool, allowing users to execute BigQuery SQL queries using the new BIGQUERY <sql> statement. The changes include adding the cloud.google.com/go/bigquery dependency, managing the lifecycle of the BigQuery client within the session, implementing value formatting for BigQuery data types, and introducing new configuration variables (CLI_BIGQUERY_PROJECT, CLI_BIGQUERY_LOCATION, and CLI_BIGQUERY_MAX_BYTES_BILLED). Unit tests have been added to verify the statement parsing, value formatting, and client option creation. No review comments were provided, and there is no additional feedback to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
BIGQUERY <sql>client-side statement for executing BigQuery SQL from spanner-mycli (works in batch mode and detached mode)CLI_BIGQUERY_PROJECT,CLI_BIGQUERY_LOCATION, andCLI_BIGQUERY_MAX_BYTES_BILLEDsystem variablesWithoutAuthentication)Test plan
make checkBIGQUERY SELECT 1against a real GCP projectBIGQUERY SELECT 1 WHERE FALSEconfirms header +Empty setCLI_BIGQUERY_MAX_BYTES_BILLEDis appliedMade with Cursor