From 57f674da5143d2c53158992d4914cca5b54d708c Mon Sep 17 00:00:00 2001 From: mwish Date: Sat, 3 Aug 2024 23:24:39 +0800 Subject: [PATCH] copy file-offset comment from arrow-rs --- cpp/src/parquet/metadata.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cpp/src/parquet/metadata.h b/cpp/src/parquet/metadata.h index e02d2e7c852f0..932312a8f3304 100644 --- a/cpp/src/parquet/metadata.h +++ b/cpp/src/parquet/metadata.h @@ -146,7 +146,12 @@ class PARQUET_EXPORT ColumnChunkMetaData { bool Equals(const ColumnChunkMetaData& other) const; - // column chunk + // Byte offset of `ColumnMetaData` in `file_path()`. + // + // Note that the meaning of this field has been inconsistent between implementations + // so its use has since been deprecated in the Parquet specification. Moder + // implementations will set this to `0` to indicate that the `ColumnMetaData` is solely + // contained in the `ColumnChunk` struct. int64_t file_offset() const; // parameter is only used when a dataset is spread across multiple files