Repository navigation
Declare pyarrow for Parquet output of SqlToS3Operator - #74691
Merged
Merged
Conversation
Dev-iL
force-pushed
the
2610/amazon-arrow
branch
from
October 15, 2026 16:08
eb0406c to
e5d72f0
Compare
Dev-iL
marked this pull request as ready for review
October 15, 2026 16:08
dabla
approved these changes
Oct 15, 2026
Contributor
There was a problem hiding this comment.
Addressed
Nothing since the previous round (first review; no prior reviews or threads on the PR).
Open
- [1] the docs sentence describes the default pandas path only.
- [2] optional: an install hint naming the
parquetextra when no Parquet engine is installed. - Not for this PR:
df_type="polars"can't write anything on main.executecallsgetattr(df, FILE_OPTIONS_MAP[...].function), which isto_csv/to_json/to_parquet, but a polars DataFrame only haswrite_csv/write_json/write_parquet, so it raisesAttributeError.test_execute_with_df_typehides this because its mockedget_dfreturns a pandas DataFrame for"polars"too. Fixed separately in #74813.
The change is right: SqlToS3Operator is the only place in the Amazon provider that needs pyarrow (file_format="parquet" and dtype_backend="pyarrow"), the markers and floors match the ones databricks and snowflake already use, the extras table in index.rst follows the pyproject order, and the dev group now guarantees pyarrow for the existing Parquet cases in test_sql_to_s3.py (pyarrow 26.0.0 ships cp315 wheels, so this also holds for the Python 3.15 work in #74555). Diff-based review at e5d72f0c; checked the main-branch operator and tests for every pyarrow/Parquet use in providers/amazon; no tests run locally.
Writing Parquet files and reading with the pyarrow dtype backend both need pyarrow, but the provider never declared it. It only worked when another installed package happened to bring pyarrow in, and otherwise failed at runtime with pandas' "Unable to find a usable engine" error. A separate extra keeps the roughly 40 MB dependency out of installs that only write CSV or JSON.
Dev-iL
force-pushed
the
2610/amazon-arrow
branch
from
October 15, 2026 21:16
e5d72f0 to
47d712e
Compare
1 task done
28 of 93 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related: #74555
Writing Parquet files and reading with the pyarrow dtype backend both need pyarrow, but the provider never declared it. It only worked when another installed package happened to bring pyarrow in, and otherwise failed at runtime with pandas' "Unable to find a usable engine" error.
A separate extra keeps the roughly 40 MB dependency out of installs that only write CSV or JSON.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Opus 5.5 following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.