@@ -112,6 +112,8 @@ struct ExportReplicatedMergeTreePartitionManifest
112112 size_t max_threads;
113113 bool parallel_formatting;
114114 bool parquet_parallel_encoding;
115+ size_t max_bytes_per_file;
116+ size_t max_rows_per_file;
115117 MergeTreePartExportManifest::FileAlreadyExistsPolicy file_already_exists_policy;
116118
117119 std::string toJsonString () const
@@ -131,6 +133,8 @@ struct ExportReplicatedMergeTreePartitionManifest
131133 json.set (" parallel_formatting" , parallel_formatting);
132134 json.set (" max_threads" , max_threads);
133135 json.set (" parquet_parallel_encoding" , parquet_parallel_encoding);
136+ json.set (" max_bytes_per_file" , max_bytes_per_file);
137+ json.set (" max_rows_per_file" , max_rows_per_file);
134138 json.set (" file_already_exists_policy" , String (magic_enum::enum_name (file_already_exists_policy)));
135139 json.set (" create_time" , create_time);
136140 json.set (" max_retries" , max_retries);
@@ -164,7 +168,8 @@ struct ExportReplicatedMergeTreePartitionManifest
164168 manifest.max_threads = json->getValue <size_t >(" max_threads" );
165169 manifest.parallel_formatting = json->getValue <bool >(" parallel_formatting" );
166170 manifest.parquet_parallel_encoding = json->getValue <bool >(" parquet_parallel_encoding" );
167-
171+ manifest.max_bytes_per_file = json->getValue <size_t >(" max_bytes_per_file" );
172+ manifest.max_rows_per_file = json->getValue <size_t >(" max_rows_per_file" );
168173 if (json->has (" file_already_exists_policy" ))
169174 {
170175 const auto file_already_exists_policy = magic_enum::enum_cast<MergeTreePartExportManifest::FileAlreadyExistsPolicy>(json->getValue <String>(" file_already_exists_policy" ));
0 commit comments