jayzhan211 commented on code in PR #27646:
URL: https://github.com/apache/datafusion/pull/27646#discussion_r4656330892
##########
datafusion/physical-expr/src/equivalence/class.rs:
##########
@@ -802,6 +802,9 @@ impl EquivalenceGroup {
IndexMap::<_, EquivalenceClass>::with_capacity(mapping.len());
let mut augmented = None;
for (source, targets) in mapping.iter() {
+ if is_volatile(source) {
+ continue;
+ }
Review Comment:
Optional cleanup: a one-line reason would say why volatile sources can't
share a class, which the check alone doesn't show.
```suggestion
// Each target evaluates a volatile source again, so the targets
are
// not equal to each other or to anything in the input.
if is_volatile(source) {
continue;
}
```
--
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]