-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support backwards compatible reads for unnanotated repeated primitive
fields in Parquet Per the Parquet Spec `A repeated field that is neither contained by a LIST- or MAP-annotated group nor annotated by LIST or MAP should be interpreted as a required list of required elements where the element type is the type of the field`, however Trino currently throws an error: `class org.apache.parquet.io.PrimitiveColumnIO cannot be cast to class org.apache.parquet.io.GroupColumnIO (org.apache.parquet.io.PrimitiveColumnIO and org.apache.parquet.io.GroupColumnIO`. This commit adds support for these backwards compatible reads.
- Loading branch information
1 parent
dc73c85
commit a13e0a1
Showing
4 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+389 Bytes
...in/trino-hive/src/test/resources/parquet_repeated_primitives/int/old-repeated-int.parquet
Binary file not shown.
Binary file added
BIN
+411 Bytes
...no-hive/src/test/resources/parquet_repeated_primitives/string/old-repeated-string.parquet
Binary file not shown.