Skip to content

Commit

Permalink
fix ParquetRewriter constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim_konstantinov committed Aug 7, 2024
1 parent d306336 commit ae9589d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,12 @@ public ParquetRewriter(
this.writer = writer;
this.outSchema = outSchema;
this.newCodecName = codecName;
originalCreatedBy = originalCreatedBy == null ? meta.getFileMetaData().getCreatedBy() : originalCreatedBy;
extraMetaData = meta.getFileMetaData().getKeyValueMetaData();
extraMetaData.put(ORIGINAL_CREATED_BY_KEY, originalCreatedBy);
extraMetaData = new HashMap<>(meta.getFileMetaData().getKeyValueMetaData());
extraMetaData.put(
ORIGINAL_CREATED_BY_KEY,
originalCreatedBy != null
? originalCreatedBy
: meta.getFileMetaData().getCreatedBy());
if (maskColumns != null && maskMode != null) {
this.maskColumns = new HashMap<>();
for (String col : maskColumns) {
Expand Down

0 comments on commit ae9589d

Please sign in to comment.