一、sqllineage
SQL Lineage Analysis Tool powered by Python
源码地址:https://github.com/reata/sqllineage
安装:pip install sqllineage
使用:sqllineage -e "select * from tabA"
sqllineage -f demo.sql
二、在线工具 https://sqlflow.gudusoft.com/#/
著名的sqlparser: http://www.sqlparser.com/index.php提供几个Live Demo工具,其中有展示血缘关系的小工具,访问地址是https://sqlflow.gudusoft.com/#/
这个在线工具的好处,不仅可以展现表间的关系,也可以提取表的字段。
应用界面:
三、spark sql执行流程