@@ -44,7 +44,7 @@ class MemoryPool;
4444Result<std::unique_ptr<IndexManifestFile>> IndexManifestFile::Create (
4545 const std::shared_ptr<FileSystem>& file_system, const std::shared_ptr<FileFormat>& file_format,
4646 const std::string& compression, const std::shared_ptr<FileStorePathFactory>& path_factory,
47- const std::shared_ptr<MemoryPool>& pool, const CoreOptions& options) {
47+ int32_t bucket_mode, const std::shared_ptr<MemoryPool>& pool, const CoreOptions& options) {
4848 std::shared_ptr<arrow::DataType> data_type =
4949 VersionedObjectSerializer<IndexManifestEntry>::VersionType (IndexManifestEntry::DataType ());
5050
@@ -69,19 +69,21 @@ IndexManifestFile::IndexManifestFile(const std::shared_ptr<FileSystem>& file_sys
6969 const std::shared_ptr<WriterBuilder>& writer_builder,
7070 const std::string& compression,
7171 const std::shared_ptr<PathFactory>& path_factory,
72- const std::shared_ptr<MemoryPool>& pool)
72+ int32_t bucket_mode, const std::shared_ptr<MemoryPool>& pool)
7373 : ObjectsFile<IndexManifestEntry>(file_system, reader_builder, writer_builder,
7474 std::make_unique<IndexManifestEntrySerializer>(pool),
75- compression, path_factory, pool) {}
75+ compression, path_factory, pool),
76+ bucket_mode_ (bucket_mode) {}
7677
7778Result<std::optional<std::string>> IndexManifestFile::WriteIndexFiles (
7879 const std::optional<std::string>& previous_index_manifest,
7980 const std::vector<IndexManifestEntry>& new_index_files) {
8081 if (new_index_files.empty ()) {
8182 return previous_index_manifest;
8283 }
83- PAIMON_ASSIGN_OR_RAISE (std::string file, IndexManifestFileHandler::Write (
84- previous_index_manifest, new_index_files, this ));
84+ PAIMON_ASSIGN_OR_RAISE (std::string file,
85+ IndexManifestFileHandler::Write (previous_index_manifest, new_index_files,
86+ bucket_mode_, this ));
8587 return std::optional<std::string>(file);
8688}
8789
0 commit comments