Skip to content

Commit d1712a3

Browse files
committed
fix bug
Signed-off-by: Smith Cruise <[email protected]>
1 parent ed49d1e commit d1712a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iceberg/json_internal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ 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));
1056+
ICEBERG_ASSIGN_OR_RAISE(auto field, PartitionFieldFromJson(entry_json, true));
10571057
int32_t field_id = field->field_id();
10581058
if (field_id == SchemaField::kInvalidFieldId) {
10591059
// If the field ID is not set, we need to assign a new one

0 commit comments

Comments
 (0)