spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maryann Xue (JIRA)" <>
Subject [jira] [Created] (SPARK-24162) Support aliased literal values for Pivot "IN" clause
Date Wed, 02 May 2018 23:43:00 GMT
Maryann Xue created SPARK-24162:

             Summary: Support aliased literal values for Pivot "IN" clause
                 Key: SPARK-24162
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.3.0
            Reporter: Maryann Xue

This is part of a functionality extension to Pivot SQL support as SPARK-24035.

When literal values are specified in Pivot IN clause, it would be nice to allow aliases for
those values so that the output column names can be customized. For example:
  SELECT year, course, earnings FROM courseSales
  FOR course IN ('dotNET' as c1, 'Java' as c2)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message