This is an automated email from the ASF dual-hosted git repository.
gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new ff7f5b8a fix: add missing direct include of <vector> in file_writer.h
(#584)
ff7f5b8a is described below
commit ff7f5b8a1a3b7ef57fafdee5e340af858996afa4
Author: Xinli Shang <[email protected]>
AuthorDate: Thu Mar 5 07:38:41 2026 -0800
fix: add missing direct include of <vector> in file_writer.h (#584)
## Summary
- `file_writer.h` uses `std::vector<int64_t>` as the return type of
`Writer::split_offsets()` but does not directly include `<vector>`,
relying on a transitive include
- Add the missing `<vector>` include to follow the include-what-you-use
principle
Co-authored-by: shangxinli <[email protected]>
---
src/iceberg/file_writer.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/iceberg/file_writer.h b/src/iceberg/file_writer.h
index 8913bed1..0b1af7f9 100644
--- a/src/iceberg/file_writer.h
+++ b/src/iceberg/file_writer.h
@@ -25,6 +25,7 @@
#include <functional>
#include <memory>
#include <optional>
+#include <vector>
#include "iceberg/arrow_c_data.h"
#include "iceberg/file_format.h"