Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Parquet file with column chunk key-value metadata (#49)
* Add a Parquet file with column chunk key-value metadata This file has a single row group with 0 row and 1 column. The column chunk has key-value metadata, with a key "foo" mapped to a value "bar". Created with this code: ```c++ PARQUET_ASSIGN_OR_THROW( auto sink, arrow::io::FileOutputStream::Open( "column-chunk-key-value-metadata.parquet")); parquet::ParquetFileWriter::Open( sink, std::static_pointer_cast<parquet::schema::GroupNode>( parquet::schema::GroupNode::Make( "schema", parquet::Repetition::REQUIRED, {parquet::schema::PrimitiveNode::Make( "column1", parquet::Repetition::OPTIONAL, parquet::Type::INT32)}))) ->AppendRowGroup() ->NextColumn() ->key_value_metadata() .Append("foo", "bar"); ``` * Rename to match the prevalent style * Make it 2 columns * Update data/README.md * Add a KeyValue entry without Value * Update data/README.md Co-authored-by: mwish <maplewish117@gmail.com> * Update README.md * Update README.md --------- Co-authored-by: mwish <maplewish117@gmail.com>
- Loading branch information