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 <kefu.chai@scylladb.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <fmt/ostream.h>
|
||||
|
||||
#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<query::specific_ranges> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::partition_slice> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::read_command> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::forward_request> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::forward_request::reduction_type> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::forward_request::aggregation_info> : fmt::ostream_formatter {};
|
||||
template <> struct fmt::formatter<query::forward_result::printer> : fmt::ostream_formatter {};
|
||||
|
||||
Reference in New Issue
Block a user