osipovartem opened a new issue, #1882:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1882

   ```sql
   CLUSTER BY (to_date(ts), coalesce(foo, 'bar'))
   ```
   Failed with `ParserError("Expected: ), found: (`
   
https://docs.snowflake.com/en/user-guide/tables-clustering-keys#defining-a-clustering-key-for-a-table
   
   We need to extend/change CreateTable cluster_by type from 
   ```rust
   pub cluster_by: Option<WrappedCollection<Vec<Ident>>>,
   ```
   to 
   ```rust
   pub cluster_by: Option<WrappedCollection<Vec<Expr>>>,
   ```
   This allows statements like CLUSTER BY (to_date(start_tstamp)) to be parsed 
correctly.


-- 
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.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