Use primitive Block#copyPositions in orc MapStreamReader
@@ -188,8 +188,8 @@ public class MapStreamReader
}
}
- Block newKeys = keys.copyPositions(nonNullPositions);
- Block newValues = values.copyPositions(nonNullPositions);
+ Block newKeys = keys.copyPositions(nonNullPositions.elements(), 0, nonNullPositions.size());
+ Block newValues = values.copyPositions(nonNullPositions.elements(), 0, nonNullPositions.size());
return new Block[] {newKeys, newValues};
}
