-
Notifications
You must be signed in to change notification settings - Fork 272
Description
Hello,
I have Q about column lineage -f scratch.txt -l column
Issue 1:
I am trying to parse a large Store Procedure with multiple MS SQL statements and it produces bad results. So I tried to check and init__.py gives error at line # 27 if len(holder.write) > 1:
I believe this happens because generally in SP, the statements are not separated by semicolon ;
Is there a way to detect ; automatically and add at end of each statement?
For example
insert table x1 select b1 from foo
insert table x2 select b2 from bar
fails but when I add semicolon ; at end of first statement, it works. The problem is most do not write ; at end while writing Stored Procs. Is the a way out?
NOTE : For TSQL syntax is a bit diff but same issue
insert into x1 select b1 from foo
insert into x2 select b2 from bar
Issue 2: (This is a suggestion)
TSQL has syntax like
if object_id('tempdb..#tbl') is not null
drop table #tbl
Can you parse this and ignore it for lineage instead of creating error?
Thanks