You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: Implement AggregateUDFImpl::reverse_expr for StringAgg
* Add a test with two invocations of aggregateion
---------
Co-authored-by: Nuno Faria <nunofpfaria@gmail.com>
# Call string_agg with both ASC and DESC orderings, and expect only one sort
6240
+
# (because the aggregate can handle reversed inputs)
6241
+
query TT
6242
+
explain select string_agg(k, ',' order by v asc), string_agg(k, ',' order by v desc) from t;
6243
+
----
6244
+
logical_plan
6245
+
01)Aggregate: groupBy=[[]], aggr=[[string_agg(t.k, Utf8(",")) ORDER BY [t.v ASC NULLS LAST], string_agg(t.k, Utf8(",")) ORDER BY [t.v DESC NULLS FIRST]]]
6246
+
02)--TableScan: t projection=[k, v]
6247
+
physical_plan
6248
+
01)AggregateExec: mode=Single, gby=[], aggr=[string_agg(t.k,Utf8(",")) ORDER BY [t.v ASC NULLS LAST], string_agg(t.k,Utf8(",")) ORDER BY [t.v DESC NULLS FIRST]]
0 commit comments