Skip to content

ORC-1711: [C++] Fix recordPosition with unexpected value - #2038

Closed
luffy-zh wants to merge 4 commits into
apache:mainfrom
luffy-zh:ORC-1711
Closed

luffy-zh wants to merge 4 commits into
apache:mainfrom
luffy-zh:ORC-1711

Conversation

@luffy-zh

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Make sure the recorded position in blockCompressStream is correct.

Why are the changes needed?

Fix the issue discussed here.

How was this patch tested?

UTs in testwriter.cc can cover this patch.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions Bot added the CPP label Sep 27, 2024
@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you for making a PR, @luffy-zh .

cc @wgtmac

Comment thread c++/src/io/OutputStream.hh Outdated
return false;
}

virtual bool isBlockCompressed() const {

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.

I would be against adding this to the BufferedOutputStream. We already have isCompressed() above, we can use static_cast to get a CompressionStream and call this from there. WDYT?

Comment thread c++/src/io/OutputStream.hh Resolved

@ffacs ffacs left a comment

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.

Nit: keep the comments. LGTM. Thank you @luffy-zh

@wgtmac wgtmac left a comment

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.

+1

Thanks @luffy-zh and @ffacs!

@wgtmac wgtmac closed this in dcda37e Oct 11, 2024
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