Closed ChristianGruen closed 2 years ago
for $b in ('a-1', 'a-2') group by $c := substring-before($b, '-') return $c
…is simplified to "a".
"a"
The same should happen for single items. The following expression …
for $b in ('a-1') group by $c := substring-before($b, '-') return $c
…is simplified to group by $c := "a" return $c (illegal as input query, but valid as compiled query).
group by $c := "a" return $c
…is simplified to
"a"
.The same should happen for single items. The following expression …
…is simplified to
group by $c := "a" return $c
(illegal as input query, but valid as compiled query).