morvenhuang commented on code in PR #36507:
URL: https://github.com/apache/spark/pull/36507#discussion_r870343137
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/StreamingJoinHelper.scala:
##########
@@ -132,8 +132,8 @@ object StreamingJoinHelper extends PredicateHelper with
Logging {
leftExpr.collect { case a: AttributeReference => a } ++
rightExpr.collect { case a: AttributeReference => a }
)
- if (attributesInCondition.filter {
attributesToFindStateWatermarkFor.contains(_) }.size > 1 ||
- attributesInCondition.filter {
attributesWithEventWatermark.contains(_) }.size > 1) {
+ if (attributesInCondition.count {
attributesToFindStateWatermarkFor.contains(_) } > 1 ||
Review Comment:
Thank you, you're right, I've updated these 2 lines.
--
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]