spark-sql-flow-plugin icon indicating copy to clipboard operation
spark-sql-flow-plugin copied to clipboard

Supported Insert as select sql

Open melin opened this issue 2 years ago • 5 comments

example: insert into table bigdata.test_child_lineage select * from bigdata.test_child_dt where ds='20211207'

There is a lineage relationship between test_child_lineage and test_child_dt

melin avatar Dec 08 '21 10:12 melin

Yea, but it is not easy to implement it because Spark does not hold the relationship in its catalog. Probably, we need a custom SQL listener to track INSERT query logs.

maropu avatar Dec 10 '21 00:12 maropu

Have a plan to finish? Thanks!

melin avatar Mar 15 '22 15:03 melin

I don't have it because I don't have a smart idea for implementing it. Any plan to use the feature if it's implemented?

maropu avatar Mar 15 '22 23:03 maropu

Will use, most of the scheduling job that run every day are insert sql job

melin avatar Mar 18 '22 15:03 melin

https://zhuanlan.zhihu.com/p/502927331?utm_source=wechat_session&utm_medium=social&utm_oi=27427107504128&utm_campaign=shareopn&s_r=0 The article has description to solve this problem

melin avatar May 17 '22 10:05 melin