-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-47708: [C++][FlightRPC] Connection Attribute Support for ODBC #47772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
|
|
||
| #ifdef SQL_ATTR_ASYNC_DBC_EVENT | ||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) { | ||
| this->Connect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetUp() as David commented in other PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this->Connect() from tests. we will move it to SetUp
|
Could you create new draft PRs after you complete other draft PRs to reflect comments in other draft PRs? |
af5de2e to
e8c404c
Compare
alinaliBQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In-progress of addressing comments. The team is still working on improving the subclass logic for separate test fixture (discussion is in #47788)
|
|
||
| #ifdef SQL_ATTR_ASYNC_DBC_EVENT | ||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) { | ||
| this->Connect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this->Connect() from tests. we will move it to SetUp
e8c404c to
c6c5af9
Compare
alinaliBQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased on top of master
| 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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: EXPECT_FALSE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing, please note that the tests in this PR requires connectivity support implementation (I will raise the PR for connectivity after #47760 is merged) in order to pass.
| 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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
c6c5af9 to
2332bda
Compare
2332bda to
e5705e7
Compare
|
@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 <[email protected]> Co-Authored-By: alinalibq <[email protected]>
e5705e7 to
23b8689
Compare
|
@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. |
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