Repository navigation
GH-35538: [C++] Remove unnecessary status.h include from protobuf - #35673
Conversation
Newer versions of protobuf use absl::Status instead of google::protobuf::util::Status. The `status` instances in this file are type-annotated by `auto` and we can count on the header that declares the status-returning function we are calling to have included the header that defines `Status` for us.
|
|
|
@github-actions crossbow submit -g cpp |
|
Revision: 3d7aad9 Submitted crossbow builds: ursacomputing/crossbow @ actions-e7fbd041c5 |
westonpace
left a comment
There was a problem hiding this comment.
The commit that introduced this include did so via IWYU. My guess is IWYU maybe got confused between arrow::Status and protobuf Status.
It's technically correct because the code is doing |
|
Benchmark runs are scheduled for baseline = 3fd8b88 and contender = b80c655. b80c655 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
|
['Python', 'R'] benchmarks have high level of regressions. |
…5673) ### Rationale for this change Newer versions of protobuf use `absl::Status` instead of `google::protobuf::util::Status`. The status variables in this file are type-annotated with `auto` and we can count on the header that declares the status-returning function we are calling to have included the header that defines `Status`. ### What changes are included in this PR? Removing an include of a protobuf header that don't exist in later versions of the library. ### Are these changes tested? I haven't tried building with protobuf 23, but I can be sure this specifically fixes the problem reported in #35538. Authored-by: Felipe Oliveira Carvalho <[email protected]> Signed-off-by: Weston Pace <[email protected]>
Rationale for this change
Newer versions of protobuf use
absl::Statusinstead ofgoogle::protobuf::util::Status. The status variables in this file are type-annotated withautoand we can count on the header that declares the status-returning function we are calling to have included the header that definesStatus.What changes are included in this PR?
Removing an include of a protobuf header that don't exist in later versions of the library.
Are these changes tested?
I haven't tried building with protobuf 23, but I can be sure this specifically fixes the problem reported in #35538.