2424#include " iceberg/manifest_reader_internal.h"
2525#include " iceberg/schema.h"
2626#include " iceberg/schema_internal.h"
27+ #include " iceberg/type.h"
2728#include " iceberg/util/macros.h"
2829
2930namespace iceberg {
3031
3132Result<std::unique_ptr<ManifestReader>> ManifestReader::Make (
3233 const ManifestFile& manifest, std::shared_ptr<FileIO> file_io,
33- std::shared_ptr<Schema> partition_schema) {
34- auto manifest_entry_schema = ManifestEntry::TypeFromPartitionType (partition_schema);
34+ std::shared_ptr<StructType> partition_schema) {
35+ auto manifest_entry_schema =
36+ ManifestEntry::TypeFromPartitionType (std::move (partition_schema));
3537 std::shared_ptr<Schema> schema =
3638 FromStructType (std::move (*manifest_entry_schema), std::nullopt );
3739
@@ -51,8 +53,9 @@ Result<std::unique_ptr<ManifestReader>> ManifestReader::Make(
5153
5254Result<std::unique_ptr<ManifestReader>> ManifestReader::Make (
5355 std::string_view manifest_location, std::shared_ptr<FileIO> file_io,
54- std::shared_ptr<Schema> partition_schema) {
55- auto manifest_entry_schema = ManifestEntry::TypeFromPartitionType (partition_schema);
56+ std::shared_ptr<StructType> partition_schema) {
57+ auto manifest_entry_schema =
58+ ManifestEntry::TypeFromPartitionType (std::move (partition_schema));
5659 auto fields_span = manifest_entry_schema->fields ();
5760 std::vector<SchemaField> fields (fields_span.begin (), fields_span.end ());
5861 auto schema = std::make_shared<Schema>(fields);
0 commit comments