RussellSpitzer commented on code in PR #4720:
URL: https://github.com/apache/iceberg/pull/4720#discussion_r867345558


##########
core/src/main/java/org/apache/iceberg/PartitionsTable.java:
##########
@@ -152,7 +152,7 @@ static CloseableIterable<FileScanTask> 
planFiles(StaticTableScan scan) {
 
     LoadingCache<Integer, ManifestEvaluator> evalCache = 
Caffeine.newBuilder().build(specId -> {
       PartitionSpec spec = table.specs().get(specId);
-      PartitionSpec transformedSpec = transformSpec(scan.schema(), spec);
+      PartitionSpec transformedSpec = transformSpec(scan.tableSchema(), spec);

Review Comment:
   So in this case "Schema" is the projected schema which is missing all the 
partition columns and "tableSchema" has the full partitionSpec. LGTM



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