Skip to content
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

Disable Custom serialization for Back-compat #1453

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Conversation

kaxil
Copy link
Collaborator

@kaxil kaxil commented Dec 17, 2022

We only need AstroPandasDataframe and other custom serialization and deserialization if Airflow >= 2.5 and Pickling is not enabled and neither Custom XCom backend is used.

For others, we should leave it untouched.

@codecov
Copy link

codecov bot commented Dec 17, 2022

Codecov Report

Base: 93.79% // Head: 97.32% // Increases project coverage by +3.52% 🎉

Coverage data is based on head (06ea423) compared to base (e04b3a2).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1453      +/-   ##
==========================================
+ Coverage   93.79%   97.32%   +3.52%     
==========================================
  Files          80       19      -61     
  Lines        3883      672    -3211     
  Branches      378        0     -378     
==========================================
- Hits         3642      654    -2988     
+ Misses        164       18     -146     
+ Partials       77        0      -77     
Impacted Files Coverage Δ
python-sdk/src/astro/dataframes/pandas.py
python-sdk/src/astro/settings.py
python-sdk/src/astro/sql/operators/raw_sql.py
python-sdk/src/astro/sql/operators/cleanup.py
python-sdk/src/astro/utils/path.py
python-sdk/src/astro/custom_backend/serializer.py
python-sdk/src/astro/files/locations/azure/wasb.py
python-sdk/src/astro/sql/operators/export_file.py
python-sdk/src/astro/sql/operators/merge.py
python-sdk/src/astro/lineage/__init__.py
... and 51 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

We only need AstroPandasDataframe and other custom serialization and deserialization if Airflow >= 2.5 and Pickling is not enabled and neither Custom XCom backend is used.

For others, we should leave it untouched.
@kaxil kaxil marked this pull request as ready for review December 18, 2022 12:43
@kaxil kaxil merged commit 5c69b4d into main Dec 18, 2022
@kaxil kaxil deleted the disable-custom-s10n branch December 18, 2022 12:43
kaxil added a commit that referenced this pull request Dec 18, 2022
We only need AstroPandasDataframe and other custom serialization and
deserialization if Airflow >= 2.5 and Pickling is not enabled and
neither Custom XCom backend is used.

For others, we should leave it untouched.

(cherry picked from commit 5c69b4d)
@kaxil kaxil added this to the 1.3.3 milestone Dec 19, 2022
@feluelle
Copy link
Member

Why do we merge without review/approval? Could we comment that here then at least? It should not become the standard! @kaxil

@kaxil
Copy link
Collaborator Author

kaxil commented Dec 20, 2022

I should have left the comment, sorry - This was for Cloud IDE team, I cut an 1.3.3b1 version for them after merging this.

PR: https://github.com/astronomer/astro/pull/7339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants