Repository navigation
Fix SqlToS3Operator failing for every format when df_type is polars - #74692
Merged
Merged
Conversation
1 task done
Dev-iL
force-pushed
the
2610/amazon-polars
branch
from
October 15, 2026 22:09
bdf79a0 to
81c0ec3
Compare
shahar1
approved these changes
Oct 18, 2026
Dev-iL
marked this pull request as ready for review
October 18, 2026 09:10
The operator always called the pandas writers to_csv, to_json and to_parquet, which polars DataFrames do not have, so every df_type="polars" run failed with an AttributeError regardless of file format. The tests did not catch it because their polars cases fed a pandas DataFrame to the operator.
The polars upload round-trip test only wrote non-null strings, so nulls in the CSV, JSON and Parquet output were never read back. The upload callback has to read the buffer while the upload runs: the text wrapper around it closes the buffer once execute returns, so a later read fails. Co-authored-by: David Blain <info@dabla.be>
Dev-iL
force-pushed
the
2610/amazon-polars
branch
from
October 18, 2026 09:11
81c0ec3 to
3e4b192
Compare
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
The operator always called the pandas writers
to_csv,to_jsonandto_parquet, which polarsDataFramesdo not have, so everydf_type="polars"run failed with anAttributeErrorregardless of file format.Previous tests did not catch it because their polars cases fed a pandas DataFrame to the operator.
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.