Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Aug 15, 2025

What changes were proposed in this pull request?

This PR aims to use google::protobuf::TextFormat instead of DebugString for Protobuf v30+.

Why are the changes needed?

Otherwise, our C++ orc-metadata tool will have a regression to expose the debug marker string, goo.gle/debugstr.

There was a related report here.

How was this patch tested?

Pass the CIs.

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

No.

@github-actions github-actions bot added the CPP label Aug 15, 2025
@dongjoon-hyun dongjoon-hyun changed the title ORC-1974: [C++] Use google::protobuf::TextFormat instead of DebugString for Protobuf v30+ ORC-1974: [C++] Use google::protobuf::TextFormat instead of DebugString for Protobuf v30+ Aug 15, 2025
@dongjoon-hyun dongjoon-hyun added this to the 2.2.1 milestone Aug 15, 2025
@dongjoon-hyun
Copy link
Member Author

cc @wgtmac and @williamhyun

@dongjoon-hyun
Copy link
Member Author

All tests passed. Now, CIs are recovered fully.

dongjoon-hyun added a commit that referenced this pull request Aug 15, 2025
…tring` for `Protobuf` v30+

### What changes were proposed in this pull request?

This PR aims to use `google::protobuf::TextFormat` instead of `DebugString` for Protobuf v30+.

- https://github.com/protocolbuffers/protobuf/releases/tag/v30.0

    > Make DebugString print debug output, enable debug markers for debug output

### Why are the changes needed?

Otherwise, our C++ `orc-metadata` tool will have a regression to expose the debug marker string, `goo.gle/debugstr`.

There was a related report here.
- #2239

### How was this patch tested?

Pass the CIs.

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

No.

Closes #2358 from dongjoon-hyun/ORC-1974.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit ddc0258)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun dongjoon-hyun deleted the ORC-1974 branch August 15, 2025 20:52
dongjoon-hyun added a commit to dongjoon-hyun/orc that referenced this pull request Sep 12, 2025
…tring` for `Protobuf` v30+

### What changes were proposed in this pull request?

This PR aims to use `google::protobuf::TextFormat` instead of `DebugString` for Protobuf v30+.

- https://github.com/protocolbuffers/protobuf/releases/tag/v30.0

    > Make DebugString print debug output, enable debug markers for debug output

### Why are the changes needed?

Otherwise, our C++ `orc-metadata` tool will have a regression to expose the debug marker string, `goo.gle/debugstr`.

There was a related report here.
- apache#2239

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#2358 from dongjoon-hyun/ORC-1974.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit ddc0258)
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 33dab29)
Signed-off-by: Dongjoon Hyun <[email protected]>
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.

1 participant