Skip to content

Commit

Permalink
Use ImmutableList for descriptor map key in parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
leetcode-1533 authored and raunaqmorarka committed Sep 23, 2022
1 parent 652477f commit b37f6a7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -52,7 +52,7 @@ private ParquetTypeUtils() {}

public static List<PrimitiveColumnIO> getColumns(MessageType fileSchema, MessageType requestedSchema)
{
return (new ColumnIOFactory()).getColumnIO(requestedSchema, fileSchema, true).getLeaves();
return ImmutableList.copyOf((new ColumnIOFactory()).getColumnIO(requestedSchema, fileSchema, true).getLeaves());
}

public static MessageColumnIO getColumnIO(MessageType fileSchema, MessageType requestedSchema)
Expand Down

0 comments on commit b37f6a7

Please sign in to comment.