SNOW-944062: Implementation and functionality of pivot
differs from PySpark and is not user-friendly
#1093
Labels
feature
New feature or request
What is the current behavior?
Currently the
pivot
method is a method of a dataframe as shown in the docs. You thus have to pass the pivot column and even the distinct values for pivoting. It is not possible usepivot
in combination with a GroupedDataframe.This is not compatible to how PySpark implements pivot. Here
pivot
is a function on a GroupedDataframe. And the specific values don't need to be specified.What is the desired behavior?
Implement the same behavior as in PySpark.
How would this improve
snowflake-snowpark-python
?It will be easier to migrate from PySpark to Snowpark and Pyspark's pivot behaviour is just more user-friendly as in most cases you group before you apply it.
References, Other Background
The text was updated successfully, but these errors were encountered: