aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/compute_range/decimal.sql
blob: b6869a36611213a7b9deb96dde729734460a2745 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* syntax version 1 */
/* postgres can not */
/* yt can not */

pragma warning("disable", "4510");

$opt_type = Struct<x:Decimal(15,10)?>;
$keys = AsTuple(AsAtom("x"));

$pred = ($row) -> (($row.x < Decimal("-inf",15,10)) ?? false);

select YQL::RangeComputeFor($opt_type, $pred, $keys);