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

Update snowflake-sqlalchemy version #1228

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Conversation

pankajastro
Copy link
Contributor

@pankajastro pankajastro commented Nov 9, 2022

Description

What is the current behavior?

closes: #1226
closes: #1187

What is the new behavior?

Remove snowflake-sqlalchemy version restrion

Does this introduce a breaking change?

Checklist

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

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Base: 93.81% // Head: 94.72% // Increases project coverage by +0.90% 🎉

Coverage data is based on head (407d572) compared to base (d20ff0a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1228      +/-   ##
==========================================
+ Coverage   93.81%   94.72%   +0.90%     
==========================================
  Files          18       70      +52     
  Lines         582     3201    +2619     
  Branches       62      368     +306     
==========================================
+ Hits          546     3032    +2486     
- Misses         24      106      +82     
- Partials       12       63      +51     
Impacted Files Coverage Δ
python-sdk/src/astro/files/types/csv.py 100.00% <0.00%> (ø)
python-sdk/src/astro/files/types/parquet.py 100.00% <0.00%> (ø)
python-sdk/src/astro/databases/base.py 96.00% <0.00%> (ø)
...thon-sdk/src/astro/sql/operators/base_decorator.py 94.91% <0.00%> (ø)
python-sdk/src/astro/__init__.py 100.00% <0.00%> (ø)
python-sdk/src/astro/sql/operators/append.py 95.83% <0.00%> (ø)
python-sdk/src/astro/databases/__init__.py 100.00% <0.00%> (ø)
python-sdk/src/astro/exceptions.py 100.00% <0.00%> (ø)
python-sdk/src/astro/files/operators/files.py 100.00% <0.00%> (ø)
python-sdk/src/astro/custom_backend/serializer.py 85.18% <0.00%> (ø)
... and 42 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.

@@ -62,7 +62,7 @@ google = [
]
snowflake = [
"apache-airflow-providers-snowflake",
"snowflake-sqlalchemy>=1.2.0,<=1.2.4",
"snowflake-sqlalchemy>=1.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure why this was restricted but because of this when we are installing astro-sdk with airflow constraints file getting below error

The conflict is caused by:
    astro-sdk-python[amazon,google,postgres,snowflake] 1.0.0 depends on snowflake-sqlalchemy<=1.2.4 and >=1.2.0; extra == "snowflake"
    The user requested (constraint) snowflake-sqlalchemy==1.4.2

Copy link
Member

Choose a reason for hiding this comment

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

related to #1185 cc @utkarsharma2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In #1185 look like we have changed SQLAlchemy only so snowflake-sqlalchemy version was restricted even before

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also look like import issue has been fixed in latest release https://github.com/snowflakedb/snowflake-sqlalchemy/releases/tag/v1.4.3

Copy link
Member

@feluelle feluelle Nov 10, 2022

Choose a reason for hiding this comment

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

Cool. Could you remove the version restriction there then as well? I think there is then no reason to limit that version.

It is directly related so I think it makes sense to change both together.

@pankajastro pankajastro changed the title [WIP] Update snowflake-sqlalchemy version Update snowflake-sqlalchemy version Nov 9, 2022
@pankajastro pankajastro marked this pull request as ready for review November 9, 2022 16:57
@pankajastro pankajastro merged commit 28188c8 into main Nov 10, 2022
@pankajastro pankajastro deleted the update_sqlalchemy_version branch November 10, 2022 06:52
kaxil pushed a commit that referenced this pull request Nov 16, 2022
# Description
## What is the current behavior?
closes: #1226
closes: #1187

## What is the new behavior?
Remove snowflake-sqlalchemy version restrion

## Does this introduce a breaking change?

### Checklist
- [ ] Created tests which fail without the change (if possible)
- [ ] Extended the README / documentation, if necessary

(cherry picked from commit 28188c8)
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.

Install astro-sdk with Airflow constraint file Remove snowflake pined version
3 participants