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 @@ -128,14 +128,19 @@ def format_metadata_data_type(self, data_type: str) -> str:

def _get_data_type_name_synonyms(self) -> list[list[str]]:
# Implements data type synonyms
# Each list should represent a list of synonyms
# Each list should represent a list of synonyms — every member of a
# group must reverse-map to the same SodaDataTypeName (or to a Soda
# type pair that is_same_soda_data_type_with_synonyms treats as equal).
return [
["varchar", "text", "string"],
["number", "decimal", "numeric", "int", "integer", "bigint", "smallint", "tinyint", "byteint"],
["float", "float4", "float8", "double", "double precision", "real"],
["timestamp", "datetime", "timestamp_ntz", "timestamp without time zone"],
["timestamp_ltz", "timestamp with local time zone"],
["timestamp_tz", "timestamp with time zone"],
["decimal", "numeric"],
["smallint", "int2"],
["integer", "int", "int4"],
["bigint", "int8"],
["real", "float4", "float"],
["float8", "double", "double precision"],
["timestamp", "datetime", "timestamp without time zone"],
["timestamptz", "timestamp with time zone"],
]

def get_data_source_data_type_name_by_soda_data_type_names(self) -> dict:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def _get_data_type_name_synonyms(self) -> list[list[str]]:
["smallint", "int2"],
["integer", "int", "int4"],
["bigint", "int8"],
["real", "float4", "float"],
[REDSHIFT_DOUBLE_PRECISION, "float8"],
["real", "float4"],
[REDSHIFT_DOUBLE_PRECISION, "float8", "float"],
["timestamp", "timestamp without time zone"],
["time", "time without time zone"],
]
Expand Down
Loading
Loading