RussellSpitzer commented on code in PR #6680: URL: https://github.com/apache/iceberg/pull/6680#discussion_r1089813726
########## core/src/main/java/org/apache/iceberg/ManifestFilterManager.java: ########## @@ -510,16 +510,19 @@ private Pair<InclusiveMetricsEvaluator, StrictMetricsEvaluator> metricsEvaluator // in other words, ResidualEvaluator returns a part of the expression that needs to be // evaluated // for rows in the given partition using metrics - return metricsEvaluators.computeIfAbsent( - file.partition(), - partition -> { - Expression residual = residualEvaluator.residualFor(partition); - InclusiveMetricsEvaluator inclusive = - new InclusiveMetricsEvaluator(tableSchema, residual, caseSensitive); - StrictMetricsEvaluator strict = - new StrictMetricsEvaluator(tableSchema, residual, caseSensitive); - return Pair.of(inclusive, strict); - }); + PartitionData partition = (PartitionData) file.partition(); Review Comment: Ok I found a bug in StructCopy as well, it doesn't copy FixedByte types and just copies array values so we actually probably need to file a issue for that. It should be doing this From PartitionData.copyData ```java case FIXED: byte[] buffer = (byte[]) data[i]; copy[i] = Arrays.copyOf(buffer, buffer.length); break; ``` but instead the StructCopy code always does this ```java if (value instanceof StructLike) { values[i] = copy((StructLike) value); } else { values[i] = value; } ``` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org