Hi David

If you need alternative way to do it you can use below:
df.select(expr("stack(2, 1,2,3)"))
Or
df.withColumn('stacked', expr("stack(2, 1,2,3)"))

Thanks
Khalid

On Mon, 14 Jun 2021, 10:14 , <david.szakallas@gmail.com> wrote:
I noticed that the stack SQL function is missing from the functions API. Could we add it?