-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48575: [C++][FlightRPC] Standalone ODBC macOS CI #48577
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -314,6 +314,17 @@ | |
| "displayName": "Debug build with tests and Flight SQL", | ||
| "cacheVariables": {} | ||
| }, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ODBC can be built on Windows and macOS Intel/ARM but it is not available on Linux yet (we will add Linux support later), let me know if this change should be removed until Linux is also supported. |
||
| { | ||
| "name": "ninja-debug-flight-sql-odbc", | ||
| "inherits": [ | ||
| "features-flight-sql", | ||
| "base-debug" | ||
| ], | ||
| "displayName": "Debug build with tests and Flight SQL ODBC", | ||
| "cacheVariables": { | ||
| "ARROW_FLIGHT_SQL_ODBC": "ON" | ||
| } | ||
| }, | ||
| { | ||
| "name": "ninja-debug-gandiva", | ||
| "inherits": [ | ||
|
|
@@ -510,6 +521,17 @@ | |
| "displayName": "Release build with Flight SQL", | ||
| "cacheVariables": {} | ||
| }, | ||
| { | ||
| "name": "ninja-release-flight-sql-odbc", | ||
| "inherits": [ | ||
| "features-flight-sql", | ||
| "base-release" | ||
| ], | ||
| "displayName": "Release build with Flight SQL ODBC", | ||
| "cacheVariables": { | ||
| "ARROW_FLIGHT_SQL_ODBC": "ON" | ||
| } | ||
| }, | ||
| { | ||
| "name": "ninja-release-gandiva", | ||
| "inherits": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,18 @@ class ODBCHandle { | |
| try { | ||
| GetDiagnostics().Clear(); | ||
| rc = function(); | ||
| } catch (const arrow::flight::sql::odbc::DriverException& ex) { | ||
| } catch (const arrow::flight::sql::odbc::AuthenticationException& ex) { | ||
| GetDiagnostics().AddError(arrow::flight::sql::odbc::DriverException( | ||
| ex.GetMessageText(), ex.GetSqlState(), ex.GetNativeError())); | ||
| } catch (const arrow::flight::sql::odbc::NullWithoutIndicatorException& ex) { | ||
| GetDiagnostics().AddError(arrow::flight::sql::odbc::DriverException( | ||
| ex.GetMessageText(), ex.GetSqlState(), ex.GetNativeError())); | ||
| } | ||
| // on mac, DriverException doesn't catch the subclass exceptions hence we added | ||
| // the following above. | ||
| // GH-48278 TODO investigate if there is a way to catch all the subclass exceptions | ||
| // under DriverException | ||
| catch (const arrow::flight::sql::odbc::DriverException& ex) { | ||
|
Comment on lines
+49
to
+60
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't happen...maybe clang is stricter than MSVC?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes this is odd, it does seem like undefined behavior. clang being more strict is a possibility. |
||
| GetDiagnostics().AddError(ex); | ||
| } catch (const std::bad_alloc&) { | ||
| GetDiagnostics().AddError(arrow::flight::sql::odbc::DriverException( | ||
|
|
||
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.
I am open to suggestions for other locations for
-Iand-L🙂