Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public EqualityDeleteWriter<InternalRow> newEqDeleteWriter(EncryptedOutputFile f
case PARQUET:
return Parquet.writeDeletes(file.encryptingOutputFile())
.createWriterFunc(msgType -> SparkParquetWriters.buildWriter(lazyEqDeleteSparkType(), msgType))
.setAll(properties)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, @coolderli ! I also think the newPosDeleteWriter need the properties setting ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coolderli, could you add this update?

.overwrite()
.rowSchema(eqDeleteRowSchema)
.withSpec(spec)
Expand All @@ -216,6 +217,7 @@ public EqualityDeleteWriter<InternalRow> newEqDeleteWriter(EncryptedOutputFile f
case AVRO:
return Avro.writeDeletes(file.encryptingOutputFile())
.createWriterFunc(ignored -> new SparkAvroWriter(lazyEqDeleteSparkType()))
.setAll(properties)
.overwrite()
.rowSchema(eqDeleteRowSchema)
.withSpec(spec)
Expand Down Expand Up @@ -243,6 +245,7 @@ public PositionDeleteWriter<InternalRow> newPosDeleteWriter(EncryptedOutputFile
SparkSchemaUtil.convert(DeleteSchemaUtil.posDeleteSchema(posDeleteRowSchema));
return Parquet.writeDeletes(file.encryptingOutputFile())
.createWriterFunc(msgType -> SparkParquetWriters.buildWriter(sparkPosDeleteSchema, msgType))
.setAll(properties)
.overwrite()
.rowSchema(posDeleteRowSchema)
.withSpec(spec)
Expand All @@ -254,6 +257,7 @@ public PositionDeleteWriter<InternalRow> newPosDeleteWriter(EncryptedOutputFile
case AVRO:
return Avro.writeDeletes(file.encryptingOutputFile())
.createWriterFunc(ignored -> new SparkAvroWriter(lazyPosDeleteSparkType()))
.setAll(properties)
.overwrite()
.rowSchema(posDeleteRowSchema)
.withSpec(spec)
Expand Down