-
Notifications
You must be signed in to change notification settings - Fork 4.1k
GH-49463: [C++][FlightRPC] Add Ubuntu ODBC Support #49564
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
Changes from 4 commits
848fdfe
9d6728d
bec15db
07b9ef4
0fa6143
0b5d6f1
2a49313
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
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. Could you also update
Collaborator
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 good catch, updated |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,16 @@ if [ ! -f "$ODBC_64BIT" ]; then | |
| exit 1 | ||
| fi | ||
|
|
||
| USER_ODBCINST_FILE="$HOME/Library/ODBC/odbcinst.ini" | ||
| case "$(uname)" in | ||
| Linux) | ||
| USER_ODBCINST_FILE="/etc/odbcinst.ini" | ||
| ;; | ||
| *) | ||
| # macOS | ||
| USER_ODBCINST_FILE="$HOME/Library/ODBC/odbcinst.ini" | ||
| ;; | ||
| esac | ||
|
|
||
| DRIVER_NAME="Apache Arrow Flight SQL ODBC Driver" | ||
|
|
||
| mkdir -p "$HOME"/Library/ODBC | ||
|
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. Should we update this too?
Collaborator
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, I have moved the command for macOS only |
||
|
|
||
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.
We don't need this image because we can reuse
ubuntu-cppimage.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.
Hi kou, I used
ubuntu-cpp-odbcfor running a customcommandssection, since for ODBC we need to run the ODBC registration script before executing tests.In order to use
ubuntu-cpp, I tried code likearchery docker run ubuntu-cpp bash -c "<custom_commands>"to replace thecommandssection and that didn't work, so I created a new image instead. Is there a workaround for this?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.
Your approach is correct. I also think that I want to create a new service (
ubuntu-cpp-odbc) from an existing service (ubuntu-cpp) with differentcommand:but we can't do it with Docker Compose. So we can createubuntu-cpp-odbcfor this. But the built image byubuntu-cpp-odbchas the same name (${REPO}:${ARCH}-ubuntu-${UBUNTU}-cpp) and build options. So we don't need to overwrite existing${REPO}:${ARCH}-ubuntu-${UBUNTU}-cppimage by this.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.
@kou Sounds good. I have changed
ubuntu-cpp-odbcto re-useubuntu-cppas a service to reduce duplicate code. I also disabled non-ODBC related libraries inubuntu-cpp-odbc. Please have another look.