Skip to content

refactor(bigquery): Standardize SimpleQuery samples as used across multiple technologies#13446

Open
Kef131 wants to merge 3 commits into
googleapis:mainfrom
Kef131:refactor(bigquery)-_standarize_SimpleQuery_using_same_table_as_other_languages
Open

refactor(bigquery): Standardize SimpleQuery samples as used across multiple technologies#13446
Kef131 wants to merge 3 commits into
googleapis:mainfrom
Kef131:refactor(bigquery)-_standarize_SimpleQuery_using_same_table_as_other_languages

Conversation

@Kef131

@Kef131 Kef131 commented Jun 11, 2026

Copy link
Copy Markdown

Description

Fixes b/468097867

Updated the BigQuery simple query sample SimpleQuery.java and its integration test SimpleQueryIT.java to query the bigquery-public-data.usa_names.usa_1910_2013 public dataset instead of the old bigquery-public-data.samples.shakespeare dataset. This standardizes the query across samples in other languages.

Reference on other technologies: https://docs.cloud.google.com/bigquery/docs/running-queries#python

Checklist

  • I have followed Sample Format Guide
  • pom.xml parent set to latest shared-configuration
  • Appropriate changes to README are included in PR
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • Tests pass: mvn clean verify required (verified SimpleQueryIT integration test passes)
  • Lint passes: mvn -P lint checkstyle:check required (0 checkstyle violations found)
  • Static Analysis: mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only (Skipped due to JDK 25 compatibility issues with configured ErrorProne plugin version during compilation)
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

@Kef131 Kef131 requested review from a team as code owners June 11, 2026 22:14

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

Copy link
Copy Markdown
Contributor

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 BigQuery sample query and its integration test to query USA names data from Texas instead of the Shakespeare corpus. The feedback suggests updating the console output label from 'count:' to 'total_people:' to accurately reflect the semantic meaning of the retrieved sum.

@Kef131 Kef131 changed the title refactor(bigquery): Standardize SimpleQuery samples as usde across multiple technologies refactor(bigquery): Standardize SimpleQuery samples as used across multiple technologies Jun 11, 2026
…ery/SimpleQuery.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

1 participant