Michael Armbrust created SPARK-6686:
---------------------------------------

             Summary: toDF column rename does not work when columns contain '.'
                 Key: SPARK-6686
                 URL: https://issues.apache.org/jira/browse/SPARK-6686
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.3.0
            Reporter: Michael Armbrust
            Assignee: Michael Armbrust
            Priority: Critical


{code}
  test("rename nested groupby") {
    val df = Seq((1,(1,1))).toDF()

    checkAnswer(
      df.groupBy("_1").agg(col("_1"), sum("_2._1")).toDF("key", "total"),
      Row(1, 1) :: Nil)
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to