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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]