Skip to content

Conversation

@coolderli
Copy link
Contributor

@coolderli coolderli commented Jul 24, 2021

DeleteWrite should call setAll(properties) to set properties for Parquet and Avro.

@github-actions github-actions bot added the spark label Jul 24, 2021
case PARQUET:
return Parquet.writeDeletes(file.encryptingOutputFile())
.createWriterFunc(msgType -> SparkParquetWriters.buildWriter(lazyEqDeleteSparkType(), msgType))
.setAll(properties)
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

Copy link
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?

@rdblue
Copy link
Contributor

rdblue commented Sep 12, 2021

@coolderli, if you have a use case where you found this problem, could you add it to the description? In what cases is this needed?

@coolderli
Copy link
Contributor Author

@coolderli, if you have a use case where you found this problem, could you add it to the description? In what cases is this needed?

@rdblue I was trying to use this writer to implement merge-on-read mode on spark for merge into, update, and delete from.

@rdblue
Copy link
Contributor

rdblue commented Sep 13, 2021

@coolderli, what went wrong without this?

Also, you should definitely coordinate with @aokolnychyi on the Spark implementations. I believe that he has them fully working at this point.

@coolderli
Copy link
Contributor Author

@coolderli, what went wrong without this?

Also, you should definitely coordinate with @aokolnychyi on the Spark implementations. I believe that he has them fully working at this point.

Yes, I found @aokolnychyi has implemented new writes #2873, we can use the new writer.

@coolderli coolderli closed this Sep 14, 2021
@aokolnychyi
Copy link
Contributor

Would appreciate your review on the new writers, @coolderli!

@aokolnychyi
Copy link
Contributor

aokolnychyi commented Sep 14, 2021

I think we got this covered in the new WriterFactory implementations where we call setAll.
Is that why we closed this PR, @coolderli?

@coolderli
Copy link
Contributor Author

I think we got this covered in the new WriterFactory implementations where we call setAll.
Is that why we closed this PR, @coolderli?

Yes, I think the new WriterFactory has covered this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants