Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ def get_soda_data_type_name_by_data_source_data_type_names(self) -> dict[str, So
"timestamp": SodaDataTypeName.TIMESTAMP,
"date": SodaDataTypeName.DATE,
"time": SodaDataTypeName.TIME,
"datetime": SodaDataTypeName.TIMESTAMP,
"bool": SodaDataTypeName.BOOLEAN,
}

def _get_data_type_name_synonyms(self) -> list[list[str]]:
return [
["int64", "integer"],
["int64", "integer", "int", "bigint", "tinyint", "byteint"],
["bool", "boolean"],
["numeric", "decimal"],
["bignumeric", "bigdecimal"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def _get_data_type_name_synonyms(self) -> list[list[str]]:
[PG_DOUBLE_PRECISION, "float8"],
["timestamp", PG_TIMESTAMP_WITHOUT_TIME_ZONE],
["decimal", "numeric"],
["boolean", "bool"],
]

def get_sql_data_type_class(self) -> type:
Expand Down