airborne12 commented on code in PR #70272:
URL: https://github.com/apache/doris/pull/70272#discussion_r4663973928
##########
be/src/storage/index/index_storage_format.h:
##########
@@ -20,6 +20,10 @@
#include "common/status.h"
#include "storage/index/index_common.h"
+namespace lucene::store {
+class IndexOutput;
Review Comment:
Fixed in 26be2710522: `index_storage_format.h` now includes `<cstdint>`,
`<memory>`, `<string>` and `<vector>` itself, for the `int64_t`, `uint8_t`,
`std::unique_ptr`, `std::string` and `std::vector` it declares.
A translation unit holding only `index_storage_format.h`,
`index_storage_format_v1.h` or `index_storage_format_v2.h` did still compile
here without unity batches or a PCH, but only by accident: `std::vector`
reached the header through `common/status.h` -> `fmt/format.h` -> `fmt/core.h`
-> `<functional>` -> `<vector>`, a detail of libstdc++ that other standard
libraries do not share. Before this PR it also came through CLucene, which the
change removes. With the includes, the same three translation units compile,
and `check-build-hygiene.sh` passes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]