feat: add a custom ExprPlanner to support colon operator#57
feat: add a custom ExprPlanner to support colon operator#57Samyak2 wants to merge 4 commits intodatafusion-contrib:mainfrom
Conversation
Closes datafusion-contrib#26 - Add a custom `ExprPlanner` that handles `:` as an operator and re-writes it to `variant_get`.
|
TODO:
|
friendlymatthew
left a comment
There was a problem hiding this comment.
Thanks @Samyak2
Can we add some tests as well please
| #[derive(Debug)] | ||
| pub struct VariantExprPlanner; |
There was a problem hiding this comment.
Can we add some comments here that explain what this does
|
There seems to a bug in the sql parser. These are failing: and fails with: |
|
Another problem. Cast does not get parsed as a
So we won't be able to support 3-arg version like |
Is this a bug though? It seems like a Databricks dialect specifics.
Another issue to work on in sqlparser-rs? |
Closes #26
ExprPlannerthat handles:as an operator and re-writes it tovariant_get.