viirya commented on code in PR #7721:
URL: https://github.com/apache/datafusion-comet/pull/7721#discussion_r4703067391
##########
spark/src/main/scala/org/apache/spark/sql/comet/execution/arrow/ArrowCachedBatchSerializer.scala:
##########
@@ -489,12 +489,33 @@ class ArrowCachedBatchSerializer extends
SimpleMetricsCachedBatchSerializer {
p.references.forall(a => prunable.contains(a.exprId)) &&
!prunesOnCollatedPrefix(p)
}
- super.buildFilter(prunablePredicates, cachedAttributes)
+ // C3 matches the first byte of U+00E9 (C3 A9), but Spark cuts bounds by
character and rejects
Review Comment:
The doc block above `buildFilter` (L477-478) still points only to
`prunesOnCollatedPrefix` for why `StartsWith` can be unsafe to prune on. Could
it also mention this rewrite, so the method's pruning-safety rules are
described in one place?
--
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]