Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Sep 12, 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.

Currently, branch-2.1 CI is broken on MacOS due to this.

How was this patch tested?

Pass the CIs.

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

No.

…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]>
@github-actions github-actions bot added the CPP label Sep 12, 2025
@dongjoon-hyun dongjoon-hyun added this to the 2.1.4 milestone Sep 12, 2025
dongjoon-hyun added a commit 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`.

Currently, `branch-2.1` CI is broken on `MacOS` due to this.
- https://github.com/apache/orc/tree/branch-2.1
  - https://github.com/apache/orc/actions/runs/17683046777/job/50261415209

### How was this patch tested?

Pass the CIs.

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

No.

Closes #2387 from dongjoon-hyun/ORC-1974-2.1.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member Author

Merged to branch-2.1.

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`.

Currently, `branch-2.1` CI is broken on `MacOS` due to this.
- https://github.com/apache/orc/tree/branch-2.1
  - https://github.com/apache/orc/actions/runs/17683046777/job/50261415209

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#2387 from dongjoon-hyun/ORC-1974-2.1.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member Author

For the record, branch-2.1 CI is recovered after this commit.

Screenshot 2025-09-12 at 12 38 21

@dongjoon-hyun dongjoon-hyun deleted the ORC-1974-2.1 branch September 12, 2025 19:38
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