BigQuery’s Drive preview reads files as the caller and analyzes only the first Sheet tab
Google’s allowlisted preview lets SQL pass Drive files directly to AI functions. A shared BigQuery connection can’t authorize Drive reads, and a successful query can still miss data on later tabs.
Google’s December 1 BigQuery release notes announce an allowlisted preview that lets SQL queries discover Google Drive files and pass them directly to BigQuery’s generative AI functions. For an analytics team testing the feature, two details matter more than the SQL syntax: BigQuery reads Drive as the identity running the query, and for a Google Sheet it exports only the first tab.
Sharing the query doesn’t share access to the file
An ObjectRef is a reference to a file, not the file itself. A Cloud Storage reference can name a BigQuery connection to authorize access. A Drive reference can’t: Google’s permissions guide says Drive uses direct access only. The caller needs at least viewer access. That can be an analyst using their Google credentials or a service account the file has been shared with. If two analysts run the same query against a document that only one can open in Drive, don’t expect the shared SQL or the project’s preview access to substitute for file permissions. Test as the intended caller, not just as the person who built the query.
The ObjectRef guide shows two entry points: OBJ.MAKE_REF for a known file URL and OBJ.LIST for discovery. The folder listing is non-recursive and capped at 10,000 files per folder. A wildcard appended to the folder URL is silently ignored, so use a SQL WHERE clause to narrow the results. Google’s example also filters out folders and shortcuts before passing the references to an AI function; shortcuts aren’t resolved to their targets.
A successful query can still leave out the numbers you need
BigQuery exports Google Docs as Markdown, Slides as plain text and Sheets as CSV, according to the file limits. Only the first Sheet tab is exported. The per-file limit is 7 MiB of exported content for these formats and 7 MiB of raw content for binary files. Consider a workbook with a cover sheet followed by monthly figures: a model can produce a summary of the cover sheet without ever seeing the figures. For a pilot, check which tab supplies the input and keep any calculation that needs the full workbook out of this path until you’ve verified a separate way to supply that data. These are implications of the documented preview, not results from a live test.
sources
- Google Cloud: BigQuery December 1 release notesdocs.cloud.google.com
- Google Cloud: Work with ObjectRef values for Cloud Storage and Google Drive objectsdocs.cloud.google.com
- Google Cloud: Analyze multimodal data in BigQuerydocs.cloud.google.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026