You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "osipovartem (via GitHub)" <gi...@apache.org> on 2025/06/12 10:01:19 UTC

[I] Add support for snowflake cluster by expressions [datafusion-sqlparser-rs]

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-unsubscribe@datafusion.apache.org.apache.org

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


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


Re: [I] Add support for snowflake cluster by expressions [datafusion-sqlparser-rs]

Posted by "iffyio (via GitHub)" <gi...@apache.org>.
iffyio closed issue #1882: Add support for snowflake cluster by expressions
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1882


-- 
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-unsubscribe@datafusion.apache.org

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


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