Closed cfabianski closed 2 years ago
Thank you for the contribution :)
After thinking some more about it there are at least 3 cases where we can use dot notation:
SELECT foo.col1 AS foo_col1, bar.col1 AS bar_col2 FROM foo, bar
Column reference also could be in the form of <schema>.<table>.<column>
according to docs
Due to this, I think it's better to go with something like dotted_name
similar python parser
Hey, thanks for the contribution.
Note that I modified stuff a bit as I went with a more generic dotted_name
node instead of table_reference
to cover the cases mentioned above.
Appreciate the test cases, they helped quite a bit.
Do you have a particular use case that I should keep in mind?
A table_reference can be
my_table
orpublic.my_table
. This PR allows this while also keeping the schema and the table name separated.