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

[MAINTENANCE] Pin snowflake-sqlalchemy due to 1.5.2 runtime bug #9744

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Apr 12, 2024

Seeing test issues in CI due to issue with latest release of snowflake-sqlalchemy: snowflakedb/snowflake-sqlalchemy#485

FAILED tests/datasource/fluent/integration/test_sql_datasources.py::TestTableIdentifiers::test_checkpoint_run[snowflake-py38_i143f351df6474fb9979c9f9e063a4551-quoted_upper] - great_expectations.datasource.fluent.interfaces.TestConnectionError: Attempt to connect to datasource failed with the following error message: Unable to create a SQLAlchemy engine due to the following exception: cannot import name 'string_types' from 'sqlalchemy.util.compat' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/sqlalchemy/util/compat.py)
  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses ruff format + ruff check)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 8927d14
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/6619314ac8f7070008851a9f

@cdkini cdkini self-assigned this Apr 12, 2024
@@ -1,4 +1,4 @@
pandas<2.2.0; python_version >= "3.9"
snowflake-connector-python>=2.5.0; python_version < "3.11"
snowflake-connector-python>2.9.0; python_version >= "3.11" # earlier versions fail to build on 3.11
snowflake-sqlalchemy>=1.2.3
snowflake-sqlalchemy>=1.2.3,<1.5.2 # https://github.com/snowflakedb/snowflake-sqlalchemy/issues/485
Copy link
Contributor

@Kilo59 Kilo59 Apr 12, 2024

Choose a reason for hiding this comment

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

Suggested change
snowflake-sqlalchemy>=1.2.3,<1.5.2 # https://github.com/snowflakedb/snowflake-sqlalchemy/issues/485
snowflake-sqlalchemy>=1.2.3,!1.5.2 # https://github.com/snowflakedb/snowflake-sqlalchemy/issues/485

Can we just skip this release? Or do we expect the issue to persist?

Copy link
Contributor

@Kilo59 Kilo59 left a comment

Choose a reason for hiding this comment

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

Question about skipping vs pinning.

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.66%. Comparing base (00757c3) to head (8927d14).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #9744   +/-   ##
========================================
  Coverage    82.66%   82.66%           
========================================
  Files          512      512           
  Lines        46671    46671           
========================================
  Hits         38579    38579           
  Misses        8092     8092           
Flag Coverage Δ
3.10 64.91% <ø> (ø)
3.11 64.91% <ø> (ø)
3.11 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.87% <ø> (ø)
3.11 aws_deps 48.96% <ø> (ø)
3.11 big 64.12% <ø> (ø)
3.11 databricks 48.14% <ø> (ø)
3.11 filesystem 63.80% <ø> (ø)
3.11 mssql 47.35% <ø> (ø)
3.11 mysql 47.40% <ø> (ø)
3.11 postgresql 54.16% <ø> (ø)
3.11 snowflake 48.67% <ø> (ø)
3.11 spark 60.57% <ø> (ø)
3.11 trino 53.80% <ø> (ø)
3.8 64.92% <ø> (ø)
3.8 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.88% <ø> (ø)
3.8 aws_deps 48.97% <ø> (ø)
3.8 big 64.13% <ø> (ø)
3.8 databricks 48.16% <ø> (ø)
3.8 filesystem 63.80% <ø> (ø)
3.8 mssql 47.33% <ø> (ø)
3.8 mysql 47.38% <ø> (ø)
3.8 postgresql 54.15% <ø> (ø)
3.8 snowflake 48.68% <ø> (ø)
3.8 spark 60.53% <ø> (ø)
3.8 trino 53.79% <ø> (ø)
3.9 64.91% <ø> (ø)
cloud 0.00% <ø> (ø)
docs-basic 54.44% <ø> (ø)
docs-creds-needed 55.01% <ø> (ø)
docs-spark 54.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdkini cdkini added this pull request to the merge queue Apr 12, 2024
Merged via the queue into develop with commit aec14be Apr 12, 2024
69 checks passed
@cdkini cdkini deleted the m/_/temp_pin_snowflake branch April 12, 2024 13:49
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