Skip to content

test : add integration test for SQLSpecialColumns API - #1643

Draft
Anshu6250 wants to merge 1 commit into
mainfrom
SQLSpecialColumns_integration_tests
Draft

test : add integration test for SQLSpecialColumns API#1643
Anshu6250 wants to merge 1 commit into
mainfrom
SQLSpecialColumns_integration_tests

Conversation

@Anshu6250

@Anshu6250 Anshu6250 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR establishes the integration testing baseline for the SQLSpecialColumns API against the existing driver, in preparation for its implementation in the new BQ driver.

Key Changes:

  • Test Utilities: Added the Catalog::GetSpecialColumns helper to fetch and map special column metadata.
  • Functional Parity: Added tests in catalog_test.cc to verify the existing driver's behavior for SQL_BEST_ROWID (with and without primary keys) and SQL_ROWVER.
    • Note: The existing driver acts as a stub here and always returns an empty result set, which these tests explicitly assert for parity.
  • Metadata Validation: Added StatementTest.SQLSpecialColumns_VerifyMetadata to strictly ensure the returned schema matches the 8 standard columns defined by the ODBC 3.8 specification.

Note: All added tests are wrapped in #ifndef BQ_DRIVER_INTEGRATION_TESTS to ensure they exclusively run against the existing driver until the API is implemented in our new driver.

pipeline: link

@Anshu6250
Anshu6250 force-pushed the SQLSpecialColumns_integration_tests branch 2 times, most recently from c255959 to f9e7324 Compare August 25, 2026 12:19
@Anshu6250 Anshu6250 changed the title added testcases test: Add integration test for SQLSpecialColumns API Aug 25, 2026
@Anshu6250 Anshu6250 changed the title test: Add integration test for SQLSpecialColumns API test: add integration test for SQLSpecialColumns API Aug 25, 2026
@Anshu6250 Anshu6250 changed the title test: add integration test for SQLSpecialColumns API test : add integration test for SQLSpecialColumns API Aug 25, 2026
@Anshu6250
Anshu6250 force-pushed the SQLSpecialColumns_integration_tests branch from f9e7324 to 7839a25 Compare August 25, 2026 13:29
conn, SQL_BEST_ROWID, kDatasetName, kCatalogDatasetTableWithPK);

// existing driver returns an empty result set for SQL_BEST_ROWID.
EXPECT_TRUE(special_columns.empty());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why is it empty for every test case?

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