mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test [#CLICKHOUSE-2].
This commit is contained in:
parent
4c2ffbb315
commit
c58ef28b60
28
dbms/tests/queries/0_stateless/00516_is_inf_nan.reference
Normal file
28
dbms/tests/queries/0_stateless/00516_is_inf_nan.reference
Normal file
@ -0,0 +1,28 @@
|
||||
0 1 0 0
|
||||
1 1 0 0
|
||||
-1 1 0 0
|
||||
inf 0 1 0
|
||||
-inf 0 1 0
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
inf 0 1 0
|
||||
-inf 0 1 0
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
-inf 0 1 0
|
||||
inf 0 1 0
|
||||
0 1 0 0
|
||||
1 1 0 0
|
||||
-1 1 0 0
|
||||
inf 0 1 0
|
||||
-inf 0 1 0
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
inf 0 1 0
|
||||
-inf 0 1 0
|
||||
nan 0 0 1
|
||||
nan 0 0 1
|
||||
-inf 0 1 0
|
||||
inf 0 1 0
|
2
dbms/tests/queries/0_stateless/00516_is_inf_nan.sql
Normal file
2
dbms/tests/queries/0_stateless/00516_is_inf_nan.sql
Normal file
@ -0,0 +1,2 @@
|
||||
SELECT x, isFinite(x), isInfinite(x), isNaN(x) FROM (SELECT arrayJoin([0, 1, -1, inf, -inf, nan, -nan, 0 / 0, 1 / 0, -1 / 0, 0 / -0., -0. / 0, 1 / -0., -1 / -0.]) AS x);
|
||||
SELECT x, isFinite(x), isInfinite(x), isNaN(x) FROM (SELECT toFloat32(arrayJoin([0, 1, -1, inf, -inf, nan, -nan, 0 / 0, 1 / 0, -1 / 0, 0 / -0., -0. / 0, 1 / -0., -1 / -0.])) AS x);
|
Loading…
Reference in New Issue
Block a user