Stefanietry commented on code in PR #8081:
URL: https://github.com/apache/paimon/pull/8081#discussion_r3354549525
##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/commands/MergeIntoPaimonDataEvolutionTable.scala:
##########
@@ -426,7 +451,8 @@ case class MergeIntoPaimonDataEvolutionTable(
val sourceTableProjExprs =
allReadFieldsOnSource.toSeq :+ Alias(TrueLiteral, ROW_FROM_SOURCE)()
- val sourceTableProj = Project(sourceTableProjExprs, sourceTable)
+ val sourceChild =
persistSourceDss.map(_.queryExecution.logical).getOrElse(sourceTable)
Review Comment:
Done, the persisted source has been successfully passed to the insert path
as per the suggestion, thereby avoiding redundant calculations.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]