Skip to content

lphcreat/parse_lineage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

环境配置

  • Python versions >=3.8
  • pip install d3graph
  • download get_tb_lineage.py

说明

  • 解析conf\sql中的表之间的血缘关系,方便梳理数仓结构
  • 每个文件sink表只有一个,如果存在多个解析时只会保留第一个
  • 目标表识别使用insert 语句作为标识
  • 解析字段依赖可以使用该包 https://github.com/reata/sqllineage

使用

  • python get_tb_lineage.py file_name/file_directory
  • python get_tb_lineage.py file_name/file_directory filter_table_name
  • result 表关系
  • example python3.10 ./get_tb_lineage.py ./example.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages