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

Make struct function's output name and class name pretty

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              hyukjin.kwon Hyukjin Kwon
              Reporter:
              hyukjin.kwon Hyukjin Kwon

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment