jerolba opened a new pull request, #3301:
URL: https://github.com/apache/parquet-java/pull/3301

   ### Rationale for this change
   
   Support the creation of multiple `ParquetWriter` and `ParquetReader` 
instances with different files, which part from a single builder.
   
   More explanations in the issue GH-3300
   
   ### What changes are included in this PR?
   
   - Create no-argument builder() static methods for the `ParquetWriter` and 
`ParquetReader` builders
   - Make `file` non final to support late configuration
   - Add `withFile` methods to configure the Output/InputFile to use after 
calling build. The code validates that there is no `path` already configured
   - Add validations in `build` methods to guarantee the consistency of 
configured file.
   
   ### Are these changes tested?
   
   `TestParquetReader` and `TestParquetWriter` classes are updated to include 
tests that verify all cases:
   - Null configuration
   - No configuration of file calling to build method
   - Duplicate configuration via `path` and `file` options
   - A file can be read or written
   
   ### Are there any user-facing changes?
   
   No
   
   Closes #3300
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to