-
Notifications
You must be signed in to change notification settings - Fork 152
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
SNOW-889850: Add autoincrement support without (explicit) sequences #436
Comments
Hey this makes sense to me but it won't be in the prioritized list of items that we will work on in the short term. We are happy to review PR though :) |
Thanks for the response @sfc-gh-sfan . (I don't have any experience with SqlAlchemy/Alembic internals so I probably won't make a PR.) I was surprised to see that Alembic ops like |
I'm also still getting the So, I haven't found any way to use |
What is the current behavior?
Currently, if you specify a column with
autoincrement=True
you get errors. If you add a sequence in an ORM, then it can work but Alembic doesn't autogenerate the sequence. However, autoincrement works without explicit treatment of sequences when working in plain SQL.Does not work / autogenerate correct Alembic migration:
Also does not work without explicit
CreateSequence
:Works:
What is the desired behavior?
It would be great to support a simple
autoincrement
column without having to deal with sequences. This seems to work in a Snowflake workbook:How would this improve
snowflake-connector-python
?This would simplify the usage of the
AUTOINCREMENT
feature, and also improve Alembic compatibility by avoiding sequences.References, Other Background
The text was updated successfully, but these errors were encountered: