ggershinsky commented on a change in pull request #808: URL: https://github.com/apache/parquet-mr/pull/808#discussion_r509206279
########## File path: parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetWriter.java ########## @@ -279,6 +279,11 @@ public ParquetWriter(Path file, Configuration conf, WriteSupport<T> writeSupport WriteSupport.WriteContext writeContext = writeSupport.init(conf); MessageType schema = writeContext.getSchema(); + // encryptionProperties could be built from the implementation of EncryptionPropertiesFactory when it is attached. + if (encryptionProperties == null) { + encryptionProperties = ParquetOutputFormat.createEncryptionProperties(conf, new Path(file.toString()), writeContext); Review comment: eg upcasting to `HadoopOutputFile`. Or even better, adding `Path getPath()` method to the `OutputFile` - this should be general enough. ---------------------------------------------------------------- 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: us...@infra.apache.org