diff --git a/LogicalTypes.md b/LogicalTypes.md index 8c73f693d..c411dbfad 100644 --- a/LogicalTypes.md +++ b/LogicalTypes.md @@ -366,3 +366,7 @@ optional group my_map (MAP_KEY_VALUE) { } ``` +## Null +Sometimes when discovering the schema of existing data values are always null and there's no type information. +The `NULL` type can be used to annotates a column that is always null. +(Similar to Null type in Avro) diff --git a/src/main/thrift/parquet.thrift b/src/main/thrift/parquet.thrift index ac4d50eb4..e89bc806c 100644 --- a/src/main/thrift/parquet.thrift +++ b/src/main/thrift/parquet.thrift @@ -174,7 +174,13 @@ enum ConvertedType { * particular timezone or date. */ INTERVAL = 21; - + + /** + * Annotates a column that is always null + * Sometimes when discovering the schema of existing data + * values are always null + */ + NULL = 25; } /**