mingjialiu commented on a change in pull request #29564:
URL: https://github.com/apache/spark/pull/29564#discussion_r486063202
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2ScanExec.scala
##########
@@ -52,6 +53,17 @@ case class DataSourceV2ScanExec(
case _ => false
}
+ override def doCanonicalize(): DataSourceV2ScanExec = {
+ DataSourceV2ScanExec(
+ output.map(QueryPlan.normalizeExprId(_, output)),
+ source,
+ options,
+ QueryPlan.normalizePredicates(
+ pushedFilters,
+ AttributeSeq(pushedFilters.flatMap(_.references).distinct)),
Review comment:
Output here doesn't contain all predicate columns due to implementation
at :
https://github.com/apache/spark/blob/branch-2.4/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala#L108
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]