File tree 3 files changed +4
-4
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ case class BatchScanExec(
48
48
// TODO: unify the equal/hashCode implementation for all data source v2 query plans.
49
49
override def equals (other : Any ): Boolean = other match {
50
50
case other : BatchScanExec =>
51
- this .batch != null && this .batch == other.batch &&
52
- this .runtimeFilters == other.runtimeFilters &&
51
+ this .getClass == other.getClass && this .batch != null &&
52
+ this .batch == other.batch && this .runtimeFilters == other.runtimeFilters &&
53
53
this .spjParams == other.spjParams
54
54
case _ =>
55
55
false
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ case class ContinuousScanExec(
38
38
39
39
// TODO: unify the equal/hashCode implementation for all data source v2 query plans.
40
40
override def equals (other : Any ): Boolean = other match {
41
- case other : ContinuousScanExec => this .stream == other.stream
41
+ case other : ContinuousScanExec => this .getClass == other.getClass && this . stream == other.stream
42
42
case _ => false
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ case class MicroBatchScanExec(
41
41
42
42
// TODO: unify the equal/hashCode implementation for all data source v2 query plans.
43
43
override def equals (other : Any ): Boolean = other match {
44
- case other : MicroBatchScanExec => this .stream == other.stream
44
+ case other : MicroBatchScanExec => this .getClass == other.getClass && this . stream == other.stream
45
45
case _ => false
46
46
}
47
47
You can’t perform that action at this time.
0 commit comments