diff --git a/src/iceberg/partition_spec.cc b/src/iceberg/partition_spec.cc index 3bfd0ffbb..b3caecf63 100644 --- a/src/iceberg/partition_spec.cc +++ b/src/iceberg/partition_spec.cc @@ -89,8 +89,7 @@ Result> PartitionSpec::PartitionType( // Create the partition field with the transform result type // Partition fields are always optional (can be null) - partition_fields.emplace_back(partition_field.field_id(), - std::string(partition_field.name()), + partition_fields.emplace_back(partition_field.field_id(), partition_field.name(), std::move(result_type), /*optional=*/true); }