Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ case class BatchScanExecTransformer(
runtimeFilters = QueryPlan.normalizePredicates(
runtimeFilters.filterNot(_ == DynamicPruningExpression(Literal.TrueLiteral)),
output),
keyGroupedPartitioning = keyGroupedPartitioning.map(
_.map(QueryPlan.normalizeExpressions(_, output))),
pushDownFilters = pushDownFilters.map(QueryPlan.normalizePredicates(_, output))
Comment on lines 69 to 73
)
}
Expand Down Expand Up @@ -194,12 +196,15 @@ abstract class BatchScanExecTransformerBase(

override def equals(other: Any): Boolean = other match {
case other: BatchScanExecTransformerBase =>
this.pushDownFilters == other.pushDownFilters && super.equals(other)
this.keyGroupedPartitioning == other.keyGroupedPartitioning &&
this.pushDownFilters == other.pushDownFilters &&
super.equals(other)
case _ =>
false
}

override def hashCode(): Int = Objects.hashCode(batch, runtimeFilters, pushDownFilters)
override def hashCode(): Int =
Objects.hashCode(batch, runtimeFilters, keyGroupedPartitioning, pushDownFilters)

/** Return a copy of this scan with a new output schema. */
def withOutput(newOutput: Seq[AttributeReference]): BatchScanExecTransformerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ object ScanTransformerFactory {
batchScanExec.output,
batchScanExec.scan,
batchScanExec.runtimeFilters,
keyGroupedPartitioning =
SparkShimLoader.getSparkShims.getKeyGroupedPartitioning(batchScanExec),
table = SparkShimLoader.getSparkShims.getBatchScanExecTable(batchScanExec)
)
}
Expand Down
Loading