mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-10 18:17:29 +00:00
add ingestion hive col_comment (#2594)
This commit is contained in:
parent
d3f34c9490
commit
9a0ffc08e4
@ -27,7 +27,7 @@ def get_columns(self, connection, table_name, schema=None, **kw):
|
|||||||
rows = [[col.strip() if col else None for col in row] for row in rows]
|
rows = [[col.strip() if col else None for col in row] for row in rows]
|
||||||
rows = [row for row in rows if row[0] and row[0] != "# col_name"]
|
rows = [row for row in rows if row[0] and row[0] != "# col_name"]
|
||||||
result = []
|
result = []
|
||||||
for (col_name, col_type, _comment) in rows:
|
for (col_name, col_type, comment) in rows:
|
||||||
if col_name == "# Partition Information":
|
if col_name == "# Partition Information":
|
||||||
break
|
break
|
||||||
col_raw_type = col_type
|
col_raw_type = col_type
|
||||||
@ -44,6 +44,7 @@ def get_columns(self, connection, table_name, schema=None, **kw):
|
|||||||
{
|
{
|
||||||
"name": col_name,
|
"name": col_name,
|
||||||
"type": coltype,
|
"type": coltype,
|
||||||
|
"comment": comment,
|
||||||
"nullable": True,
|
"nullable": True,
|
||||||
"default": None,
|
"default": None,
|
||||||
"raw_data_type": col_raw_type
|
"raw_data_type": col_raw_type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user