Google Cloud has made BigQuery ObjectRef generally available, letting data tables hold pointers to images, video, audio and documents stored in Cloud Storage. Google Cloud says the feature, along with multimodal analytics in BigQuery, is now out of preview.
ObjectRef is a built-in data type that points to a file outside BigQuery. It records the file's location, an authorizer, a version and metadata. These pointers sit in ordinary tables next to regular columns, so files and structured data share the same rows.
Google Cloud says this lets users pass multimodal, multi-column inputs to Gemini models in a single SQL query. The same data works in conversational analytics, where people ask questions in natural language. Previously, Google Cloud says, running inference on files meant orchestrating external machine learning workloads and stitching the results back into the warehouse.
The files stay in Cloud Storage, so nothing is duplicated, and the storage and BigQuery tables can change independently. Google Cloud says customers already use the approach to generate embeddings for vector search, classify content at scale and extract features from large document and media archives. Data can also be queried with BigQuery DataFrames, and ObjectRefs can be passed to Python functions that use libraries such as OpenCV.
Source: Google Cloud announcement.