Skip to content

Commit f0de259

Browse files
authored
Merge pull request #51 from sede-open/hotfix/autoincrement-seed-change
update: start autoincrementing id from 100,000,000
2 parents aa4b0ff + 163875a commit f0de259

File tree

1 file changed

+1
-1
lines changed
  • src/databricks/sqlalchemy/dialect

1 file changed

+1
-1
lines changed

src/databricks/sqlalchemy/dialect/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def visit_create_table(self, create, **kw):
105105
if '`' not in processed:
106106
processed = '`' + "".join(processed.split(" ")[0]) + "` " + " ".join(processed.split(" ")[1:])
107107
if column.autoincrement is True: # If doesn't work try 'is True' and == 'True'
108-
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED BY DEFAULT AS IDENTITY"
108+
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 100000000 INCREMENT BY 1)"
109109
if processed is not None:
110110
text += separator
111111
separator = ", \n"

0 commit comments

Comments
 (0)