lyne7-sc opened a new issue, #22561: URL: https://github.com/apache/datafusion/issues/22561
### Describe the bug `LIKE 'prefix%'` predicates produce `predicate_evaluation_errors` on `Utf8View` and `LargeUtf8` columns, causing row group and page index pruning to be skipped entirely. ``` predicate=name@1 LIKE B% pruning_predicate=name_null_count@2 != row_count@3 AND name_min@0 <= C AND B <= name_max@1 row_groups_pruned_statistics=0 total → 0 matched page_index_pag page_index_rows_pruned=4.17 M total → 4.17 M matched bytes_scanned=29.68 M num_predicate_creation_errors=12 predicate_evaluation_errors=20 ``` LargeUtf8 columns are affected for the same reason. ### To Reproduce Any Parquet file with a string column, using default settings: ``` CREATE EXTERNAL TABLE t STORED AS PARQUET LOCATION test.parquet; EXPLAIN ANALYZE SELECT COUNT(*) FROM t WHERE str_col LIKE 'a%'; ``` ### Expected behavior LIKE 'prefix%' predicates should produce the same row group statistics and page index pruning that they do for Utf8 columns. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
