Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/iceberg/table_scan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ Result<std::vector<std::shared_ptr<FileScanTask>>> DataTableScan::PlanFiles() co
ICEBERG_ASSIGN_OR_RAISE(auto manifest_files, manifest_list_reader->Files());

std::vector<std::shared_ptr<FileScanTask>> tasks;
ICEBERG_ASSIGN_OR_RAISE(auto partition_spec, context_.table_metadata->PartitionSpec());
auto partition_schema = partition_spec->schema();

for (const auto& manifest_file : manifest_files) {
ICEBERG_ASSIGN_OR_RAISE(
auto manifest_reader,
ManifestReader::MakeReader(manifest_file.manifest_path, file_io_,
/* TODO(xiao.dong) partition schema*/ nullptr));
ICEBERG_ASSIGN_OR_RAISE(auto manifest_reader,
ManifestReader::MakeReader(manifest_file.manifest_path,
file_io_, partition_schema));
ICEBERG_ASSIGN_OR_RAISE(auto manifests, manifest_reader->Entries());

// TODO(gty404): filter manifests using partition spec and filter expression
Expand Down
Loading