aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/InMem/ConcatOpt.sql
blob: d916034abcc13a44439aba7d58bb2c0f76b3ed8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$es = YQL::Nothing(YQL::OptionalType(YQL::DataType(AsAtom("String"))));
$eu = YQL::Nothing(YQL::OptionalType(YQL::DataType(AsAtom("Utf8"))));
$u1 = YQL::Unwrap(cast("a" as utf8));
$u2 = YQL::Unwrap(cast("b" as utf8));
----------
select YQL::Concat("a", "b");
select YQL::Concat(YQL::Just("a"), "b");
select YQL::Concat("a", YQL::Just("b"));
select YQL::Concat(YQL::Just("a"), "b");
select YQL::Concat($es, "b");
select YQL::Concat("a", $es);
select YQL::Concat($es, $es);
----------
select YQL::Concat("a", $u2);
select YQL::Concat(YQL::Just("a"), $u2);
select YQL::Concat("a", YQL::Just($u2));
select YQL::Concat(YQL::Just("a"), $u2);
select YQL::Concat($es, $u2);
select YQL::Concat("a", $eu);
select YQL::Concat($es, $eu);
----------
select YQL::Concat($u1, "b");
select YQL::Concat(YQL::Just($u1), "b");
select YQL::Concat($u1, YQL::Just("b"));
select YQL::Concat(YQL::Just($u1), "b");
select YQL::Concat($eu, "b");
select YQL::Concat($u1, $es);
select YQL::Concat($eu, $es);
----------
select YQL::Concat($u1, $u2);
select YQL::Concat(YQL::Just($u1), $u2);
select YQL::Concat($u1, YQL::Just($u2));
select YQL::Concat(YQL::Just($u1), $u2);
select YQL::Concat($eu, $u2);
select YQL::Concat($u1, $eu);
select YQL::Concat($eu, $eu);