aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/expr/cast_longint.sql
blob: 227f56992c6ed686116e0509075880f75502e392 (plain) (blame)
1
2
3
4
5
6
7
/* postgres can not */
$value = CAST(-7 AS Decimal(10, 0));
SELECT 
    $value AS binary,
    CAST($value AS String) AS to_string,
    CAST("+123" AS Decimal(10,0)) AS from_string,
    CAST("bad" AS Decimal(10,0)) AS bad_cast;