jalpan-randeri commented on code in PR #16210:
URL: https://github.com/apache/iceberg/pull/16210#discussion_r3213969384


##########
core/src/main/java/org/apache/iceberg/MicroBatches.java:
##########
@@ -76,6 +108,20 @@ public static CloseableIterable<FileScanTask> 
openManifestFile(
     return manifestGroup.planFiles();
   }
 
+  // 2. The Helper Method using Iceberg's core Visitor
+  private static boolean isPartitionOnly(
+      Expression expr, Types.StructType partitionType, boolean caseSensitive) {
+    try {
+      // If this doesn't throw an error, it means the filter
+      // only uses columns present in the partition schema.
+      Binder.bind(partitionType, expr, caseSensitive);
+      return true;

Review Comment:
   Thanks for the pointer. I was looking for a clean way to handle the spec 
lookup earlier but couldn't find a good reference. 



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