Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data_diff/databases/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ class Dialect(BaseDialect):
"BOOLEAN": Boolean,
}

def type_repr(self, t) -> str:
try:
return {str: "STRING"}[t]
except KeyError:
return super().type_repr(t)

def quote(self, s: str):
return f"`{s}`"

Expand Down
2 changes: 1 addition & 1 deletion data_diff/databases/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def to_string(self, s: str):

def type_repr(self, t) -> str:
try:
return {bool: "bit"}[t]
return {bool: "bit", str: "text"}[t]
except KeyError:
return super().type_repr(t)

Expand Down