You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ze...@apache.org on 2025/07/29 15:42:35 UTC
(iceberg-cpp) branch main updated: feat: pass partition schema to manifest reader (#157)
This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 82a488f feat: pass partition schema to manifest reader (#157)
82a488f is described below
commit 82a488f8db352e3ccf958ac63afe6d398ff2dd4b
Author: dongxiao <52...@qq.com>
AuthorDate: Tue Jul 29 23:42:30 2025 +0800
feat: pass partition schema to manifest reader (#157)
extract partition schema from table meta and pass it to manifest reader
Co-authored-by: xiao.dong <xi...@clickzetta.com>
---
src/iceberg/table_scan.cc | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/iceberg/table_scan.cc b/src/iceberg/table_scan.cc
index 8a37d36..43deb2a 100644
--- a/src/iceberg/table_scan.cc
+++ b/src/iceberg/table_scan.cc
@@ -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