ryanrupp opened a new issue #182: Parquet writer doesn't consider configuration 
properties in some cases (rowGroupSize, pageSize, dictionarySize)
URL: https://github.com/apache/incubator-iceberg/issues/182
 
 
   I was writing a test case for 
https://github.com/apache/incubator-iceberg/issues/132 and noticed the code 
path 
[here](https://github.com/apache/incubator-iceberg/blob/master/parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java#L191)
 looks like it's expecting the values to be read via `Configuration` as 
bootstrapped from Iceberg to Parquet names 
[here](https://github.com/apache/incubator-iceberg/blob/master/parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java#L162)
 but digging into this it ends up instantiating a `ParquetWriter` that is 
expecting that `rowGroupSize` and `ParquetProperties` were configured 
explicitly instead of reading via key/values in the configuration. This made it 
so I couldn't generate a file via the iceberg `Parquet` API with multiple row 
groups.
   
   Also, I'm not sure the other branch 
[here](https://github.com/apache/incubator-iceberg/blob/master/parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java#L188)
 ends up respecting the other properties such as dictionary and page size (I 
couldn't find where they were configured at least) - `rowGroupSize` is set 
explicitly though in that case. In that code path Iceberg's own `ParquetWriter` 
is used which delegates to a Parquet's `ParquetFileWriter` but I don't see 
where page/dictionary size is configured in that case. In comparison the other 
code path has `InternalParquetRecordWriter` --> `ParquetFileWriter` where 
`InternalParquetRecordWriter` has a `ParquetProperties` which is used to 
instantiate the `ColumnWriteStore` which considers page size. The dictionary 
size used appears to just get the default value from the properties constructed 
[here](https://github.com/apache/incubator-iceberg/blob/master/parquet/src/main/java/org/apache/iceberg/parquet/ParquetWriter.java#L66).
 Also those properties are making the Parquet format version always hardcoded 
as V1, not sure if that is intended?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to