rdblue commented on code in PR #6047:
URL: https://github.com/apache/iceberg/pull/6047#discussion_r1004617156
##########
core/src/main/java/org/apache/iceberg/metrics/ScanReportParser.java:
##########
@@ -71,8 +71,24 @@ public static void toJsonWithoutStartEnd(ScanReport
scanReport, JsonGenerator ge
gen.writeFieldName(FILTER);
ExpressionParser.toJson(scanReport.filter(), gen);
- gen.writeFieldName(PROJECTION);
- SchemaParser.toJson(scanReport.projection(), gen);
+ gen.writeNumberField(SCHEMA_ID, scanReport.schemaId());
+
+ // fieldIds & fieldNames can be empty with an empty projection
+ if (!scanReport.projectedFieldIds().isEmpty()) {
Review Comment:
Can we write an empty list if the projected IDs are empty? I think that way
we know explicitly that nothing was projected.
--
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]