summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/yson2/test/cases/MutDownUpDict.sql
blob: e11b9c776b35305f607ea643c41eee4b3377c329 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
SELECT 
    Block(($x)->{
        $m = Udf(Yson::MutCreate, $x as Depends)();
        $m = Yson::MutDownOrCreate($m, 'foo');
        $m = Yson::MutUpsert($m, '1'y);
        $m = Yson::MutUp($m);
        $m = Yson::MutDownOrCreate($m, 'bar');
        $m = Yson::MutUpsert($m, '2u'y);
        $m = Yson::MutRewind($m);
        $m = Yson::MutDown($m, 'bar');
        $m = Yson::MutInsert($m, '3.0'y);
        return Yson::MutFreeze($m);
    })