We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d34a7f9 + 99122ec commit 6201dbbCopy full SHA for 6201dbb
src/databricks/sqlalchemy/dialect/compiler.py
@@ -8,7 +8,12 @@ def visit_INTEGER(self, type_):
8
return "INT"
9
10
def visit_NUMERIC(self, type_):
11
- return "DECIMAL"
+ if type_.precision is None:
12
+ return "DECIMAL"
13
+ elif type_.scale is None:
14
+ return "DECIMAL({precision})".format(precision=type_.precision)
15
+ else:
16
+ return "DECIMAL({precision}, {scale})".format(precision=type_.precision, scale=type_.scale)
17
18
def visit_CHAR(self, type_):
19
return "STRING"
0 commit comments