test(bigquery): add type coverage tests#118
Merged
anoop-narang merged 4 commits intomainfrom Feb 19, 2026
Merged
Conversation
Closed
Cover all 12 BigQuery types (BOOL, INT64, FLOAT64, NUMERIC, BIGNUMERIC, STRING, BYTES, DATE, DATETIME, TIMESTAMP, TIME, JSON) with the same fixture-based harness used by Postgres, MySQL, and DuckDB tests. Tests are gated behind BQ_SERVICE_ACCOUNT_KEY_PATH, BQ_PROJECT_ID, and BQ_DATASET env vars and skip gracefully when credentials are unavailable.
Move the shared `create_test_secret_manager` helper from four duplicate definitions (postgres, mysql, duckdb, bigquery) into `harness.rs` and re-export `SecretManager` so backend test files import it from one place.
BigQuery REST API strips trailing zeros from NUMERIC/BIGNUMERIC values
(e.g. 0.00 → "0", 100.00 → "100"), causing exact string comparisons to
fail even though the values are numerically equal.
Use Approx{epsilon:0.0} for Decimal semantic types so rust_decimal
normalizes trailing zeros before comparing, matching the existing
pattern used for JSON semantic comparison.
8dd54a9 to
c926fd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BQ_SERVICE_ACCOUNT_KEY_PATH,BQ_PROJECT_ID,BQ_DATASET) and skip gracefully when not setcreate_test_secret_managerfrom postgres/mysql/duckdb/bigquery test files intoharness.rs