Skip to content

ORC-1974: [C++] Use google::protobuf::TextFormat instead of DebugString for Protobuf v30+ - #2358

Closed
dongjoon-hyun wants to merge 1 commit into
apache:mainfrom
dongjoon-hyun:ORC-1974
Closed

dongjoon-hyun wants to merge 1 commit into
apache:mainfrom
dongjoon-hyun:ORC-1974

Conversation

@dongjoon-hyun

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

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

cc @wgtmac and @williamhyun

@dongjoon-hyun

Copy link
Copy Markdown
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 <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit ddc0258)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@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 <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit ddc0258)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 33dab29)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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