From 4383ca431c561bf0386821b0ecdc2a116f406623 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 21 Feb 2024 17:50:06 +0800 Subject: [PATCH] query-request: add formatter for query-request.hh types before this change, we rely on the default-generated fmt::formatter created from operator<<, but fmt v10 dropped the default-generated formatter. in this change, we define formatters for following types * query::specific_ranges * query::partition_slice * query::read_command * query::forward_request * query::forward_request::reduction_type * query::forward_request::aggregation_info * query::forward_result::printer Refs #13245 Signed-off-by: Kefu Chai --- query-request.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/query-request.hh b/query-request.hh index bb4bc5fa30..e61442a5d2 100644 --- a/query-request.hh +++ b/query-request.hh @@ -11,6 +11,7 @@ #include #include +#include #include "db/functions/function_name.hh" #include "db/functions/function.hh" @@ -517,3 +518,12 @@ struct forward_result { std::ostream& operator<<(std::ostream& out, const query::forward_result::printer&); } + + +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {};