-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Json type to the sqlalchemy parser #436
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ def test_numeric_renders_as_decimal_with_precision_and_scale(self): | |
sqlalchemy.types.INT: DatabricksDataType.INT, | ||
sqlalchemy.types.SMALLINT: DatabricksDataType.SMALLINT, | ||
sqlalchemy.types.TIMESTAMP: DatabricksDataType.TIMESTAMP, | ||
sqlalchemy.types.JSON: DatabricksDataType.STRING, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Others with more knowledge can chime in, but I wonder if you need to do something similar to TinyIntegerTest to see if the type mapping will actually work. I think this addition makes sure the type will be recognized and translated, but I actually do not know how you would know the value is rendered as a literal string properly. |
||
TINYINT: DatabricksDataType.TINYINT, | ||
TIMESTAMP: DatabricksDataType.TIMESTAMP, | ||
TIMESTAMP_NTZ: DatabricksDataType.TIMESTAMP_NTZ, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update this comment as well - to match decorators list for this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, adding this