UBarney commented on PR #14567: URL: https://github.com/apache/datafusion/pull/14567#issuecomment-2658014801
@alamb Here's an example where @findepi's transformation would prune a container, but this won't. Given data | col | |-----| | a | | b | | z | And a predicate `col NOT LIKE 'const_prefix%'` | | @UBarney's transformation | @findepi's transformation | | ------------------------ | ------------------------------------------------------------------------- | ------------------------------------------------------ | | PruningPredicate rewrite | `(col_min NOT LIKE 'const_prefix%' OR col_min NOT LIKE 'const_prefix%')` | `col_max < 'const_prefix' OR col_min >= 'const_prefiy` | | Substitution | `'a' NOT LIKE 'const_prefix%' OR 'z' NOT LIKE 'const_prefix%'` | '`z' < 'const_prefix' OR 'a' >= 'const_prefiy'` | | Evaluation | true OR true -> true | false OR false -> false | | Result | **KEEPS** the container | **PRUNES** the container | -- 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 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