conradludgate opened a new issue, #5253:
URL: https://github.com/apache/arrow-rs/issues/5253

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   I want to access the `FileMetadata` from a closed parquet file so that I can 
add some logging, but I also need to access the inner writer for further 
processing.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   `SerializedFileWriter` offers
   * `into_inner() -> Result<W>`
   * `close() -> Result<FileMetadata>`.
   
   The bodies of both functions are almost identical. Perhaps close can return 
`Result<(FileMetadata, W)>`.
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   For now, I will use `into_inner()` and then open the file with 
`SerializedFileReader` to get the metadata.
   
   **Additional context**
   
   1. `close()` does not flush the file, which will ignore errors.
   2. I would like async support, but I don't want to go through arrow. For now 
I am writing to an in memory buffer and then flushing the buffer over the 
network after I close the file.


-- 
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]

Reply via email to