rdblue commented on code in PR #6047:
URL: https://github.com/apache/iceberg/pull/6047#discussion_r1004620626
##########
core/src/main/java/org/apache/iceberg/BaseTableScan.java:
##########
@@ -135,7 +137,15 @@ public CloseableIterable<FileScanTask> planFiles() {
planningDuration.stop();
ScanReport scanReport =
ImmutableScanReport.builder()
- .projection(schema())
+ .schemaId(schema().schemaId())
+ .projectedFieldIds(
+ schema().columns().stream()
+ .map(NestedField::fieldId)
+ .collect(Collectors.toList()))
+ .projectedFieldNames(
+ schema().columns().stream()
+ .map(NestedField::name)
+ .collect(Collectors.toList()))
Review Comment:
This should use the set of projected IDs and look up names using
`Schema.findColumnName(Integer)`.
--
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]