Open martin-frydl opened 1 year ago
Seems like using output() instead of schema() gives correct names but I have no idea what is that function doing. I was not able to find any documentation and even the code (scala is quite a mystery for me, no 'def output' found by grep).
Possibly related to #42
I have following code in Java:
Here I create DataFrame from which I build another one using flatten() function. In original data frame there is a column SEQ which conflict with the same column generated by flatten. So Snowpark renames my column to some generated name. However, schema() called upon the flatten data frame does not return this name, it returns the original one. As a result, there are two SEQ columns returned. In previous versions of Snowpark like 1.6.2, this worked fine, schema was correct.
1.8.0 returns:
The query is:
In older Snowpark it printed something like this: