Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

thrift:
mkdir -p generated
thrift --gen cpp -o generated src/thrift/parquet.thrift
thrift --gen java -o generated src/thrift/parquet.thrift
thrift --gen cpp -o generated src/main/thrift/parquet.thrift
thrift --gen java -o generated src/main/thrift/parquet.thrift
10 changes: 8 additions & 2 deletions src/main/thrift/parquet.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,9 @@ struct RowGroup {
4: optional list<SortingColumn> sorting_columns
}

/** Empty struct to signal the order defined by the physical or logical type */
/** Empty structs to signal the order defined by the physical or logical type */
struct TypeDefinedOrder {}
struct InvalidOrder {}

/**
* Union to specify the order used for min, max, and sorting values in a column.
Expand All @@ -588,11 +589,16 @@ struct TypeDefinedOrder {}
* * TypeDefinedOrder - the column uses the order defined by its logical or
* physical type (if there is no logical type).
*
* * InvalidOrder - the column uses an invalid order that no reader should support.
* This order can be used to test logic to exclude unsupported orders
* and should not be used otherwise.
*
* If the reader does not support the value of this union, min and max stats
* for this column should be ignored.
*/
union ColumnOrder {
1: TypeDefinedOrder TYPE_ORDER;
1: TypeDefinedOrder TYPE_ORDER
2: InvalidOrder INVALID_ORDER
}

/**
Expand Down