Skip to content

Commit

Permalink
update: start autoincrementing id from 100,000,000
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDKay committed Jan 16, 2025
1 parent aa4b0ff commit 163875a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/databricks/sqlalchemy/dialect/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def visit_create_table(self, create, **kw):
if '`' not in processed:
processed = '`' + "".join(processed.split(" ")[0]) + "` " + " ".join(processed.split(" ")[1:])
if column.autoincrement is True: # If doesn't work try 'is True' and == 'True'
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED BY DEFAULT AS IDENTITY"
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 100000000 INCREMENT BY 1)"
if processed is not None:
text += separator
separator = ", \n"
Expand Down

0 comments on commit 163875a

Please sign in to comment.