aokolnychyi commented on a change in pull request #3764:
URL: https://github.com/apache/iceberg/pull/3764#discussion_r772558446



##########
File path: 
spark/v3.2/spark-extensions/src/main/scala/org/apache/spark/sql/execution/dynamicpruning/RowLevelCommandDynamicPruning.scala
##########
@@ -109,6 +123,18 @@ case class RowLevelCommandDynamicPruning(spark: 
SparkSession) extends Rule[Logic
     dynamicPruningSubqueries.reduce(And)
   }
 
+  private def buildAttrMap(
+      tableAttrs: Seq[Attribute],
+      scanAttrs: Seq[Attribute]): AttributeMap[Attribute] = {
+
+    val attrMapping = tableAttrs.flatMap { tableAttr =>
+      scanAttrs
+        .find(scanAttr => scanAttr.name == tableAttr.name)

Review comment:
       We could use a resolver to be safe but we are sure the names will match 
as the other attribute is constructed by cloning the original one. I'll update 
anyway.




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to