fix style

This commit is contained in:
zxc111 2021-07-04 23:55:22 +08:00
parent a51067e7ff
commit faac204a1f
2 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,10 @@
namespace DB
{
namespace ErrorCodes
{
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
}
/** Calculates the length of a string in bytes.
*/
@ -36,7 +39,7 @@ struct LengthImpl
res[i] = offsets[i] - offsets[i - 1];
}
[[noreturn]] static void uuid(const ColumnUUID ::Container & , size_t &, PaddedPODArray<UInt64> & )
[[noreturn]] static void uuid(const ColumnUUID::Container &, size_t &, PaddedPODArray<UInt64> &)
{
throw Exception("Cannot apply function length to UUID argument", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
}

View File

@ -54,7 +54,7 @@ struct LengthUTF8Impl
throw Exception("Cannot apply function lengthUTF8 to Array argument", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
}
[[noreturn]] static void uuid(const ColumnUUID ::Container &, size_t &, PaddedPODArray<UInt64> &)
[[noreturn]] static void uuid(const ColumnUUID::Container &, size_t &, PaddedPODArray<UInt64> &)
{
throw Exception("Cannot apply function lengthUTF8 to UUID argument", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
}