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 d645802 commit e2cf82fCopy full SHA for e2cf82f
src/iceberg/metrics_config.cc
@@ -36,8 +36,8 @@ Status MetricsConfig::VerifyReferencedColumns(
36
}
37
auto field_name =
38
std::string_view(key).substr(TableProperties::kMetricModeColumnConfPrefix.size());
39
- auto field = schema.FindFieldByName(field_name);
40
- if (!field.has_value() || !field.value().has_value()) {
+ ICEBERG_ASSIGN_OR_RAISE(auto field, schema.FindFieldByName(field_name));
+ if (!field.has_value()) {
41
return ValidationFailed(
42
"Invalid metrics config, could not find column {} from table prop {} in "
43
"schema {}",
0 commit comments