Skip to content

Conversation

@alinaliBQ
Copy link
Contributor

@alinaliBQ alinaliBQ commented Dec 17, 2025

Rationale for this change

#48576

What changes are included in this PR?

  • Added Mac Setup ODBC ini Script

Are these changes tested?

Will be tested in CI when PR is ready for review.
Tested locally on macOS.

Are there any user-facing changes?

N/A

* added setup script for mac and platform folders

Co-Authored-By: Alina (Xi) Li <[email protected]>
Co-Authored-By: vic-tsang <[email protected]>

Update install_odbc.sh
@github-actions
Copy link

⚠️ GitHub issue #48576 has been automatically assigned in GitHub to PR creator.

@alinaliBQ
Copy link
Contributor Author

@lidavidm This draft PR for macOS ODBC registration set up script is ready for review. It is pending on #48577 to undraft.

@lidavidm lidavidm changed the title GH-48576: [C++][FlightRPC] Mac Setup ODBC ini Script GH-48576: [C++][FlightRPC] ODBC: add Mac setup script Jan 5, 2026
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to guard the scripts with (e.g.) set -euo pipefail?

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jan 5, 2026
Comment on lines +43 to +47
# Admin privilege is needed to add ODBC driver registration
if [ $EUID -ne 0 ]; then
echo "Please run this script with sudo"
exit 1
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this check up front?

odbc_install_script="${source_dir}/install_odbc.sh"

chmod +x "$odbc_install_script"
. "$odbc_install_script" /Library/Apache/ArrowFlightSQLODBC/lib/libarrow_flight_sql_odbc.dylib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to source the script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants