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

Restore Python SDK 1.4 pandas load option classes with deprecation warning #1795

Merged
merged 9 commits into from
Feb 23, 2023

Conversation

utkarsharma2
Copy link
Collaborator

Description

What is the current behavior?

Currently, we have removed the pandas load options in minor release 1.5.0 which should only be done in major release 2.0.0 after sufficient deprecation warning in minor releases.
ref: https://astronomer.slack.com/archives/C02B8SPT93K/p1677076539940629

What is the new behavior?

In this PR we reintroduced pandas load options classes with deprecation warnings

Does this introduce a breaking change?

Nope

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Base: 97.67% // Head: 93.49% // Decreases project coverage by -4.18% ⚠️

Coverage data is based on head (837328e) compared to base (08913a7).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1795      +/-   ##
==========================================
- Coverage   97.67%   93.49%   -4.18%     
==========================================
  Files          23       93      +70     
  Lines         904     4967    +4063     
  Branches        0      492     +492     
==========================================
+ Hits          883     4644    +3761     
- Misses         21      232     +211     
- Partials        0       91      +91     
Impacted Files Coverage Δ
python-sdk/src/astro/databases/databricks/delta.py 83.68% <100.00%> (ø)
python-sdk/src/astro/databases/snowflake.py 92.24% <100.00%> (ø)
python-sdk/src/astro/dataframes/load_options.py 100.00% <100.00%> (ø)
python-sdk/src/astro/files/locations/azure/wasb.py 98.43% <100.00%> (ø)
python-sdk/src/astro/files/types/csv.py 100.00% <100.00%> (ø)
python-sdk/src/astro/files/types/json.py 100.00% <100.00%> (ø)
python-sdk/src/astro/files/types/ndjson.py 100.00% <100.00%> (ø)
python-sdk/src/astro/files/types/parquet.py 100.00% <100.00%> (ø)
python-sdk/src/astro/options.py 97.56% <100.00%> (ø)
python-sdk/src/astro/sql/operators/load_file.py 95.49% <100.00%> (ø)
... and 70 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.

Copy link
Collaborator

@tatiana tatiana left a comment

Choose a reason for hiding this comment

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

That was really quick, @utkarsharma2 ! Thanks for restoring the classes.
Feel free to merge it once the checks pass.

@tatiana tatiana changed the title Add old pandas load option classes with deprication warning Restore 1.4 Pandas load option classes with deprecation warning Feb 23, 2023
@tatiana tatiana changed the title Restore 1.4 Pandas load option classes with deprecation warning Restore Python SDK 1.4 Pandas load option classes with deprecation warning Feb 23, 2023
@tatiana tatiana changed the title Restore Python SDK 1.4 Pandas load option classes with deprecation warning Restore Python SDK 1.4 pandas load option classes with deprecation warning Feb 23, 2023
utkarsharma2 and others added 2 commits February 23, 2023 18:12
Co-authored-by: Phani Kumar <94376113+phanikumv@users.noreply.github.com>
@utkarsharma2 utkarsharma2 merged commit db0302c into main Feb 23, 2023
@utkarsharma2 utkarsharma2 deleted the Loadoptions_classes branch February 23, 2023 13:16
utkarsharma2 added a commit that referenced this pull request Feb 23, 2023
…rning (#1795)

# Description
## What is the current behavior?
Currently, we have removed the pandas load options in minor release
`1.5.0` which should only be done in major release `2.0.0` after
sufficient deprecation warning in minor releases.
ref: https://astronomer.slack.com/archives/C02B8SPT93K/p1677076539940629


## What is the new behavior?
In this PR we reintroduced pandas load options classes with deprecation
warnings

## Does this introduce a breaking change?
Nope

### Checklist
- [ ] Created tests which fail without the change (if possible)
- [ ] Extended the README / documentation, if necessary
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.

3 participants