fix(ingestion/redshift): fix schema field data type mappings

This commit is contained in:
siddiquebagwan-gslab 2023-10-25 23:48:15 +05:30 committed by GitHub
parent 8a80e858a7
commit b9508e6dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,6 +218,9 @@ class RedshiftSource(StatefulIngestionSourceBase, TestableSource):
] = {
"BYTES": BytesType,
"BOOL": BooleanType,
"BOOLEAN": BooleanType,
"DOUBLE": NumberType,
"DOUBLE PRECISION": NumberType,
"DECIMAL": NumberType,
"NUMERIC": NumberType,
"BIGNUMERIC": NumberType,
@ -244,6 +247,13 @@ class RedshiftSource(StatefulIngestionSourceBase, TestableSource):
"CHARACTER": StringType,
"CHAR": StringType,
"TIMESTAMP WITHOUT TIME ZONE": TimeType,
"REAL": NumberType,
"VARCHAR": StringType,
"TIMESTAMPTZ": TimeType,
"GEOMETRY": NullType,
"HLLSKETCH": NullType,
"TIMETZ": TimeType,
"VARBYTE": StringType,
}
def get_platform_instance_id(self) -> str: