Uh oh!
There was an error while loading. Please reload this page.
GH-47708: [C++][FlightRPC] Connection Attribute Support for ODBC - #47772
Conversation
alinaliBQ
commented
Oct 9, 2025
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| #ifdef SQL_ATTR_ASYNC_DBC_EVENT | ||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) { | ||
| this->Connect(); |
There was a problem hiding this comment.
SetUp() as David commented in other PR?
There was a problem hiding this comment.
removed this->Connect() from tests. we will move it to SetUp
kou
commented
Oct 10, 2025
Could you create new draft PRs after you complete other draft PRs to reflect comments in other draft PRs? |
alinaliBQ
commented
Oct 10, 2025
af5de2e to
e8c404cCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| #ifdef SQL_ATTR_ASYNC_DBC_EVENT | ||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) { | ||
| this->Connect(); |
There was a problem hiding this comment.
removed this->Connect() from tests. we will move it to SetUp
e8c404c to
c6c5af9Compare
alinaliBQ
left a comment
There was a problem hiding this comment.
Rebased on top of master
Uh oh!
There was an error while loading. Please reload this page.
| out_str_len /= arrow::flight::sql::odbc::GetSqlWCharSize(); | ||
| std::string out_connection_string = | ||
| ODBC::SqlWcharToString(out_str, static_cast<SQLSMALLINT>(out_str_len)); | ||
| EXPECT_TRUE(!out_connection_string.empty()); |
| out_str_len /= arrow::flight::sql::odbc::GetSqlWCharSize(); | ||
| std::string out_connection_string = | ||
| ODBC::SqlWcharToString(out_str, static_cast<SQLSMALLINT>(out_str_len)); | ||
| EXPECT_TRUE(!out_connection_string.empty()); |
c6c5af9 to
2332bdaCompare2332bda to
e5705e7Comparelidavidm
commented
Nov 28, 2025
@alinaliBQ can you resolve conflicts? |
Use `EXPECT_FALSE` Remove `using List` Rebase from `master` Work on code review comments Add tests for connection attribute Co-Authored-By: justing-bq <justin.gossett@improving.com> Co-Authored-By: alinalibq <alina.li@improving.com>
e5705e7 to
23b8689ComparealinaliBQ
commented
Nov 28, 2025
@lidavidm Thank you for the ping, rebased and resolved conflict |
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 95cdc0c. There was 1 benchmark result indicating a performance regression:
The full Conbench report has more details. |
apache#47772) ### Rationale for this change Add connection attribute support for ODBC driver. ### What changes are included in this PR? - Implementation of `SQLGetConnectAttr` and `SQLSetConnectAttr` to get and set connection attributes - Tests ### Are these changes tested? Tested on local MSVC ### Are there any user-facing changes? No * GitHub Issue: apache#47708 Authored-by: Alina (Xi) Li <alina.li@improving.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Rationale for this change
Add connection attribute support for ODBC driver.
What changes are included in this PR?
SQLGetConnectAttrandSQLSetConnectAttrto get and set connection attributesAre these changes tested?
Tested on local MSVC
Are there any user-facing changes?
No