rdblue commented on a change in pull request #830:
URL: https://github.com/apache/iceberg/pull/830#discussion_r441023112
##########
File path: parquet/src/main/java/org/apache/iceberg/parquet/PruneColumns.java
##########
@@ -71,11 +73,14 @@ public Type struct(GroupType struct, List<Type> fields) {
for (int i = 0; i < fields.size(); i += 1) {
Type originalField = struct.getType(i);
Type field = fields.get(i);
- if (selectedIds.contains(getId(originalField))) {
- filteredFields.add(originalField);
- } else if (field != null) {
- filteredFields.add(originalField);
- hasChange = true;
+ Integer fieldId = getId(originalField);
+ if (fieldId != null) {
Review comment:
Same logic as above applies here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]