OpenMetadata/ingestion/tests/unit/resources/expected_output_column_parser.json
Suman Maharana 54dcdc7d82
Fix #20689: Trino Column validation errors for highly complex fields (#22421)
* Fix: Trino Column validation errors for highly complex fields

* addressed copilot comms

* fixed tests

* fixed tests and addressed comms

* missed file
2025-07-28 11:11:44 +05:30

246 lines
5.9 KiB
JSON

{
"data": [
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>"
},
{
"children": [
{
"dataType": "INT",
"dataTypeDisplay": "int",
"name": "a"
},
{
"dataType": "STRING",
"dataTypeDisplay": "string",
"name": "b"
}
],
"dataTypeDisplay": "struct<a:int,b:string>",
"dataType": "STRUCT"
},
{
"dataType": "STRUCT",
"dataTypeDisplay": "struct<unknown>",
"children": []
},
{
"children": [
{
"children": [
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>",
"name": "b"
},
{
"dataType": "BIGINT",
"dataTypeDisplay": "bigint",
"name": "c"
}
],
"dataTypeDisplay": "struct<b:array<string>,c:bigint>",
"dataType": "STRUCT",
"name": "a"
}
],
"dataTypeDisplay": "struct<a:struct<b:array<string>,c:bigint>>",
"dataType": "STRUCT"
},
{
"children": [
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>",
"name": "a"
}
],
"dataTypeDisplay": "struct<a:array<string>>",
"dataType": "STRUCT"
},
{
"children": [
{
"dataType": "ARRAY",
"arrayDataType": "STRUCT",
"dataTypeDisplay": "array<struct<bigquery_test_datatype_511:array<string>>>",
"children": [
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>",
"name": "bigquery_test_datatype_511"
}
],
"name": "bigquerytestdatatype51"
}
],
"dataTypeDisplay": "struct<bigquerytestdatatype51:array<struct<bigquery_test_datatype_511:array<string>>>>",
"dataType": "STRUCT"
},
{
"children": [
{
"children": [
{
"children": [
{
"children": [
{
"dataType": "STRING",
"dataTypeDisplay": "string",
"name": "record_4"
}
],
"dataTypeDisplay": "struct<record_4:string>",
"dataType": "STRUCT",
"name": "record_3"
}
],
"dataTypeDisplay": "struct<record_3:struct<record_4:string>>",
"dataType": "STRUCT",
"name": "record_2"
}
],
"dataTypeDisplay": "struct<record_2:struct<record_3:struct<record_4:string>>>",
"dataType": "STRUCT",
"name": "record_1"
}
],
"dataTypeDisplay": "struct<record_1:struct<record_2:struct<record_3:struct<record_4:string>>>>",
"dataType": "STRUCT"
},
{
"dataType": "ARRAY",
"arrayDataType": "STRUCT",
"dataTypeDisplay": "array<struct<check_datatype:array<string>>>",
"children": [
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>",
"name": "check_datatype"
}
]
},
{
"children": [
{
"dataType": "STRING",
"dataTypeDisplay": "string",
"name": "type"
},
{
"dataType": "ARRAY",
"arrayDataType": "INT",
"dataTypeDisplay": "array<int>",
"name": "provider"
}
],
"dataTypeDisplay": "struct<type:string,provider:array<int>>",
"dataType": "STRUCT"
},
{
"dataType": "UNKNOWN",
"dataTypeDisplay": "UNKNOWN",
"dataLength": 1
},
{
"dataType": "BIGINT",
"dataTypeDisplay": "bigint"
},
{
"dataType": "DOUBLE",
"dataTypeDisplay": "double"
},
{
"dataType": "VARCHAR",
"dataTypeDisplay": "VARCHAR",
"dataLength": 16777216
},
{
"dataType": "DATE",
"dataTypeDisplay": "date"
},
{
"dataType": "TIMESTAMP",
"dataTypeDisplay": "timestamp"
},
{
"dataType": "ARRAY",
"arrayDataType": "INT",
"dataTypeDisplay": "array<int>"
},
{
"dataType": "ARRAY",
"arrayDataType": "STRUCT",
"dataTypeDisplay": "array<struct<type:string,provider:array<int>>>",
"children": [
{
"dataType": "STRING",
"dataTypeDisplay": "string",
"name": "type"
},
{
"dataType": "ARRAY",
"arrayDataType": "INT",
"dataTypeDisplay": "array<int>",
"name": "provider"
}
]
},
{
"dataType": "ARRAY",
"arrayDataType": "BINARY",
"dataTypeDisplay": "array<binary>"
},
{
"dataType": "MAP",
"dataTypeDisplay": "map<integer,string>"
},
{
"dataType": "STRING",
"dataTypeDisplay": "string"
},
[
{
"dataType": "INT",
"dataTypeDisplay": "int"
},
{
"dataType": "DOUBLE",
"dataTypeDisplay": "double"
},
{
"dataType": "ARRAY",
"arrayDataType": "STRING",
"dataTypeDisplay": "array<string>"
},
{
"children": [
{
"dataType": "INT",
"dataTypeDisplay": "int",
"name": "a"
},
{
"dataType": "STRING",
"dataTypeDisplay": "string",
"name": "b"
}
],
"dataTypeDisplay": "struct<a:int,b:string>",
"dataType": "STRUCT"
}
],
{
"dataType": "ARRAY",
"arrayDataType": "ARRAY",
"dataTypeDisplay": "array<array<double>>"
}
]
}