Skip to content

GH-47877: [Packaging][C++][FlightRPC][ODBC] Add arrow-flight-sql-odbc#50288

Open
kou wants to merge 1 commit into
apache:mainfrom
kou:rpm-odbc
Open

GH-47877: [Packaging][C++][FlightRPC][ODBC] Add arrow-flight-sql-odbc#50288
kou wants to merge 1 commit into
apache:mainfrom
kou:rpm-odbc

Conversation

@kou

@kou kou commented Jun 30, 2026

Copy link
Copy Markdown
Member

Rationale for this change

If we provide RPM for Flight SQL ODBC driver, users can install it easily.

What changes are included in this PR?

  • Add arrow${MAJOR_VERSION}-flight-sql-odbc-libs
  • Add arrow-flight-sql-odbc-devel

Are these changes tested?

No.

We need to generate configuration files but it's out-of-scope of this PR. We need to work on it as a separated task.

Are there any user-facing changes?

Yes.

@github-actions github-actions Bot added CI: Extra: Package: Linux Run extra Linux Packages CI awaiting committer review Awaiting committer review labels Jun 30, 2026
Copilot AI review requested due to automatic review settings July 1, 2026 05:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the Yum/RPM packaging for the C++ Flight SQL components by enabling and packaging the Flight SQL ODBC driver, so users can install it via RPMs.

Changes:

  • Enable building the Flight SQL ODBC driver in the RPM build (-DARROW_FLIGHT_SQL_ODBC=ON) and add the required build dependency (unixODBC-devel).
  • Add new RPM subpackages for the driver: arrow${so_version}-flight-sql-odbc-libs and arrow-flight-sql-odbc-devel, and adjust file ownership between flight-sql-devel and the new ODBC devel package.
  • Extend the Yum verification script to install the new arrow-flight-sql-odbc-devel package.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
dev/tasks/linux-packages/apache-arrow/yum/centos-9-stream/Dockerfile Adds unixODBC development headers to the CentOS 9 Stream build container.
dev/tasks/linux-packages/apache-arrow/yum/amazon-linux-2023/Dockerfile Adds unixODBC development headers to the Amazon Linux 2023 build container.
dev/tasks/linux-packages/apache-arrow/yum/almalinux-8/Dockerfile Adds unixODBC development headers to the AlmaLinux 8 build container.
dev/tasks/linux-packages/apache-arrow/yum/almalinux-9/Dockerfile Adds unixODBC development headers to the AlmaLinux 9 build container.
dev/tasks/linux-packages/apache-arrow/yum/almalinux-10/Dockerfile Adds unixODBC development headers to the AlmaLinux 10 build container.
dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in Enables ODBC build in RPM, adds new ODBC RPM subpackages, and adjusts Flight SQL devel dependencies/files.
dev/release/verify-yum.sh Installs the new Flight SQL ODBC devel package during RPM verification.

Comment on lines +509 to +512
License: Apache-2.0
Requires: %{name}%{so_version}-flight-sql-odbc-libs = %{version}-%{release}
Requires: %{name}-flight-sql-devel = %{version}-%{release}

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

Labels

awaiting committer review Awaiting committer review CI: Extra: Package: Linux Run extra Linux Packages CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants