ClickHouse/src/Functions/formatReadableQuantity.cpp

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

28 lines
481 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/formatReadable.h>
#include <Common/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>>();
}
}