modern-monitor-81461
01/05/2022, 7:07 PMnative_data_type
from Avro. At least that's what I see (I have attached a screenshot with a Time
type and a tooltip of Timestampz
, which is the Iceberg native_data_type
). But there is a field that is mapped to Time
and the tooltip shows Date
. I was expecting to see the type as Date
and not Time
.
Here is the Iceberg metadata for that field:
}, {
"id" : 227,
"name" : "date",
"required" : false,
"type" : "date"
}, {
As you can see, its type is date
and it will be mapped to DateType
in Python. In my IcebergSource, I create the following Avro schema:
elif isinstance(type, IcebergTypes.DateType):
dateType : IcebergTypes.DateType = type
return {
"type": "int",
"logicalType": "date",
"native_data_type": repr(dateType),
"_nullable": True,
}
where repr(dateType)
is
def __repr__(self):
return "date"
Is it because a logical Avro type of date
is mapped to a Time
type in the UI, or there is something broken on my side?
I don't know if all of this makes sense without demo-ing it! Sorry if it's confusing.helpful-optician-78938
01/05/2022, 7:59 PMmodern-monitor-81461
01/05/2022, 8:22 PMhelpful-optician-78938
01/06/2022, 5:54 PM