Hi everyone, is there some sort of mapping functio...
# troubleshoot
f
Hi everyone, is there some sort of mapping function to select
SchemaFieldDataTypeClass
in
SchemaFieldClass
when creating a dataset? I have a xml export of an ETL job and trying to ingest table defintions into DataHub from this file. In order to select the right data types for the columns I need some sort of mapping (e.g. VARCHAR -> StringTypeClass).
o
f
Awesome!
Hi @orange-night-91387 can you give me an example of how use the dict
_field_type_mapping
or call
get_column_type
. Whatever I tried resulted in NullTypeClass Thanks in advance!
o
get_column_type
gets used in
get_schema_fields_for_column
, here is an example usage for the hive pipeline: https://github.com/datahub-project/datahub/blob/master/metadata-ingestion/src/datahub/ingestion/source/sql/hive.py#L66