wgtmac commented on code in PR #41633:
URL: https://github.com/apache/arrow/pull/41633#discussion_r1615387576
##########
cpp/src/parquet/arrow/writer.h:
##########
@@ -143,6 +143,16 @@ class PARQUET_EXPORT FileWriter {
virtual ~FileWriter();
virtual MemoryPool* memory_pool() const = 0;
+ /// \brief Add key-value metadata to the file.
+ /// \param[in] key_value_metadata the metadata to add.
+ /// \note This will overwrite any existing metadata with the same key.
+ /// \return Error if Close() has been called.
+ ///
+ /// WARNING: If `store_schema` is enabled, `ARROW:schema` would be stored
+ /// in the key-value metadata. Overwriting this key would result in
+ /// `store_schema` unusable during read.
Review Comment:
```suggestion
/// undefined behavior of `ARROW:schema` during read.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]