marin-ma commented on code in PR #13109:
URL: https://github.com/apache/gluten/pull/13109#discussion_r4157553821


##########
gluten-substrait/src/main/scala/org/apache/gluten/execution/BatchScanExecTransformer.scala:
##########
@@ -80,6 +81,13 @@ case class BatchScanExecTransformer(
     this.copy(pushDownFilters = Some(filters))
   }
 
+  override def supportsMapKeyPruning: Boolean = true
+
+  override def withRequiredMapSubfields(
+      subfields: Map[String, Seq[SubfieldPath]]): BatchScanExecTransformerBase 
= {
+    this.copy(requiredMapSubfields = subfields)

Review Comment:
    Wrong. Scala copy keeps every field that is not named, so the declaration 
survives canonicalization. The file-source scan even passes it explicitly. 
Equality and hashCode include it too.



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