From bb5e7cf2247d0dfcb75bfff087bfee42675f3175 Mon Sep 17 00:00:00 2001 From: Ed Seidl Date: Wed, 8 Apr 2026 11:57:17 -0700 Subject: [PATCH 1/2] make ColumnMetaData.path_in_schema optional --- src/main/thrift/parquet.thrift | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/thrift/parquet.thrift b/src/main/thrift/parquet.thrift index 883264c3..4a7b3d35 100644 --- a/src/main/thrift/parquet.thrift +++ b/src/main/thrift/parquet.thrift @@ -885,8 +885,17 @@ struct ColumnMetaData { * whether we can decode those pages. **/ 2: required list encodings - /** Path in schema **/ - 3: required list path_in_schema + /** + * Path in schema + * + * The writing of this field has been made optional as of version 2.X.0. + * The information contained in this field is easily obtainable from + * the schema, and redundantly storing it here can lead to unnecessary + * bloat in the footer. Writers are encouraged to make the writing of + * this field optional, but for maximal compatibility should default to + * writing the field until at least Month 202X. + */ + 3: optional list path_in_schema /** Compression codec **/ 4: required CompressionCodec codec From 3164061e6c6770c77c8c63db1e70c75dd06cd0f5 Mon Sep 17 00:00:00 2001 From: Ed Seidl Date: Fri, 10 Apr 2026 11:14:46 -0700 Subject: [PATCH 2/2] Update src/main/thrift/parquet.thrift Co-authored-by: Andrew Lamb --- src/main/thrift/parquet.thrift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/thrift/parquet.thrift b/src/main/thrift/parquet.thrift index 4a7b3d35..41619828 100644 --- a/src/main/thrift/parquet.thrift +++ b/src/main/thrift/parquet.thrift @@ -888,7 +888,7 @@ struct ColumnMetaData { /** * Path in schema * - * The writing of this field has been made optional as of version 2.X.0. + * The writing of this field has been made optional as of June 2026. * The information contained in this field is easily obtainable from * the schema, and redundantly storing it here can lead to unnecessary * bloat in the footer. Writers are encouraged to make the writing of