You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
首先我修改了一下SQLAlchemyMetaDataProvider中的_get_table_columns函数,添加了一行打印columns信息,下面是我的测试代码,发现两个表的元数据都能捕捉到,但是血缘分析是空的,有没有大佬可以帮忙看一下
I can connect to the hive database and get metadata such as column names using sqlalchemy but can't get the column-level lineage, only a "None" in return. 代码/Code:
from sqllineage.core.metadata.sqlalchemy import SQLAlchemyMetaDataProvider
from sqllineage.runner import LineageRunner
host = '192.168.10.100'
port = 10000
database = 'default'
url = f'hive://{host}:{port}/{database}
sql = "INSERT INTO test_user2 SELECT * FROM test_user;"
provider = SQLAlchemyMetaDataProvider(url)
print('血缘信息:',LineageRunner(sql, dialect="hive",metadata_provider=provider).print_column_lineage())
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
首先我修改了一下SQLAlchemyMetaDataProvider中的_get_table_columns函数,添加了一行打印columns信息,下面是我的测试代码,发现两个表的元数据都能捕捉到,但是血缘分析是空的,有没有大佬可以帮忙看一下
I can connect to the hive database and get metadata such as column names using sqlalchemy but can't get the column-level lineage, only a "None" in return.
代码/Code:
运行结果/Running Result:
Process finished with exit code 0`
Beta Was this translation helpful? Give feedback.
All reactions