Skip to content

Commit 585ec90

Browse files
committed
fix ut failure
1 parent b912924 commit 585ec90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/iceberg/json_internal.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ nlohmann::json ToJson(const SchemaField& field) {
227227
json[kName] = field.name();
228228
json[kRequired] = !field.optional();
229229
json[kType] = ToJson(*field.type());
230-
json[kDoc] = field.doc();
230+
if (!field.doc().empty()) {
231+
json[kDoc] = field.doc();
232+
}
231233
return json;
232234
}
233235

0 commit comments

Comments
 (0)