Skip to content

GH-47719: [C++][FlightRPC] Extract SQLTables Implementation#48021

Merged
lidavidm merged 2 commits intoapache:mainfrom
Bit-Quill:sqlTables
Dec 9, 2025
Merged

GH-47719: [C++][FlightRPC] Extract SQLTables Implementation#48021
lidavidm merged 2 commits intoapache:mainfrom
Bit-Quill:sqlTables

Conversation

@justing-bq
Copy link
Copy Markdown
Contributor

@justing-bq justing-bq commented Oct 31, 2025

Rationale for this change

Addresses #47719

What changes are included in this PR?

SQLTables enabled. Table tests added.

Are these changes tested?

Tested locally on MSVC.

Are there any user-facing changes?

No.

@github-actions
Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

namespace {
// Helper Functions

std::wstring GetStringColumnW(SQLHSTMT stmt, int colId) {
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.

we might consider moving this GetStringColumnW to a more accessible place shared by all tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved to odbc_test_suite.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 31, 2025
@justing-bq justing-bq changed the title Extract SQLTables implementation GH-47719: [C++][FlightRPC] Extract SQLTables Implementation Nov 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2025

⚠️ GitHub issue #47719 has been automatically assigned in GitHub to PR creator.

@justing-bq
Copy link
Copy Markdown
Contributor Author

@lidavidm Could we get a review? Thanks.

@alinaliBQ
Copy link
Copy Markdown
Collaborator

I have rebased and tested the changes locally on MSVC

@justing-bq justing-bq marked this pull request as ready for review December 6, 2025 00:04
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 6, 2025

⚠️ GitHub issue #47719 has been automatically assigned in GitHub to PR creator.

Comment on lines +65 to +68
// Values are nulls
EXPECT_EQ(SQL_SUCCESS,
SQLTables(this->stmt, 0, sizeof(catalog_name), 0, sizeof(schema_name), 0,
sizeof(table_name), 0, sizeof(table_type)));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same here, let's be explicit with nullptr instead of 0

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.

Yup, fixed

Comment on lines +74 to +75
// All values and sizes are nulls
EXPECT_EQ(SQL_SUCCESS, SQLTables(this->stmt, 0, 0, 0, 0, 0, 0, 0, 0));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto

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.

fixed. Btw the sizes are supposed to be zeros instead of nulls, I have fixed the comment also

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting merge Awaiting merge labels Dec 6, 2025
alinaliBQ and others added 2 commits December 8, 2025 11:39
Co-authored-by: justing-bq <justin.gossett@improving.com>
Co-authored-by: alinalibq <alina.li@improving.com>
Co-Authored-By: rscales <robscales@icloud.com>
Address comment from David
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Dec 8, 2025
Copy link
Copy Markdown
Collaborator

@alinaliBQ alinaliBQ left a comment

Choose a reason for hiding this comment

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

Addressed comments from David. I will also check nullptr usages in other open PRs

Comment on lines +65 to +68
// Values are nulls
EXPECT_EQ(SQL_SUCCESS,
SQLTables(this->stmt, 0, sizeof(catalog_name), 0, sizeof(schema_name), 0,
sizeof(table_name), 0, sizeof(table_type)));
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.

Yup, fixed

Comment on lines +74 to +75
// All values and sizes are nulls
EXPECT_EQ(SQL_SUCCESS, SQLTables(this->stmt, 0, 0, 0, 0, 0, 0, 0, 0));
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.

fixed. Btw the sizes are supposed to be zeros instead of nulls, I have fixed the comment also

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Dec 9, 2025
@lidavidm lidavidm merged commit cb31765 into apache:main Dec 9, 2025
46 of 47 checks passed
@lidavidm lidavidm removed the awaiting merge Awaiting merge label Dec 9, 2025
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit cb31765.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

@justing-bq justing-bq deleted the sqlTables branch January 27, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants