shangxinli commented on a change in pull request #808: URL: https://github.com/apache/parquet-mr/pull/808#discussion_r510278202
########## 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: Good point. I like the idea of adding "Path getPath()" better. Since this feature is going to be in a major release. I think adding a new method to the interface could be fine. ---------------------------------------------------------------- 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