aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Optimizers/CoalesceWithBoolOverAnd.yql
blob: 1d290a7ef73ffd329cabd5227dde8fbb980340d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let optBool1 (== (Int32 '0) (/ (Int32 '1) (Int32 '2))))
(let optBool2 (== (Int32 '0) (/ (Int32 '4) (Int32 '5))))
(let data (Coalesce (And optBool1 optBool2) (Bool 'false)))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)