Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
8b4e5846
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8b4e5846
编写于
10月 12, 2018
作者:
A
alexey-milovidov
提交者:
GitHub
10月 12, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3366 from 4ertus2/decimal
Conditional for UUID [CLICKHOUSE-4016]
上级
b1ceb4bf
688b5aa8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
542 addition
and
4 deletion
+542
-4
dbms/src/DataTypes/NumberTraits.h
dbms/src/DataTypes/NumberTraits.h
+7
-2
dbms/src/Functions/FunctionsConditional.h
dbms/src/Functions/FunctionsConditional.h
+8
-2
dbms/tests/queries/0_stateless/00735_conditional.reference
dbms/tests/queries/0_stateless/00735_conditional.reference
+148
-0
dbms/tests/queries/0_stateless/00735_conditional.sql
dbms/tests/queries/0_stateless/00735_conditional.sql
+379
-0
未找到文件。
dbms/src/DataTypes/NumberTraits.h
浏览文件 @
8b4e5846
#pragma once
#pragma once
#include <Core/Types.h>
#include <type_traits>
#include <type_traits>
#include <Core/Types.h>
#include <Common/UInt128.h>
namespace
DB
namespace
DB
{
{
...
@@ -146,6 +148,7 @@ template <typename A> struct ResultOfBitNot
...
@@ -146,6 +148,7 @@ template <typename A> struct ResultOfBitNot
* UInt<x>, Int<y> -> Int<max(x*2, y)>
* UInt<x>, Int<y> -> Int<max(x*2, y)>
* Float<x>, [U]Int<y> -> Float<max(x, y*2)>
* Float<x>, [U]Int<y> -> Float<max(x, y*2)>
* Decimal<x>, Decimal<y> -> Decimal<max(x,y)>
* Decimal<x>, Decimal<y> -> Decimal<max(x,y)>
* UUID, UUID -> UUID
* UInt64 , Int<x> -> Error
* UInt64 , Int<x> -> Error
* Float<x>, [U]Int64 -> Error
* Float<x>, [U]Int64 -> Error
*/
*/
...
@@ -168,7 +171,9 @@ struct ResultOfIf
...
@@ -168,7 +171,9 @@ struct ResultOfIf
?
max
(
sizeof
(
A
),
sizeof
(
B
))
*
2
?
max
(
sizeof
(
A
),
sizeof
(
B
))
*
2
:
max
(
sizeof
(
A
),
sizeof
(
B
))
>::
Type
;
:
max
(
sizeof
(
A
),
sizeof
(
B
))
>::
Type
;
using
Type
=
std
::
conditional_t
<!
IsDecimalNumber
<
A
>
&&
!
IsDecimalNumber
<
B
>
,
ConstructedType
,
using
ConstructedWithUUID
=
std
::
conditional_t
<
std
::
is_same_v
<
A
,
UInt128
>
&&
std
::
is_same_v
<
B
,
UInt128
>
,
A
,
ConstructedType
>
;
using
Type
=
std
::
conditional_t
<!
IsDecimalNumber
<
A
>
&&
!
IsDecimalNumber
<
B
>
,
ConstructedWithUUID
,
std
::
conditional_t
<
IsDecimalNumber
<
A
>
&&
IsDecimalNumber
<
B
>
,
std
::
conditional_t
<
(
sizeof
(
A
)
>
sizeof
(
B
)),
A
,
B
>
,
Error
>>
;
std
::
conditional_t
<
IsDecimalNumber
<
A
>
&&
IsDecimalNumber
<
B
>
,
std
::
conditional_t
<
(
sizeof
(
A
)
>
sizeof
(
B
)),
A
,
B
>
,
Error
>>
;
};
};
...
...
dbms/src/Functions/FunctionsConditional.h
浏览文件 @
8b4e5846
...
@@ -230,6 +230,11 @@ public:
...
@@ -230,6 +230,11 @@ public:
static
FunctionPtr
create
(
const
Context
&
)
{
return
std
::
make_shared
<
FunctionIf
>
();
}
static
FunctionPtr
create
(
const
Context
&
)
{
return
std
::
make_shared
<
FunctionIf
>
();
}
private:
private:
template
<
typename
T0
,
typename
T1
>
static
constexpr
bool
allow_arrays
=
!
IsDecimalNumber
<
T0
>
&&
!
IsDecimalNumber
<
T1
>
&&
!
std
::
is_same_v
<
T0
,
UInt128
>
&&
!
std
::
is_same_v
<
T1
,
UInt128
>
;
template
<
typename
T0
,
typename
T1
>
template
<
typename
T0
,
typename
T1
>
static
UInt32
decimalScale
(
Block
&
block
[[
maybe_unused
]],
const
ColumnNumbers
&
arguments
[[
maybe_unused
]])
static
UInt32
decimalScale
(
Block
&
block
[[
maybe_unused
]],
const
ColumnNumbers
&
arguments
[[
maybe_unused
]])
{
{
...
@@ -314,7 +319,7 @@ private:
...
@@ -314,7 +319,7 @@ private:
{
{
if
constexpr
(
std
::
is_same_v
<
NumberTraits
::
Error
,
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
>
)
if
constexpr
(
std
::
is_same_v
<
NumberTraits
::
Error
,
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
>
)
return
false
;
return
false
;
else
if
constexpr
(
!
IsDecimalNumber
<
T0
>
&&
!
IsDecimalNumber
<
T1
>
)
else
if
constexpr
(
allow_arrays
<
T0
,
T1
>
)
{
{
using
ResultType
=
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
;
using
ResultType
=
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
;
...
@@ -370,7 +375,7 @@ private:
...
@@ -370,7 +375,7 @@ private:
{
{
if
constexpr
(
std
::
is_same_v
<
NumberTraits
::
Error
,
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
>
)
if
constexpr
(
std
::
is_same_v
<
NumberTraits
::
Error
,
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
>
)
return
false
;
return
false
;
else
if
constexpr
(
!
IsDecimalNumber
<
T0
>
&&
!
IsDecimalNumber
<
T1
>
)
else
if
constexpr
(
allow_arrays
<
T0
,
T1
>
)
{
{
using
ResultType
=
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
;
using
ResultType
=
typename
NumberTraits
::
ResultOfIf
<
T0
,
T1
>::
Type
;
...
@@ -978,6 +983,7 @@ public:
...
@@ -978,6 +983,7 @@ public:
bool
executed_with_nums
=
callOnBasicTypes
<
true
,
true
,
true
,
true
>
(
left_id
,
right_id
,
call
);
bool
executed_with_nums
=
callOnBasicTypes
<
true
,
true
,
true
,
true
>
(
left_id
,
right_id
,
call
);
if
(
!
(
executed_with_nums
if
(
!
(
executed_with_nums
||
executeTyped
<
UInt128
,
UInt128
>
(
cond_col
,
block
,
arguments
,
result
,
input_rows_count
)
||
executeString
(
cond_col
,
block
,
arguments
,
result
)
||
executeString
(
cond_col
,
block
,
arguments
,
result
)
||
executeGenericArray
(
cond_col
,
block
,
arguments
,
result
)
||
executeGenericArray
(
cond_col
,
block
,
arguments
,
result
)
||
executeTuple
(
block
,
arguments
,
result
,
input_rows_count
)))
||
executeTuple
(
block
,
arguments
,
result
,
input_rows_count
)))
...
...
dbms/tests/queries/0_stateless/00735_conditional.reference
0 → 100644
浏览文件 @
8b4e5846
value vs value
0 1 1 Int8 Int8 Int8
0 1 1 Int8 Int16 Int16
0 1 1 Int8 Int32 Int32
0 1 1 Int8 Int64 Int64
0 1 1 Int8 UInt8 Int16
0 1 1 Int8 UInt16 Int32
0 1 1 Int8 UInt32 Int64
0 1 1 Int8 Float32 Float32
0 1 1 Int8 Float64 Float64
0 1 1 Int16 Int8 Int16
0 1 1 Int16 Int16 Int16
0 1 1 Int16 Int32 Int32
0 1 1 Int16 Int64 Int64
0 1 1 Int16 UInt8 Int16
0 1 1 Int16 UInt16 Int32
0 1 1 Int16 UInt32 Int64
0 1 1 Int16 Float32 Float32
0 1 1 Int16 Float64 Float64
0 1 1 Int32 Int8 Int32
0 1 1 Int32 Int16 Int32
0 1 1 Int32 Int32 Int32
0 1 1 Int32 Int64 Int64
0 1 1 Int32 UInt8 Int32
0 1 1 Int32 UInt16 Int32
0 1 1 Int32 UInt32 Int64
0 1 1 Int32 Float32 Float64
0 1 1 Int32 Float64 Float64
0 1 1 Int64 Int8 Int64
0 1 1 Int64 Int16 Int64
0 1 1 Int64 Int32 Int64
0 1 1 Int64 Int64 Int64
0 1 1 Int64 UInt8 Int64
0 1 1 Int64 UInt16 Int64
0 1 1 Int64 UInt32 Int64
0 1 1 UInt8 Int8 Int16
0 1 1 UInt8 Int16 Int16
0 1 1 UInt8 Int32 Int32
0 1 1 UInt8 Int64 Int64
0 1 1 UInt8 UInt8 UInt8
0 1 1 UInt8 UInt16 UInt16
0 1 1 UInt8 UInt32 UInt32
0 1 1 UInt8 UInt64 UInt64
0 1 1 UInt8 Float32 Float32
0 1 1 UInt8 Float64 Float64
0 1 1 UInt16 Int8 Int32
0 1 1 UInt16 Int16 Int32
0 1 1 UInt16 Int32 Int32
0 1 1 UInt16 Int64 Int64
0 1 1 UInt16 UInt8 UInt16
0 1 1 UInt16 UInt16 UInt16
0 1 1 UInt16 UInt32 UInt32
0 1 1 UInt16 UInt64 UInt64
0 1 1 UInt16 Float32 Float32
0 1 1 UInt16 Float64 Float64
0 1 1 UInt32 Int8 Int64
0 1 1 UInt32 Int16 Int64
0 1 1 UInt32 Int32 Int64
0 1 1 UInt32 Int64 Int64
0 1 1 UInt32 UInt8 UInt32
0 1 1 UInt32 UInt16 UInt32
0 1 1 UInt32 UInt32 UInt32
0 1 1 UInt32 UInt64 UInt64
0 1 1 UInt32 Float32 Float64
0 1 1 UInt32 Float64 Float64
0 1 1 UInt64 UInt8 UInt64
0 1 1 UInt64 UInt16 UInt64
0 1 1 UInt64 UInt32 UInt64
0 1 1 UInt64 UInt64 UInt64
0000-00-00 1970-01-02 1970-01-02 Date Date Date
0000-00-00 1970-01-01 03:00:01 1970-01-01 03:00:01 Date DateTime DateTime
0000-00-00 00:00:00 1970-01-02 1970-01-01 03:00:01 DateTime Date DateTime
0000-00-00 00:00:00 1970-01-01 03:00:01 1970-01-01 03:00:01 DateTime DateTime DateTime
00000000-0000-0000-0000-000000000000 00000000-0000-0001-0000-000000000000 00000000-0000-0001-0000-000000000000 UUID UUID UUID
column vs value
0 1 1 Int8 Int8 Int8
0 1 1 Int8 Int16 Int16
0 1 1 Int8 Int32 Int32
0 1 1 Int8 Int64 Int64
0 1 1 Int8 UInt8 Int16
0 1 1 Int8 UInt16 Int32
0 1 1 Int8 UInt32 Int64
0 1 1 Int8 Float32 Float32
0 1 1 Int8 Float64 Float64
0 1 1 Int16 Int8 Int16
0 1 1 Int16 Int16 Int16
0 1 1 Int16 Int32 Int32
0 1 1 Int16 Int64 Int64
0 1 1 Int16 UInt8 Int16
0 1 1 Int16 UInt16 Int32
0 1 1 Int16 UInt32 Int64
0 1 1 Int16 Float32 Float32
0 1 1 Int16 Float64 Float64
0 1 1 Int32 Int8 Int32
0 1 1 Int32 Int16 Int32
0 1 1 Int32 Int32 Int32
0 1 1 Int32 Int64 Int64
0 1 1 Int32 UInt8 Int32
0 1 1 Int32 UInt16 Int32
0 1 1 Int32 UInt32 Int64
0 1 1 Int32 Float32 Float64
0 1 1 Int32 Float64 Float64
0 1 1 Int64 Int8 Int64
0 1 1 Int64 Int16 Int64
0 1 1 Int64 Int32 Int64
0 1 1 Int64 Int64 Int64
0 1 1 Int64 UInt8 Int64
0 1 1 Int64 UInt16 Int64
0 1 1 Int64 UInt32 Int64
0 1 1 UInt8 Int8 Int16
0 1 1 UInt8 Int16 Int16
0 1 1 UInt8 Int32 Int32
0 1 1 UInt8 Int64 Int64
0 1 1 UInt8 UInt8 UInt8
0 1 1 UInt8 UInt16 UInt16
0 1 1 UInt8 UInt32 UInt32
0 1 1 UInt8 UInt64 UInt64
0 1 1 UInt8 Float32 Float32
0 1 1 UInt8 Float64 Float64
0 1 1 UInt16 Int8 Int32
0 1 1 UInt16 Int16 Int32
0 1 1 UInt16 Int32 Int32
0 1 1 UInt16 Int64 Int64
0 1 1 UInt16 UInt8 UInt16
0 1 1 UInt16 UInt16 UInt16
0 1 1 UInt16 UInt32 UInt32
0 1 1 UInt16 UInt64 UInt64
0 1 1 UInt16 Float32 Float32
0 1 1 UInt16 Float64 Float64
0 1 1 UInt32 Int8 Int64
0 1 1 UInt32 Int16 Int64
0 1 1 UInt32 Int32 Int64
0 1 1 UInt32 Int64 Int64
0 1 1 UInt32 UInt8 UInt32
0 1 1 UInt32 UInt16 UInt32
0 1 1 UInt32 UInt32 UInt32
0 1 1 UInt32 UInt64 UInt64
0 1 1 UInt32 Float32 Float64
0 1 1 UInt32 Float64 Float64
0 1 1 UInt64 UInt8 UInt64
0 1 1 UInt64 UInt16 UInt64
0 1 1 UInt64 UInt32 UInt64
0 1 1 UInt64 UInt64 UInt64
0000-00-00 1970-01-02 1970-01-02 Date Date Date
0000-00-00 1970-01-01 03:00:01 1970-01-01 03:00:01 Date DateTime DateTime
0000-00-00 00:00:00 1970-01-02 1970-01-01 03:00:01 DateTime Date DateTime
0000-00-00 00:00:00 1970-01-01 03:00:01 1970-01-01 03:00:01 DateTime DateTime DateTime
00000000-0000-0000-0000-000000000000 00000000-0000-0001-0000-000000000000 00000000-0000-0001-0000-000000000000 UUID UUID UUID
dbms/tests/queries/0_stateless/00735_conditional.sql
0 → 100644
浏览文件 @
8b4e5846
SET
send_logs_level
=
'none'
;
SELECT
'value vs value'
;
SELECT
toInt8
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt8
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt8
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt8
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt8
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt8
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt8
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt8
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt16
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt16
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt16
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt16
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt16
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt16
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt16
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt16
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt32
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt32
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt32
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt32
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt32
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt32
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt32
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt32
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt64
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toInt64
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toInt64
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt64
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toInt64
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt8
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt8
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt8
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt8
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt8
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt8
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt8
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt16
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt16
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt16
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt16
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt16
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt16
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt16
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt32
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt32
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt32
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt32
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt32
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt32
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt32
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt64
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt64
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt64
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt64
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUInt64
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUInt64
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt64
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toUInt64
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
toDate
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toDate
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toDate
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDate
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toDateTime
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toDateTime
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toDateTime
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
toUUID
(
0
)
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
toUUID
(
0
)
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
'column vs value'
;
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt8
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt16
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt32
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toInt64
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt8
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt16
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt32
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toUInt64
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 48 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDate
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toDateTime
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toUInt8
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toUInt16
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toUInt32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toUInt64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toFloat32
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toFloat64
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toDate
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toDateTime
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toUUID
(
1
)
AS
y
,
((
x
>
y
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toDecimal32
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toDecimal64
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
SELECT
materialize
(
toUUID
(
0
))
AS
x
,
toDecimal128
(
1
,
0
)
AS
y
,
((
x
=
0
)
?
x
:
y
)
AS
z
,
toTypeName
(
x
),
toTypeName
(
y
),
toTypeName
(
z
);
-- { serverError 386 }
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录