mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: Server: cleanup [#METR-19266]
This commit is contained in:
parent
a4f2f74b8e
commit
abe75277a3
@ -2093,18 +2093,18 @@ private:
|
||||
/// Actions to be taken when performing a conversion.
|
||||
struct Action
|
||||
{
|
||||
/// If neither the input type nor the input type is nullable or null,
|
||||
/// If neither the input type nor the output type is nullable or null,
|
||||
/// we perform the conversion without any pre and/or processing.
|
||||
static constexpr auto NONE = UINT64_C(0);
|
||||
static constexpr auto NONE = UInt64(0);
|
||||
/// The input has a nullable type. We must extract its nested type
|
||||
/// before performing any conversion.
|
||||
static constexpr auto UNWRAP_NULLABLE_INPUT = UINT64_C(1) << 0;
|
||||
static constexpr auto UNWRAP_NULLABLE_INPUT = UInt64(1) << 0;
|
||||
/// The output has a nullable type. We must wrap the result from the
|
||||
/// conversion into a ColumnNullable.
|
||||
static constexpr auto WRAP_RESULT_INTO_NULLABLE = UINT64_C(1) << 1;
|
||||
static constexpr auto WRAP_RESULT_INTO_NULLABLE = UInt64(1) << 1;
|
||||
/// The input is the NULL value. Before performing any conversion,
|
||||
/// we will turn it into a single UInt8 zero value.
|
||||
static constexpr auto CONVERT_NULL = UINT64_C(1) << 2;
|
||||
static constexpr auto CONVERT_NULL = UInt64(1) << 2;
|
||||
};
|
||||
|
||||
WrapperType prepare(const DataTypePtr & from_type, const IDataType * const to_type, const uint64_t action)
|
||||
|
Loading…
Reference in New Issue
Block a user