@@ -76,16 +76,21 @@ Result<std::unique_ptr<BatchReader>> RawFileSplitRead::CreateReader(
7676 dv_factory, data_file_path_factory);
7777}
7878
79+ Result<std::unique_ptr<BatchReader>> RawFileSplitRead::CreateReader (
80+ const BinaryRow& partition, int32_t bucket,
81+ const std::vector<std::shared_ptr<DataFileMeta>>& data_files,
82+ DeletionVector::Factory dv_factory) {
83+ PAIMON_ASSIGN_OR_RAISE (std::shared_ptr<DataFilePathFactory> data_file_path_factory,
84+ path_factory_->CreateDataFilePathFactory (partition, bucket));
85+ return CreateReader (partition, bucket, data_files, dv_factory, data_file_path_factory);
86+ }
87+
7988Result<std::unique_ptr<BatchReader>> RawFileSplitRead::CreateReader (
8089 const BinaryRow& partition, int32_t bucket,
8190 const std::vector<std::shared_ptr<DataFileMeta>>& data_files,
8291 DeletionVector::Factory dv_factory,
8392 std::shared_ptr<DataFilePathFactory> data_file_path_factory) {
8493 const auto & predicate = context_->GetPredicate ();
85- if (!data_file_path_factory) {
86- PAIMON_ASSIGN_OR_RAISE (data_file_path_factory,
87- path_factory_->CreateDataFilePathFactory (partition, bucket));
88- }
8994
9095 PAIMON_ASSIGN_OR_RAISE (
9196 std::vector<std::unique_ptr<FileBatchReader>> raw_file_readers,
0 commit comments