vanzin commented on a change in pull request #26108: [SPARK-26154][SS]
Streaming left/right outer join should not return outer nulls for already
matched rows
URL: https://github.com/apache/spark/pull/26108#discussion_r338821563
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamingSymmetricHashJoinExec.scala
##########
@@ -139,13 +141,20 @@ case class StreamingSymmetricHashJoinExec(
rightKeys: Seq[Expression],
joinType: JoinType,
condition: Option[Expression],
+ stateFormatVersion: Int,
left: SparkPlan,
right: SparkPlan) = {
this(
leftKeys, rightKeys, joinType, JoinConditionSplitPredicates(condition,
left, right),
stateInfo = None, eventTimeWatermark = None,
- stateWatermarkPredicates = JoinStateWatermarkPredicates(), left, right)
+ stateWatermarkPredicates = JoinStateWatermarkPredicates(),
stateFormatVersion, left, right)
+ }
+
+ if (stateFormatVersion < 2 && joinType != Inner) {
+ logError(s"The query is using stream-stream outer join with state format
version" +
Review comment:
Is logging enough? Shouldn't you just fail the query?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]