Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-31808

Make struct function's output name and class name pretty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      scala> sql("select struct(1)").show()
      +---------------------+
      |named_struct(col1, 1)|
      +---------------------+
      |                  [1]|
      +---------------------+
      

      It should be:

      scala> sql("select struct(1)").show()
      +---------+
      |struct(1)|
      +---------+
      |      [1]|
      +---------+
      

      Attachments

        Activity

          People

            gurwls223 Hyukjin Kwon
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: