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

            hyukjin.kwon Hyukjin Kwon
            hyukjin.kwon Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: