We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1602f commit a0819b3Copy full SHA for a0819b3
1 file changed
src/iceberg/catalog/rest/validator.cc
@@ -24,6 +24,7 @@
24
25
#include "iceberg/catalog/rest/types.h"
26
#include "iceberg/result.h"
27
+#include "iceberg/util/formatter_internal.h"
28
#include "iceberg/util/macros.h"
29
30
namespace iceberg::rest {
@@ -91,16 +92,9 @@ Status Validator::Validate(const UpdateNamespacePropertiesRequest& request) {
91
92
std::back_inserter(common));
93
94
if (!common.empty()) {
- std::string keys;
95
- for (size_t i = 0; i < common.size(); ++i) {
96
- if (i) keys += ", ";
97
- keys += common[i];
98
- }
99
-
100
return Invalid(
101
- "Invalid namespace update: cannot simultaneously set and remove keys: "
102
- "[{}]",
103
- keys);
+ "Invalid namespace update: cannot simultaneously set and remove keys: {}",
+ common);
104
}
105
return {};
106
0 commit comments