mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 09:35:23 +00:00
fix(ingest/bigquery): map date types correctly (#10383)
This commit is contained in:
parent
704fb47d6b
commit
4c40a24d76
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user