ClickHouse/src/Functions/formatReadableQuantity.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
446 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/formatReadable.h>
namespace DB
{
namespace
{
struct Impl
{
static constexpr auto name = "formatReadableQuantity";
static void format(double value, DB::WriteBuffer & out)
{
formatReadableQuantity(value, out);
}
};
}
REGISTER_FUNCTION(FormatReadableQuantity)
{
factory.registerFunction<FunctionFormatReadable<Impl>>();
}
}