We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
delta.feature.allowColumnDefaults
1 parent a6212b6 commit c4e8103Copy full SHA for c4e8103
src/databricks/sqlalchemy/_ddl.py
@@ -16,13 +16,15 @@ def __init__(self, dialect):
16
17
class DatabricksDDLCompiler(compiler.DDLCompiler):
18
def post_create_table(self, table):
19
- post = " USING DELTA"
+ post = [" USING DELTA"]
20
if table.comment:
21
comment = self.sql_compiler.render_literal_value(
22
table.comment, sqltypes.String()
23
)
24
- post += " COMMENT " + comment
25
- return post
+ post.append("COMMENT " + comment)
+
26
+ post.append("TBLPROPERTIES('delta.feature.allowColumnDefaults' = 'enabled')")
27
+ return "\n".join(post)
28
29
def visit_unique_constraint(self, constraint, **kw):
30
logger.warning("Databricks does not support unique constraints")
0 commit comments