Skip to content

GH-49785: [C++][FlightRPC][ODBC] Get ODBC tests passing on Linux#49786

Open
justing-bq wants to merge 2 commits into
apache:mainfrom
Bit-Quill:gh-49785-fix-linux-tests
Open

GH-49785: [C++][FlightRPC][ODBC] Get ODBC tests passing on Linux#49786
justing-bq wants to merge 2 commits into
apache:mainfrom
Bit-Quill:gh-49785-fix-linux-tests

Conversation

@justing-bq
Copy link
Copy Markdown
Contributor

@justing-bq justing-bq commented Apr 17, 2026

Rationale for this change

After getting the tests building on Linux, the next step is to get all the tests passing.
Resolves #49785.

What changes are included in this PR?

Miscellaneous fixes.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Depends on #49668 and #49784 before being ready for review.

@github-actions
Copy link
Copy Markdown

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

@justing-bq justing-bq force-pushed the gh-49785-fix-linux-tests branch 2 times, most recently from e35dfe8 to 9e8272d Compare May 20, 2026 18:00
@justing-bq justing-bq force-pushed the gh-49785-fix-linux-tests branch from 9e8272d to 0ef857d Compare May 21, 2026 16:54
@justing-bq justing-bq marked this pull request as ready for review May 21, 2026 17:07
@justing-bq justing-bq force-pushed the gh-49785-fix-linux-tests branch from 0ef857d to 3439e98 Compare May 21, 2026 19:01
@justing-bq
Copy link
Copy Markdown
Contributor Author

@lidavidm @kou
Please take a look when you have time.

@kou
Copy link
Copy Markdown
Member

kou commented May 22, 2026

Is the ODBC Linux job failure tracked?
https://github.com/apache/arrow/actions/runs/26246962168/job/77247867378?pr=49786

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Flight SQL ODBC C++ test suite to pass on Linux by updating platform-specific expectations, selectively disabling known-problematic tests on Linux, and re-enabling the ODBC test target in Linux CI.

Changes:

  • Update multiple ODBC tests to reflect Linux/Unix-ODBC vs Windows vs macOS driver-manager behavior (return codes, SQLSTATEs, and reported info strings).
  • Disable a subset of metadata-related tests on Linux due to an acknowledged BlockingQueue issue (GH-49702).
  • Re-enable arrow-flight-sql-odbc-test execution on Linux in CI.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cpp/src/arrow/flight/sql/odbc/tests/type_info_test.cc Adjust expected SQLGetTypeInfo results for SQL_TYPE_* across Windows vs non-Windows.
cpp/src/arrow/flight/sql/odbc/tests/tables_test.cc Reorder typed tests and disable several table-metadata tests on Linux (GH-49702).
cpp/src/arrow/flight/sql/odbc/tests/statement_test.cc Adjust varbinary byte comparisons and add Linux-specific expectations for some APIs.
cpp/src/arrow/flight/sql/odbc/tests/statement_attr_test.cc Linux-specific SQLSTATE expectation for an unsupported stmt attribute.
cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.h Add kErrorState00000 constant for tests expecting a “success” SQLSTATE.
cpp/src/arrow/flight/sql/odbc/tests/get_functions_test.cc Restrict SQLGetFunctions tests to Windows due to Unix driver-manager limitations.
cpp/src/arrow/flight/sql/odbc/tests/errors_test.cc Platform-specific expectations for invalid-handle behavior and SQLSTATE differences.
cpp/src/arrow/flight/sql/odbc/tests/connection_info_test.cc Disable one info test on Linux and adjust expected SQL_ODBC_VER values.
cpp/src/arrow/flight/sql/odbc/tests/connection_attr_test.cc Add pre-connect fixture and adjust platform-specific behavior for several connection attributes.
cpp/src/arrow/flight/sql/odbc/tests/columns_test.cc Disable column-metadata helpers/tests on Linux (GH-49702) and tighten Unicode column checks.
ci/scripts/cpp_test.sh Stop excluding arrow-flight-sql-odbc-test on Linux.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cpp/src/arrow/flight/sql/odbc/tests/statement_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/statement_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/connection_info_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/connection_attr_test.cc Outdated
@justing-bq
Copy link
Copy Markdown
Contributor Author

justing-bq commented May 22, 2026

Is the ODBC Linux job failure tracked? https://github.com/apache/arrow/actions/runs/26246962168/job/77247867378?pr=49786

This failure is due to a problem with arrow-flight-test.
arrow-flight-sql-odbc-test is passing fine.

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels May 22, 2026
@justing-bq justing-bq force-pushed the gh-49785-fix-linux-tests branch from eb84cd0 to 549d4c2 Compare May 22, 2026 18:16
@alinaliBQ
Copy link
Copy Markdown
Collaborator

Is the ODBC Linux job failure tracked? https://github.com/apache/arrow/actions/runs/26246962168/job/77247867378?pr=49786

This failure is due to a problem with arrow-flight-test. arrow-flight-sql-odbc-test is passing fine.

Yup, and the failure is tracked in issue #49767. cc @kou

@justing-bq
Copy link
Copy Markdown
Contributor Author

@kou @lidavidm
Comments addressed. Please review.

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.

[C++][FlightRPC][ODBC] Get ODBC tests passing on Linux

4 participants