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

Union of map and other compatible column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.1
    • 2.4.0
    • SQL
    • None

    Description

      Union of map and other compatible column result in unresolved operator 'Union; exception

      Reproduction

      spark-sql>select map(1,2), 'str' union all select map(1,2,3,null), 1

      Output:

      Error in query: unresolved operator 'Union;;
      'Union
      :- Project map(1, 2) AS map(1, 2)#106, str AS str#107
      : +- OneRowRelation$
      +- Project map(1, cast(2 as int), 3, cast(null as int)) AS map(1, CAST(2 AS INT), 3, CAST(NULL AS INT))#109, 1 AS 1#108
      +- OneRowRelation$

       

      Attachments

        Activity

          People

            liutang123 Lijia Liu
            liutang123 Lijia Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: