Skip to content

Identify table references in the projections #1575

Answered by kasvith
kasvith asked this question in Q&A
Discussion options

You must be logged in to vote

Ok as per docs https://docs.rs/sqlparser/0.52.0/sqlparser/ast/enum.Expr.html#variant.CompoundIdentifier

if the vec has 2 elements it looks like parser is evaluating it to table_alias.col and if its 3 elements its schema.table.col

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kasvith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant