|
| 1 | +### SUBSTRAIT_TABLE_TEST: v1.0 |
| 2 | +### SUBSTRAIT_INCLUDE: '/extensions/functions_table_generic.yaml' |
| 3 | + |
| 4 | +# single_list_int: Single list unnest (same as explode) |
| 5 | +unnest([1, 2, 3]::list<i32>) = [(1), (2), (3)]::struct<i32> |
| 6 | + |
| 7 | +# single_list_string: Single list unnest with strings |
| 8 | +unnest(['a', 'b']::list<str>) = [('a'), ('b')]::struct<str> |
| 9 | + |
| 10 | +# single_list_empty: Empty list produces zero rows |
| 11 | +unnest([]::list<i32>) = []::struct<i32> |
| 12 | + |
| 13 | +# two_lists_same_length: Zip two lists of same length |
| 14 | +unnest([1, 2, 3]::list<i32>, [4, 5, 6]::list<i32>) = [(1, 4), (2, 5), (3, 6)]::struct<i32,i32> |
| 15 | + |
| 16 | +# two_lists_different_types: Zip lists of different types |
| 17 | +unnest([1, 2]::list<i32>, ['a', 'b']::list<str>) = [(1, 'a'), (2, 'b')]::struct<i32,str> |
| 18 | + |
| 19 | +# three_lists: Zip three lists |
| 20 | +unnest([1, 2]::list<i32>, [3, 4]::list<i32>, [5, 6]::list<i32>) = [(1, 3, 5), (2, 4, 6)]::struct<i32,i32,i32> |
| 21 | + |
| 22 | +# four_lists: Zip four lists |
| 23 | +unnest([1, 2]::list<i32>, [3, 4]::list<i32>, [5, 6]::list<i32>, [7, 8]::list<i32>) = [(1, 3, 5, 7), (2, 4, 6, 8)]::struct<i32,i32,i32,i32> |
0 commit comments