-
Couldn't load subscription status.
- Fork 3.9k
GH-47709 : [C++][FlightRPC] Return ODBC and data source information #47762
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
base: main
Are you sure you want to change the base?
Conversation
|
|
| // Driver Information | ||
|
|
||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoActiveEnvironments) { | ||
| 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.
Could the connect/disconnect be put in a SetUp/TearDown?
Also it might not be wise to add the tests directly to FlightSQLODBCTestBase; could we create a fixture for this test suite specifically (by subclassing)?
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.
yes, added separate test fixture ConnectionInfoTest
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoDriverName) { | ||
| this->Connect(); | ||
|
|
||
| Validate(this->conn, SQL_DRIVER_NAME, (SQLWCHAR*)L"Arrow Flight ODBC Driver"); |
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.
Could you use static_cast?
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.
yup, fixed
e6f61c6 to
49745a6
Compare
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.
Worked on code review comments
| // Driver Information | ||
|
|
||
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoActiveEnvironments) { | ||
| 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.
yes, added separate test fixture ConnectionInfoTest
| TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoDriverName) { | ||
| this->Connect(); | ||
|
|
||
| Validate(this->conn, SQL_DRIVER_NAME, (SQLWCHAR*)L"Arrow Flight ODBC Driver"); |
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.
yup, 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.
Please rebase!
| template <typename T> | ||
| class ConnectionInfoTest : public T { | ||
| public: | ||
| using List = std::list<T>; | ||
| }; |
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.
| template <typename T> | |
| class ConnectionInfoTest : public T { | |
| public: | |
| using List = std::list<T>; | |
| }; | |
| template <typename T> | |
| class ConnectionInfoTest : public T { | |
| }; |
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.
done, rebased and removed using List
Co-Authored-By: rscales <[email protected]> Create connection_info_test.cc Add SQLGetInfo tests Co-authored-by: justing-bq <[email protected]> Co-Authored-By: rscales <[email protected]> Address code review comments Co-authored-by: justing-bq <[email protected]> Work on code review comments Fix build issues with tests
* fix build issues
5452bfd to
f7a7386
Compare
Rationale for this change
ODBC needs to give BI tools information about the driver itself and the data source it is connected to.
What changes are included in this PR?
SQLGetinfoto return driver and data source informationget_info_cache.ccAre these changes tested?
Will be tested in CI when PR is ready for review
Are there any user-facing changes?
No