@@ -674,11 +674,11 @@ Result<std::vector<std::shared_ptr<FileScanTask>>> IncrementalAppendScan::PlanFi
674674 std::inserter (snapshot_ids, snapshot_ids.end ()),
675675 [](const auto & snapshot) { return snapshot->snapshot_id ; });
676676
677- std::vector <ManifestFile> data_manifests;
677+ std::unordered_set <ManifestFile> data_manifests;
678678 for (const auto & snapshot : append_snapshots) {
679679 SnapshotCache snapshot_cache (snapshot.get ());
680680 ICEBERG_ASSIGN_OR_RAISE (auto manifests, snapshot_cache.DataManifests (io_));
681- std::ranges::copy_if (manifests, std::back_inserter (data_manifests),
681+ std::ranges::copy_if (manifests, std::inserter (data_manifests, data_manifests. end () ),
682682 [&snapshot_ids](const ManifestFile& manifest) {
683683 return snapshot_ids.contains (manifest.added_snapshot_id );
684684 });
@@ -692,7 +692,9 @@ Result<std::vector<std::shared_ptr<FileScanTask>>> IncrementalAppendScan::PlanFi
692692
693693 ICEBERG_ASSIGN_OR_RAISE (
694694 auto manifest_group,
695- ManifestGroup::Make (io_, schema_, specs_by_id, std::move (data_manifests), {}));
695+ ManifestGroup::Make (
696+ io_, schema_, specs_by_id,
697+ std::vector<ManifestFile>(data_manifests.begin (), data_manifests.end ()), {}));
696698
697699 manifest_group->CaseSensitive (context_.case_sensitive )
698700 .Select (ScanColumns ())
0 commit comments