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

Use auto_create_table when writing #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jrbourbeau
Copy link
Member

In #56 we added a pandas<2.2 restriction due to pandas=2.2 only supporting sqlalchemy>=2, but snowflake-sqlalchemy requiring sqlalchemy<2. This is unfortunate, but better than things breaking with the latest pandas release.

I noticed that we're only using snowflake-sqlalchemy to auto-create a table if it doesn't exist and snowflake-connector-python >= 2.7.3 has a auto_create_table= keyword for this exact functionality. This PR uses the built in auto_create_table=True in snowflake and removes our dependency on snowflake-sqlalchemy altogether. This also let's us drop the pandas<2.2 restriction.

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.

1 participant