We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af95973 commit fc2d776Copy full SHA for fc2d776
src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp
@@ -421,6 +421,9 @@ Poco::JSON::Object::Ptr getPartitionField(
421
422
Poco::JSON::Object::Ptr result = new Poco::JSON::Object;
423
result->set(Iceberg::f_name, field.value());
424
+
425
+ if (!column_name_to_source_id.contains(*field))
426
+ throw Exception(ErrorCodes::BAD_ARGUMENTS, "Unknown field to partition {}", *field);
427
result->set(Iceberg::f_source_id, column_name_to_source_id.at(*field));
428
result->set(Iceberg::f_field_id, ++partition_iter);
429
0 commit comments