I am trying to imitate the behaviour of "generate_series". My table contains various fields. One of these is "count". I want to output each row as often as "count" because each row is going to serve as an independent object.
Dremio, however, does not support "generate_series".
Does anyone know how to accomplish the given task?
regards Muffex
Edit:
Table:
id | name | count |
---|---|---|
0123 | ABC | 3 |
2345 | EFG | 0 |
3456 | HIK | 2 |
Desired Output:
id | name |
---|---|
0123 | ABC |
0123 | ABC |
0123 | ABC |
3456 | HIK |
3456 | HIK |