Skip to content

fix: Register ValuesEntry helper in Observations PROTO BUNDLE#2023

Merged
SandeepTuniki merged 1 commit into
masterfrom
register-values-entry-spanner
May 21, 2026
Merged

fix: Register ValuesEntry helper in Observations PROTO BUNDLE#2023
SandeepTuniki merged 1 commit into
masterfrom
register-values-entry-spanner

Conversation

@SandeepTuniki
Copy link
Copy Markdown
Contributor

@SandeepTuniki SandeepTuniki commented May 21, 2026

This fixes the issue observed in http://b/511329206#comment9.

To enable native Spanner SQL engines and BigQuery Federation queries to parse map keys/values directly from the Observations PROTO column, the internal nested map-helper message org.datacommons.Observations.ValuesEntry must be explicitly registered inside the PROTO BUNDLE.

Without this, Spanner SQL queries fail when calling UNNEST(observations.values) with a "placeholder descriptor" error.

To enable native Spanner SQL engines and BigQuery Federation queries to parse map keys/values directly from the Observations PROTO column, the internal nested map-helper message `org.datacommons.Observations.ValuesEntry` must be explicitly registered inside the PROTO BUNDLE.

Without this, Spanner SQL queries fail when calling `UNNEST(observations.values)` with a "placeholder descriptor" error.
@SandeepTuniki SandeepTuniki requested a review from vish-cs May 21, 2026 05:14
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the schema.sql file to include org.datacommons.Observations.ValuesEntry in the PROTO BUNDLE to support UNNEST operations on map fields. Feedback indicates that this change will not be automatically applied to existing databases because the initialization logic skips DDL updates if tables are already present; manual updates or logic adjustments are recommended to ensure the schema is correctly updated.

Comment thread import-automation/workflow/ingestion-helper/schema.sql
@SandeepTuniki SandeepTuniki requested a review from gmechali May 21, 2026 05:15
@SandeepTuniki SandeepTuniki merged commit acb30d9 into master May 21, 2026
9 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.

2 participants