add support re-encryption in ColumnEncryptor#1015
Conversation
| import java.util.concurrent.ExecutorService; | ||
| import java.util.concurrent.Executors; | ||
| import java.util.concurrent.Future; | ||
| import java.util.stream.Collectors; |
| return keyBytes; | ||
| } | ||
|
|
||
| ColumnDecryptionProperties deepClone() { |
There was a problem hiding this comment.
It seems that the current file has only added a new method, but the formatter accidentally formatted the whole file. Can you please revert that?
| } | ||
|
|
||
|
|
||
| /** DecryptionProperties object can be used for reading one file only. |
| private final Short columnOrdinal; | ||
|
|
||
| public DecryptorRunTime(InternalFileDecryptor fileDecryptor, ColumnChunkMetaData chunk) throws IOException { | ||
| if (fileDecryptor == null) { |
There was a problem hiding this comment.
Should we throw if fileDecryptor is null? When will this branch be hit?
| this.conf = conf; | ||
| } | ||
|
|
||
| public static ParquetMetadata readFooter(String inputFile, ParquetMetadataConverter.MetadataFilter filter, |
|
|
||
| private void processBlocks(TransParquetFileReader reader, ParquetFileWriter writer, ParquetMetadata meta, | ||
| MessageType schema, List<String> encryptPaths) throws IOException { | ||
| MessageType schema, List<String> encryptPaths, Set<ColumnPath> alreadyEncrColumnPaths, |
There was a problem hiding this comment.
| MessageType schema, List<String> encryptPaths, Set<ColumnPath> alreadyEncrColumnPaths, | |
| MessageType schema, List<String> encryptPaths, Set<ColumnPath> encryptedPaths, |
|
BTW, I am working on #1014 to unify several rewriters and most logic of cc @shangxinli |
|
Yeah, @wgtmac is making the changes to consolidate the rewriters. This change can be on top of that. |
My PR has been merged. Feel free to rebase it and let me review once ready. @vectorijk |
|
This pull request has been automatically marked as stale because it has had no activity for at least 2 months. If you are still working on this change or plan to move it forward, please leave a comment or push a new commit so we know to keep it open. Otherwise, this PR will be closed automatically in about one month. Thank you for your contribution to Apache Parquet! |
Make sure you have checked all steps below.
Jira
Tests
Commits
Documentation