Joe McDonnell has uploaded this change for review. ( https://gerrit.cloudera.org/25441
Change subject: IMPALA-15802: Trim thrift includes from util/error-util.h ...................................................................... IMPALA-15802: Trim thrift includes from util/error-util.h error-util.h is included in about 670 translation units (often via status.h). When it pulls in four large Thrift headers (CatalogObjects, ErrorCodes_constants, ImpalaInternalService, TCLIService), this adds about 10% to the total preprocessed size across the whole build. This removes those headers from error-util.h and fixes up the other code: 1. Add the generated headers directly to the 28 files that relies on them transitively. 2. Move the single-use HS2TStatusCodeToTErrorCode() into status-serialization.cc to avoid the dependency on the Hive Thrift status. 3. Removing the headers from error-util.h changed the order that headers get included in minidump.cc. This exposed a conflict between the MAP_TYPE macro defined transitively by the Breakpad headers and TCLIService_types.h. This moves the Breakpad headers down later to avoid the conflict. Testing: - Ran local builds - AI analysis says this reduces the total preprocessed code size by 10.6% Change-Id: I82ed5e5273a85e93539eec21fe74a693e63b437a Assisted-by: Claude Sonnet 5.5 (Claude Code) --- M be/src/common/status-serialization.cc M be/src/exec/aggregation-node-base.cc M be/src/exec/aggregator.h M be/src/exec/grouping-aggregator.h M be/src/exec/non-grouping-aggregator.h M be/src/exec/orc/orc-metadata-utils.cc M be/src/exec/orc/orc-metadata-utils.h M be/src/exec/parquet/parquet-metadata-utils.h M be/src/exprs/cast-format-expr.h M be/src/exprs/kudu-partition-expr.h M be/src/runtime/coordinator-backend-state.h M be/src/runtime/reservation-manager.h M be/src/runtime/types.cc M be/src/scheduling/admission-controller-test.cc M be/src/scheduling/request-pool-service.h M be/src/scheduling/schedule-state.cc M be/src/scheduling/schedule-state.h M be/src/service/control-service.h M be/src/service/query-options.h M be/src/service/query-state-record.h M be/src/util/error-msg.cc M be/src/util/error-util.cc M be/src/util/error-util.h M be/src/util/minidump.cc M be/src/util/tuple-row-compare.h M be/src/util/webserver.cc M be/src/util/webserver.h M be/src/workload_mgmt/workload-management.cc 28 files changed, 61 insertions(+), 28 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/25441/1 -- To view, visit https://gerrit.cloudera.org/25441 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I82ed5e5273a85e93539eec21fe74a693e63b437a Gerrit-Change-Number: 25441 Gerrit-PatchSet: 1 Gerrit-Owner: Joe McDonnell <[email protected]>
