Skip to content

Commit 056de8e

Browse files
committed
fix
1 parent eb0e134 commit 056de8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/iceberg/manifest_writer.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ Result<std::unique_ptr<ManifestWriter>> ManifestWriter::MakeV3Writer(
130130
std::string_view manifest_location, std::shared_ptr<FileIO> file_io,
131131
std::shared_ptr<PartitionSpec> partition_spec, std::shared_ptr<Schema> current_schema,
132132
ManifestContent content) {
133-
auto adapter = std::make_unique<ManifestEntryAdapterV3>(
134-
snapshot_id, first_row_id, std::move(partition_spec), current_schema, content);
135133
if (manifest_location.empty()) {
136134
return InvalidArgument("Manifest location cannot be empty");
137135
}
@@ -144,6 +142,9 @@ Result<std::unique_ptr<ManifestWriter>> ManifestWriter::MakeV3Writer(
144142
if (!current_schema) {
145143
return InvalidArgument("Current schema cannot be null");
146144
}
145+
auto adapter = std::make_unique<ManifestEntryAdapterV3>(
146+
snapshot_id, first_row_id, std::move(partition_spec), std::move(current_schema),
147+
content);
147148
ICEBERG_RETURN_UNEXPECTED(adapter->Init());
148149
ICEBERG_RETURN_UNEXPECTED(adapter->StartAppending());
149150

0 commit comments

Comments
 (0)