Kanji
・Cloud engineer / freelance ・Born in 1993 ・From Ehime / Living in Shibuya, Tokyo ・5 years AWS experience Profile details
Table of Contents
If the same container reads a table in one project and fails in another, I would check the API version before changing IAM. On November 25 Google announced the retirement of BigQuery Storage API v1beta1. Since November 20, access has been limited to projects with recorded usage between March 1 and August 31, 2026. After shutdown on August 31, 2027, the legacy endpoint will return NOT_FOUND . That future behavior alone cannot diagnose a failure today. Google Cloud release notes
NOT_FOUND
v1beta1
v1
google.cloud.bigquery.storage.v1
I ran this local check against a single example import. The output below is the actual match.
echo 'from google.cloud import bigquery_storage_v1beta1' | rg -o 'bigquery_storage_v1beta1|google\.cloud\.bigquery\.storage\.v1beta1'
bigquery_storage_v1beta1
For an inventory, run rg -n 'bigquery_storage_v1beta1|storage[./]v1beta1' in the source directory for each deployment. A connector bundled in a JAR can select the old API internally even if the search finds nothing. Check the dependency inventory of the deployed image against the connector release notes and record which jobs need rebuilding.
rg -n 'bigquery_storage_v1beta1|storage[./]v1beta1'
# 1. Scan deployment source directories and build manifests rg -n 'bigquery_storage_v1beta1|storage[./]v1beta1|BigQueryStorageClient' ./ # 2. Inspect shaded fat JARs inside container images for legacy v1beta1 classes jar tf /app/libs/spark-bigquery-shaded.jar | grep -E 'google/cloud/bigquery/storage/v1beta1' # 3. Query Cloud Audit Logs for active v1beta1 RPC calls in production projects gcloud logging read 'protoPayload.serviceName="bigquerystorage.googleapis.com" AND protoPayload.methodName=~"google.cloud.bigquery.storage.v1beta1.*"' \ --project=YOUR_PROJECT_ID \ --limit=20 \ --format="table(timestamp, protoPayload.authenticationInfo.principalEmail, protoPayload.methodName)"
When updating a direct client, replace BigQueryStorageClient ( v1beta1 ) with BigQueryReadClient under google.cloud.bigquery.storage.v1.BigQueryRead , and pass the table resource path projects/{project}/datasets/{dataset}/tables/{table} in ReadSession.table instead of a separate TableReference .
BigQueryStorageClient
BigQueryReadClient
google.cloud.bigquery.storage.v1.BigQueryRead
projects/{project}/datasets/{dataset}/tables/{table}
ReadSession.table
TableReference
# Legacy v1beta1 (Retiring: google.cloud.bigquery.storage.v1beta1.BigQueryStorage) # from google.cloud import bigquery_storage_v1beta1 # client = bigquery_storage_v1beta1.BigQueryStorageClient() # Modern GA v1 (google.cloud.bigquery.storage.v1.BigQueryRead) from google.cloud import bigquery_storage_v1 from google.cloud.bigquery_storage_v1 import types client = bigquery_storage_v1.BigQueryReadClient() read_session = client.create_read_session( parent="projects/your-project-id", read_session=types.ReadSession( table="projects/your-project-id/datasets/verify_ds/tables/immutable_fixture_v1", data_format=types.DataFormat.ARROW, read_options=types.ReadSession.TableReadOptions( selected_fields=["order_id", "event_date", "amount_numeric", "status"], row_restriction="event_date = '2026-11-30'", ), ), max_stream_count=2, )
Create a small immutable test table containing duplicate keys, nulls and high-precision NUMERIC values. Read it through v1 using the same identity, projection and filter as the scheduled job. Compare the schema and consume every stream. Count occurrences of each complete row independently of row order. Comparing only the total count can hide a missing row replaced by a duplicate.
The following Python helper consumes all streams from a ReadSession and verifies both schema fidelity and order-independent row multiplicity using collections.Counter :
ReadSession
collections.Counter
from collections import Counter import pyarrow as pa def verify_v1_cutover(client, read_session, expected_schema: dict, expected_rows: list[tuple]) -> bool: batches = [] for stream in read_session.streams: for message in client.read_rows(stream.name).messages(): batches.append(message.arrow_record_batch) table = pa.Table.from_batches(batches) actual_schema = {field.name: str(field.type) for field in table.schema} if actual_schema != expected_schema: raise ValueError(f"Schema mismatch: actual={actual_schema}, expected={expected_schema}") cols = list(expected_schema.keys()) py_dict = table.select(cols).to_pydict() actual_rows = [ tuple(py_dict[col][i] for col in cols) for i in range(table.num_rows) ] # Compare full-row multiplicity independently of stream ordering if Counter(actual_rows) != Counter(expected_rows): raise ValueError("Row multiplicity mismatch detected between v1 streams and fixture") return True
If the counts differ, hold the rollout and inspect type conversions and stream completion logs. Where the old API is already restricted, use the expected values recorded when creating the fixture. The cloud migration and reconciliation procedure is untested in production.
Real-time AI quant analysis of earnings reports, corporate filings, and momentum indicators for global equities and Japanese stocks.
Master conversation skills with realistic AI phone training and 5-axis feedback. Includes 16-lesson interactive academy and studio AI portraits.
Effortlessly snap receipts for instant AI itemization. Integrated with LINE for seamless group expense tracking and pain-free settlement.
Interactive AI personas (Fortune Teller, Butler, Bartender) host real-time games, challenges, and conversation starters for unforgettable gatherings.
Unbiased healthcare database featuring zero-additive filters and active ingredient cost performance metrics.