You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "zhuliquan (via GitHub)" <gi...@apache.org> on 2024/08/25 10:53:04 UTC
[I] not support similar to expr run in physical expr? [datafusion]
zhuliquan opened a new issue, #12155:
URL: https://github.com/apache/datafusion/issues/12155
### Describe the bug
There is `SimilarTo` expr in logical expr
https://github.com/apache/datafusion/blob/23ccca9cd9bdf1791985f2b4abb6d5d8a4fc5ece/datafusion/expr/src/expr.rs#L241
However, there is not arm for SimilarTo expr in func `create_physical_expr` (in datafusion/physical-expr/src/planner.rs:L106)
If I write sql include `SimilarTo` expr will got a panic which throw from below code
https://github.com/apache/datafusion/blob/23ccca9cd9bdf1791985f2b4abb6d5d8a4fc5ece/datafusion/physical-expr/src/planner.rs#L345-L347
For example:
```text
> select * from t1 where c1 similar to 'x*';
This feature is not implemented: Physical plan does not support logical expression SimilarTo(Like { negated: false, expr: Column(Column { relation: Some(Bare { table: "t1" }), name: "c1" }), pattern: Literal(Utf8("x*")), escape_char: None, case_insensitive: false })
```
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
Whether to consider removing the `SimilarTo` expression from the logical expression or add arm for it to convert to a special physical expression in func `create_physical_expr`
--
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] not support similar to expr run in physical expr? [datafusion]
Posted by "theirix (via GitHub)" <gi...@apache.org>.
theirix commented on issue #12155:
URL: https://github.com/apache/datafusion/issues/12155#issuecomment-2310253332
take
--
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
Re: [I] not support similar to expr run in physical expr? [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #12155: not support similar to expr run in physical expr?
URL: https://github.com/apache/datafusion/issues/12155
--
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