mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
b9233f6d4f
This should reduce amount of code that should be recompiled on Exception.h changes (and everything else that had been included there). This will actually not help a lot, because it is also included into PODArray.h and ThreadPool.h at least... Sigh. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
28 lines
481 B
C++
28 lines
481 B
C++
#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>>();
|
|
}
|
|
|
|
}
|