[ 
https://issues.apache.org/jira/browse/SPARK-24722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16530443#comment-16530443
 ] 

Apache Spark commented on SPARK-24722:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/21699

> Column-based API for pivoting
> -----------------------------
>
>                 Key: SPARK-24722
>                 URL: https://issues.apache.org/jira/browse/SPARK-24722
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Priority: Minor
>
> Currently, the pivot() function accepts the pivot column as a string. It is 
> not consistent to groupBy API and causes additional problem of using nested 
> columns as the pivot column.
> `Column` support is needed for (a) API consistency, (b) user productivity and 
> (c) performance. In general, we should follow to the POLA - 
> https://en.wikipedia.org/wiki/Principle_of_least_astonishment in designing of 
> the API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to