mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-31 09:25:40 +00:00
* Fix 2270: Column Type Parser * Fix 2270: Column Type Parser * Added checks to allow arrayDataType and dataTypeDisplay * Modified - arrayDataType and dataTypeDisplay * Update sql_source.py * Update sql_source.py * file formatted * Modified according to column_type_parser.py * modified / refactored / deleted the files * Added Tests, modified sql_source * file formatted * Added missing datatypes * Added Tests * Added Tests * Added Tests - refactored expected output into a json file * file formatted * Sample Data Updated Co-authored-by: Ayush Shah <ayush@getcollate.io>
110 lines
2.9 KiB
JSON
110 lines
2.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"
|
|
},
|
|
{
|
|
"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>>>",
|
|
"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>>>"
|
|
}
|
|
]
|
|
} |