Skip to content

Commit 786cad5

Browse files
committed
revert
Signed-off-by: Smith Cruise <[email protected]>
1 parent d1712a3 commit 786cad5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/iceberg/json_internal.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,9 @@ Status ParsePartitionSpecs(const nlohmann::json& json, int8_t format_version,
10531053
int32_t next_partition_field_id = PartitionSpec::kLegacyPartitionDataIdStart;
10541054
std::vector<PartitionField> fields;
10551055
for (const auto& entry_json : partition_spec_json) {
1056-
ICEBERG_ASSIGN_OR_RAISE(auto field, PartitionFieldFromJson(entry_json, true));
1056+
ICEBERG_ASSIGN_OR_RAISE(
1057+
auto field, PartitionFieldFromJson(
1058+
entry_json, /*allow_field_id_missing=*/format_version == 1));
10571059
int32_t field_id = field->field_id();
10581060
if (field_id == SchemaField::kInvalidFieldId) {
10591061
// If the field ID is not set, we need to assign a new one

0 commit comments

Comments
 (0)