Skip to content

fix(bigquery-jdbc): update format validation tests to create tables for the test#13588

Open
logachev wants to merge 2 commits into
mainfrom
kirl/format_test_create_table
Open

fix(bigquery-jdbc): update format validation tests to create tables for the test#13588
logachev wants to merge 2 commits into
mainfrom
kirl/format_test_create_table

Conversation

@logachev

Copy link
Copy Markdown
Contributor

Test was broken twice by accidental changes to existing table; This will prevent further breaks

@logachev logachev requested review from a team as code owners June 30, 2026 01:02

@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 introduces a new test table all_bq_types containing various BigQuery data types and populates it with sample data in ITBase.java. It also updates the integration tests in ITBigQueryJDBCTest.java to dynamically reference this table using the configured project ID and dataset. The reviewer identified an issue where using CREATE TABLE IF NOT EXISTS alongside an unconditional INSERT INTO is not idempotent, as subsequent test runs will append duplicate rows. They suggested using CREATE OR REPLACE TABLE to ensure a clean setup on each run.

Comment thread java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java Outdated
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.

3 participants