aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/blocks/coalesce_bools.sql
blob: 2c3ffabb1a1f239cadbc4c6bba27c0faa5ad0c44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
USE plato;

select
    key,
    ob1 ?? b1,
    ob1 ?? false,
    ob1 ?? (1/0 > 0),
    (1/2 > 0) ?? ob1,
    (1/2 == 0) ?? b1,
    (key/0 >= 0) ?? true, 
    (key/0 >= 0) ?? b1,
    (key/2 >= 0) ?? false,
    
from Input

order by key;