Closed nickshffer closed 6 months ago
Self-closing, I missed the note in the docs about "Anonymous auto-increment is not supported."
As far as I know, defining sequence explicitly is the only way to preserve its value after CREATE OR REPLACE
statements on the main table. Otherwise your autoincrement value might break, especially with high rate of inserts.
So... yes, that was done on purpose.
Describe the bug Seems as though you cannot create a column with an autoincrement column.
I have a table that looks like:
...that errors on creation.
I believe the error is caused here because the code assumes you can pass whatever is in the default param as-is, but the Snowflake docs indicate that autoincrement does not follow that pattern as noted here
Expected behavior The table should be created with an autoincrement column.
Attach log
Here is a snippet of stderr
Note that the offending SQL command succeeds if you remove "DEFAULT", as in:
Also, note that
baz.py
was created by using the built-in table converter; I have not explored other ways to implement the autoincrement column (if there is a better way perhaps this is an issue with the function converter?).Happy to make a PR if that would be helpful!