aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/optimizers/yson_dup_serialize.sql
blob: ead013f3b6d51a83fab7b39d7e713003ce99918e (plain) (blame)
1
2
3
4
5
6
7
/* postgres can not */
/* syntax version 1 */
$l = ($x)->( ListMap($x, Yson::Serialize) );
$d = ($x)->( ToDict(ListMap(DictItems($x),($i)->(($i.0,Yson::Serialize($i.1))))));

select $l($l(Yson::ConvertToList(Yson("[1;2;3]"))));
select ListSort(DictItems($d($d(Yson::ConvertToDict(Yson("{a=1;b=2}"))))), ($x)->($x.0));