Skip to content

Commit

Permalink
test: cover additional listagg cases (#10445)
Browse files Browse the repository at this point in the history
* test: cover addidtional listagg cases

* fix embarrasement

---------

Co-authored-by: Doug Beatty <[email protected]>
  • Loading branch information
igorvoltaic and dbeatty10 authored Jul 18, 2024
1 parent 33161a3 commit c4958de
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/functional/adapter/utils/fixture_listagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
3,"g, g, g",comma_whitespace_unordered
3,"g",distinct_comma
3,"g,g,g",no_params
1,"c_|_b_|_a",top_ordered
2,"p_|_a_|_1",top_ordered
3,"g_|_g_|_g",top_ordered
1,"c_|_b",top_ordered_limited
2,"p_|_a",top_ordered_limited
3,"g_|_g",top_ordered_limited
"""


Expand Down Expand Up @@ -87,6 +93,24 @@
where group_col = 3
group by group_col
union all
select
group_col,
{{ listagg('string_text', "'_|_'", "order by order_col desc") }} as actual,
'top_ordered' as version
from data
group by group_col
union all
select
group_col,
{{ listagg('string_text', "'_|_'", "order by order_col desc", 2) }} as actual,
'top_ordered_limited' as version
from data
group by group_col
)
select
Expand Down

0 comments on commit c4958de

Please sign in to comment.