summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/linear/fail_if_strict_linear_different_branches.yql
blob: 11d062f76eb4bb431f48b32ad2be986d4065b3f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* custom error: Cannot guarantee single use in static analysis, consider using DynamicLinear */
$x = WithSideEffects(ToMutDict({1:2},null));
$z = WithSideEffects(ToMutDict({3:4},null));
$y = IF_STRICT(
        Opaque(true),
        ($x,1),
        ($z,2)
        );
select 
    FromMutDict($y.0), $y.1