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

fix(ingestion): pin snowflake sqlalchemy connector #2923

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jul 21, 2021

Version 1.2.5 was released today (https://pypi.org/project/snowflake-sqlalchemy/1.2.5/), but yields errors for us, as below. We pin our version to 1.2.4 for now, since we still depend on SQLAlchemy 1.3.24.

tests/unit/test_snowflake_source.py:1: in <module>
    from datahub.ingestion.source.snowflake import SnowflakeConfig
src/datahub/ingestion/source/snowflake.py:7: in <module>
    import snowflake.sqlalchemy  # noqa: F401
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/__init__.py:25: in <module>
    from . import base, snowdialect
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/base.py:17: in <module>
    from .custom_commands import AWSBucket, AzureContainer, ExternalStage
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/custom_commands.py:14: in <module>
    from sqlalchemy.sql.roles import FromClauseRole
E   ModuleNotFoundError: No module named 'sqlalchemy.sql.roles'

This issue is breaking the build for a couple other PRs:

See snowflakedb/snowflake-sqlalchemy#234 for details about this issue.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

Version 1.2.5 was released today
(https://pypi.org/project/snowflake-sqlalchemy/1.2.5/), but yields
errors for us, as below. Since this is breaking CI, we pin our version
to 1.2.4 for now.

```
tests/unit/test_snowflake_source.py:1: in <module>
    from datahub.ingestion.source.snowflake import SnowflakeConfig
src/datahub/ingestion/source/snowflake.py:7: in <module>
    import snowflake.sqlalchemy  # noqa: F401
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/__init__.py:25: in <module>
    from . import base, snowdialect
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/base.py:17: in <module>
    from .custom_commands import AWSBucket, AzureContainer, ExternalStage
venv/lib/python3.8/site-packages/snowflake/sqlalchemy/custom_commands.py:14: in <module>
    from sqlalchemy.sql.roles import FromClauseRole
E   ModuleNotFoundError: No module named 'sqlalchemy.sql.roles'
```
Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM

@shirshanka shirshanka merged commit 5f0b446 into datahub-project:master Jul 21, 2021
@hsheth2 hsheth2 deleted the pin-snowflake-connector branch October 3, 2022 18:47
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