fix(ingest/bigquery): map date types correctly (#10383)

This commit is contained in:
Harshal Sheth 2024-04-25 13:22:37 -07:00 committed by GitHub
parent 704fb47d6b
commit 4c40a24d76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,7 @@ from datahub.metadata.com.linkedin.pegasus2avro.schema import (
ArrayType, ArrayType,
BooleanType, BooleanType,
BytesType, BytesType,
DateType,
MySqlDDL, MySqlDDL,
NullType, NullType,
NumberType, NumberType,
@ -188,6 +189,7 @@ class BigqueryV2Source(StatefulIngestionSourceBase, TestableSource):
RecordType, RecordType,
StringType, StringType,
TimeType, TimeType,
DateType,
NullType, NullType,
] ]
], ],
@ -209,10 +211,10 @@ class BigqueryV2Source(StatefulIngestionSourceBase, TestableSource):
"STRING": StringType, "STRING": StringType,
"TIME": TimeType, "TIME": TimeType,
"TIMESTAMP": TimeType, "TIMESTAMP": TimeType,
"DATE": TimeType, "DATE": DateType,
"DATETIME": TimeType, "DATETIME": TimeType,
"GEOGRAPHY": NullType, "GEOGRAPHY": NullType,
"JSON": NullType, "JSON": RecordType,
"INTERVAL": NullType, "INTERVAL": NullType,
"ARRAY": ArrayType, "ARRAY": ArrayType,
"STRUCT": RecordType, "STRUCT": RecordType,