diff --git a/src/main/java/net/snowflake/ingest/streaming/internal/IcebergParquetValueParser.java b/src/main/java/net/snowflake/ingest/streaming/internal/IcebergParquetValueParser.java index 8c56896c7..71af27366 100644 --- a/src/main/java/net/snowflake/ingest/streaming/internal/IcebergParquetValueParser.java +++ b/src/main/java/net/snowflake/ingest/streaming/internal/IcebergParquetValueParser.java @@ -16,6 +16,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; +import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Optional; @@ -423,7 +424,7 @@ private static ParquetBufferValue getStructValue( boolean isDescendantsOfRepeatingGroup) { Map structVal = DataValidationUtil.validateAndParseIcebergStruct(path, value, insertRowsCurrIndex); - Set extraFields = structVal.keySet(); + Set extraFields = new HashSet<>(structVal.keySet()); List listVal = new ArrayList<>(type.getFieldCount()); float estimatedParquetSize = 0f; for (int i = 0; i < type.getFieldCount(); i++) {