Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:(core): add content encoding to Opwrite #5390

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

Frank-III
Copy link
Contributor

Which issue does this PR close?

Closes #5378

I think we need to add content_encoding to the metadata to properly test it? https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#API_HeadObject_ResponseSyntax

Are there any user-facing changes?

Add op.write_with(path, content).content_encoding("encoding")

@Frank-III Frank-III requested a review from Xuanwo as a code owner December 4, 2024 22:05
@Frank-III Frank-III changed the title Opwrite content encoding feat:(core): add content encoding to Opwrite Dec 4, 2024
@Frank-III Frank-III force-pushed the opwrite-content-encoding branch 2 times, most recently from 81850af to 92d93a0 Compare December 5, 2024 01:21
@Xuanwo
Copy link
Member

Xuanwo commented Dec 5, 2024

I think we need to add content_encoding to the metadata to properly test it? docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#API_HeadObject_ResponseSyntax

Yes, please do this!

.content_encoding(target_content_encoding)
.await?;

// TODO: check the content encoding in the stat op response?
Copy link
Member

Choose a reason for hiding this comment

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

We can merge the PR which adds content-encoding in meta first.

@Frank-III Frank-III marked this pull request as draft December 5, 2024 17:28
@Frank-III Frank-III force-pushed the opwrite-content-encoding branch from 92d93a0 to a39a7f2 Compare December 9, 2024 15:22
@Frank-III Frank-III marked this pull request as ready for review December 9, 2024 19:02
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you, nice change!

@Xuanwo Xuanwo merged commit d48e06d into apache:main Dec 10, 2024
239 checks passed
@adayoung
Copy link

Thank you for the updates! 🥰

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

Successfully merging this pull request may close these issues.

new feature: Add content_encoding option to operator.writer_with
3 participants