davidhewitt opened a new issue, #15389: URL: https://github.com/apache/datafusion/issues/15389
### Is your feature request related to a problem or challenge? Followup to #15354 We were able to simplify `array_has(<constant-size list>, needle)` to `needle IN <constant-size list>` for `List` scalar values, but not for `LargeList`. ### Describe the solution you'd like ```sql explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i)) select count(*) from test WHERE array_has(arrow_cast(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], 'LargeList(Utf8View)'), needle); ``` This query should demonstrate rewriting of the UDF to `IN` expression. ### Describe alternatives you've considered _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-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org