Skip to content

chore: Remove information_schema reference - #1656

Open
shadabraza-droid wants to merge 1 commit into
googleapis:mainfrom
shadabraza-droid:remove_information_schema
Open

shadabraza-droid wants to merge 1 commit into
googleapis:mainfrom
shadabraza-droid:remove_information_schema

Conversation

@shadabraza-droid

@shadabraza-droid shadabraza-droid commented Sep 9, 2026

Copy link
Copy Markdown

Remove the INFORMATION_SCHEMA reference from all the files.

For file google/cloud/odbc/bq_driver/internal/odbc_sql_foreign_keys.cc
Old: SQLForeignKeys() queried INFORMATION_SCHEMA using FetchBQData() to get foreign-key rows.

New: It uses tables.list via GetFilteredTables() and FetchBQTableData() to read ForeignKey metadata directly, then converts it to ODBC rows with AppendForeignKeyRows().

This removes the INFORMATION_SCHEMA dependency while preserving the existing SQLForeignKeys() behavior.

@shadabraza-droid
shadabraza-droid requested a review from a team as a code owner September 9, 2026 21:38
@google-cla

google-cla Bot commented Sep 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@shadabraza-droid
shadabraza-droid marked this pull request as draft September 9, 2026 21:39
@shadabraza-droid
shadabraza-droid force-pushed the remove_information_schema branch from 1aaeb42 to bd879b8 Compare September 9, 2026 22:04
@shadabraza-droid shadabraza-droid changed the title Remove information_schema reference chore: Remove information_schema reference Sep 10, 2026
@shadabraza-droid
shadabraza-droid force-pushed the remove_information_schema branch 2 times, most recently from 960a1d4 to e933d29 Compare September 10, 2026 13:46
@shadabraza-droid
shadabraza-droid marked this pull request as ready for review September 10, 2026 19:35
Comment thread google/cloud/odbc/bq_driver/internal/odbc_sql_tables_test.cc
Comment thread google/cloud/odbc/bq_driver/internal/odbc_sql_foreign_keys.cc
@shadabraza-droid
shadabraza-droid force-pushed the remove_information_schema branch 2 times, most recently from 79e9757 to 02deebd Compare September 14, 2026 21:05
@shadabraza-droid
shadabraza-droid force-pushed the remove_information_schema branch from 02deebd to 2f3541a Compare September 15, 2026 05:21
@@ -29,20 +29,6 @@ std::string const kNamedCatalogParam = "catalog_name";

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.

remove these as well , not being used anywhere infact this whole namespace can be removed

@shadabraza-droid
shadabraza-droid force-pushed the remove_information_schema branch from 2f3541a to d2d09e1 Compare September 15, 2026 07:01
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