Replies: 1 comment 4 replies
-
What does "parent table" mean in this context? Do you mean something like extracting the lineage for a column? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
A quick one,
I got the following sql statement:
"select t1.col1,t2.col2,t3.col3 from" + table1 + "t1 join" + table2 + "t2 on t1.id = t2.id join (select col1,col2 from" + table3 +
"where id = 11) t3 on t2.id=t3.id"
I can successfully retrieve the column and table name using sqlglot.
However i was wondering if i can obtain the parent table for each column and if possible the parent schema (not in the case of the sql above). Basically i'm looking for some hierarchical structure that contains it.
An example code would be much appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions