ayman-sigma opened a new pull request, #1539:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1539

   Right now `ObjectName` is just list of identifiers. We parse each object 
name path segment as a string identifier.  Some dialects has more rich types 
for each path segment. This PR rework the object name to allow different types 
for each path segment.
   
   Examples this PR will make it easier to support:
   1. Databricks `IDENTIFIER` clause. Example: `SELECT * FROM 
myschema.IDENTIFIER(:mytab)`. The `(:mytab)` is wrongly parsed right now as 
`TableFunctionArgs`.  More details: 
https://docs.databricks.com/en/sql/language-manual/sql-ref-names-identifier-clause.html
   2. Snowflake double-dot notation. Example `SELECT * FROM db..table_name`. 
This indicates that use of default schema `PUBLIC`.  With this PR, we can use 
`DefaultSchema` variant for the path segment instead of using empty identifier. 
More details: 
https://docs.snowflake.com/en/sql-reference/name-resolution#resolution-when-schema-omitted-double-dot-notation


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to