Skip to content

Bump google-protobuf to v31.1#81976

Merged
thevar1able merged 5 commits intomasterfrom
bump-google-protobuf
Jun 25, 2025
Merged

Bump google-protobuf to v31.1#81976
thevar1able merged 5 commits intomasterfrom
bump-google-protobuf

Conversation

@thevar1able
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Use google-protobuf v31.1

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jun 17, 2025

Workflow [PR], commit [18b09eb]

Summary:

@clickhouse-gh clickhouse-gh bot added pr-improvement Pull request with some product improvements submodule changed At least one submodule changed in this PR. labels Jun 17, 2025
@thevar1able thevar1able force-pushed the bump-google-protobuf branch from 9ebca2a to 18b09eb Compare June 18, 2025 01:08
private:
// Overrides google::protobuf::compiler::MultiFileErrorCollector:
void AddError(const String & filename, int line, int column, const String & message) override
void RecordError(absl::string_view filename, int line, int column, absl::string_view message) override
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.

Google eating its own dogfood.


add_dependencies(_hdfs3 protoc)
target_compile_options(_hdfs3 PRIVATE
-include "${ClickHouse_SOURCE_DIR}/contrib/google-protobuf/src/google/protobuf/stubs/port.h"
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.

So this header-includes a file, right? Not very pretty to do this via CMake. What is the reason for that? Is it because 3rd-party deps can't include headers from other 3rd party deps? Maybe you can try with target_include_directories instead?

Copy link
Copy Markdown
Member Author

@thevar1able thevar1able Jun 19, 2025

Choose a reason for hiding this comment

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

The issue is that orc and hdfs used to include stubs/port.h from protobuf transitively (so they imported just the protobuf-related headers), but are also relying on google::protobuf::uint8 (or similar) types. After the update the stubs/port.h header containing those types does not come transitively anymore, so I had to force-include it with compiler flags.

target_include_directories(_orc SYSTEM BEFORE PUBLIC
${ORC_INCLUDE_DIR}
"${ClickHouse_SOURCE_DIR}/contrib/arrow-cmake/cpp/src/orc/c++/include")
target_compile_options(_orc PRIVATE
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.

See my comment below

@thevar1able thevar1able added this pull request to the merge queue Jun 25, 2025
Merged via the queue into master with commit 1a50930 Jun 25, 2025
349 of 360 checks passed
@thevar1able thevar1able deleted the bump-google-protobuf branch June 25, 2025 21:57
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 25, 2025
robot-ch-test-poll added a commit that referenced this pull request Jun 26, 2025
Cherry pick #81976 to 25.6: Bump `google-protobuf` to v31.1
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created-cloud deprecated label, NOOP label Jun 26, 2025
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jun 26, 2025
baibaichen pushed a commit to Kyligence/gluten that referenced this pull request Jun 27, 2025
baibaichen pushed a commit to Kyligence/gluten that referenced this pull request Jun 28, 2025
baibaichen pushed a commit to Kyligence/gluten that referenced this pull request Jun 29, 2025
baibaichen pushed a commit to apache/gluten that referenced this pull request Jun 29, 2025
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20250629)

* Fix Build due to ClickHouse/ClickHouse#80931

* Fix Build due to ClickHouse/ClickHouse#81976

* Fix Build due to  ClickHouse/ClickHouse#82508

* Try to Fix issue caused by ClickHouse/ClickHouse#81754

see ClickHouse/ClickHouse#82379

* Fix UT due to ClickHouse/ClickHouse#82358

---------

Co-authored-by: kyligence-git <[email protected]>
Co-authored-by: Chang chen <[email protected]>
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-improvement Pull request with some product improvements pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR. v25.6-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants