You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "paf31 (via GitHub)" <gi...@apache.org> on 2025/07/08 14:51:25 UTC
[I] ILIKE incorrectly optimized to equality test [datafusion]
paf31 opened a new issue, #16714:
URL: https://github.com/apache/datafusion/issues/16714
### Describe the bug
Best demonstrated with an example:
```
> select a ilike 'foo' from values ('FOO') bar(a);
+-------------------------+
| bar.a ILIKE Utf8("foo") |
+-------------------------+
| false |
+-------------------------+
```
`EXPLAIN VERBOSE` points to `expr_simplifier.rs` where the following is incorrectly assumed:
```rust
// If the pattern does not contain any wildcards, we can simplify the like expression to an equality expression
```
(missing the check on `case_insensitive`)
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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] ILIKE incorrectly optimized to equality test [datafusion]
Posted by "paf31 (via GitHub)" <gi...@apache.org>.
paf31 commented on issue #16714:
URL: https://github.com/apache/datafusion/issues/16714#issuecomment-3049360977
Fixed in https://github.com/apache/datafusion/commit/f52d9b95a
--
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] ILIKE incorrectly optimized to equality test [datafusion]
Posted by "paf31 (via GitHub)" <gi...@apache.org>.
paf31 closed issue #16714: ILIKE incorrectly optimized to equality test
URL: https://github.com/apache/datafusion/issues/16714
--
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