You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/operators/stateful/join/SymmetricHashJoinStateManager.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -692,6 +692,11 @@ class SymmetricHashJoinStateManagerV4(
692
692
693
693
newNextIterator[GetValuesResult] {
694
694
privatevaliter=if (useRangeScan) {
695
+
// startKey must be copied because the second createKeyRow call below reuses
696
+
// the same projection buffer and would otherwise overwrite its contents.
697
+
// endKey does not need a copy: rangeScanWithMultiValues encodes both bounds
698
+
// to independent byte arrays eagerly at call time, and the scope of endKey
699
+
// ends with the call of rangeScanWithMultiValues.
695
700
valstartKey= createKeyRow(key, minTs).copy()
696
701
// rangeScanWithMultiValues endKey is exclusive, so use maxTs + 1
0 commit comments