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

Add support for LATERAL VIEW OUTER explode()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • SQL
    • None

    Description

      Hive supports the LATERAL VIEW OUTER syntax to make sure that when an array is empty, the content from the outer table is still returned.

      Within Spark, this is currently only possible within the HiveContext and executing HiveQL statements. It would be nice if the standard explode() DataFrame method allows the same. A possible signature would be:

      explode[A, B](inputColumn: String, outputColumn: String, outer: Boolean = false)
      

      Attachments

        Issue Links

          Activity

            People

              bograd Bogdan Raducanu
              hellstorm Ian Hellstrom
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: