Skip to content

Fix tests on Linux - #168

Merged
justing-bq merged 2 commits into
apache-odbcfrom
fix-linux-tests
Apr 17, 2026
Merged

Fix tests on Linux#168
justing-bq merged 2 commits into
apache-odbcfrom
fix-linux-tests

Conversation

@justing-bq

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

Copy link
Copy Markdown

Rationale for this change

We want our tests passing on Linux.

What changes are included in this PR?

Miscellaneous fixes.
Depends on #173

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@justing-bq
justing-bq force-pushed the fix-linux-tests branch 4 times, most recently from f3ef499 to 53eae43 Compare April 10, 2026 16:56
Comment thread .github/workflows/cpp_extra.yml
Comment thread cpp/src/arrow/flight/sql/odbc/tests/tables_test.cc Outdated
@justing-bq
justing-bq force-pushed the fix-linux-tests branch 6 times, most recently from 6b4bfe6 to 584dca8 Compare April 13, 2026 20:58
Comment thread cpp/src/arrow/flight/sql/odbc/tests/statement_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc
@justing-bq
justing-bq force-pushed the fix-linux-tests branch 4 times, most recently from ae29f34 to b2e73b6 Compare April 17, 2026 00:43
@justing-bq
justing-bq marked this pull request as ready for review April 17, 2026 02:52
Co-Authored-By: Alina (Xi) Li <96995091+alinaliBQ@users.noreply.github.com>
Comment thread cpp/src/arrow/flight/sql/odbc/tests/columns_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/get_functions_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/errors_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/errors_test.cc
Comment thread cpp/src/arrow/flight/sql/odbc/tests/connection_attr_test.cc
Comment thread cpp/src/arrow/flight/sql/odbc/tests/connection_attr_test.cc Outdated
}

#ifdef SQL_DRIVER_AWARE_POOLING_SUPPORTED
# ifndef __linux__

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Let's add comment

On Linux, unix-odbc doesn't support SQL_DRIVER_AWARE_POOLING_SUPPORTED 

I assume this is the reason we are disabling this test for Linux

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I've looked into this a bit more and discovered that (unlike the Windows and Mac driver managers) unixODBC hands off this attribute to the driver. But our driver does not have any SQLGetInfo logic for SQL_DRIVER_AWARE_POOLING_SUPPORTED.
I will create a ticket for this issue and mention it in a comment here.

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, just the lint fixes left

@justing-bq
justing-bq merged commit cc81fdb into apache-odbc Apr 17, 2026
@justing-bq
justing-bq deleted the fix-linux-tests branch April 17, 2026 19:34
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