Skip to content

Commit

Permalink
Merge pull request #24463 from oleiman/dlib/noticket/fix-json-writer-…
Browse files Browse the repository at this point in the history
…decimal

iceberg: fix decimal type json writer
  • Loading branch information
oleiman authored Dec 6, 2024
2 parents da8c448 + f3f28f5 commit ca91536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/iceberg/datatypes_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class rjson_visitor {
void operator()(const iceberg::float_type&) { w.String("float"); }
void operator()(const iceberg::double_type&) { w.String("double"); }
void operator()(const iceberg::decimal_type& t) {
w.String("decimal({}, {})", t.precision, t.scale);
w.String(fmt::format("decimal({}, {})", t.precision, t.scale));
}
void operator()(const iceberg::date_type&) { w.String("date"); }
void operator()(const iceberg::time_type&) { w.String("time"); }
Expand Down

0 comments on commit ca91536

Please sign in to comment.