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

SELECT * EXCEPT(all fields from a struct) results in an assertion failure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0
    • SQL

    Description

      This example

      -- Removing all fields results in an empty struct
      > SELECT * EXCEPT(c1.a) FROM VALUES(named_struct('a', 1)) AS t(c1);
      

      throws an AssertionError during serialization:

      AssertionError: assertion failed: each serializer expression should contain at least one `BoundReference`
      

      instead of just return an empty struct

      Attachments

        Activity

          People

            stefan.kandic Stefan Kandic
            stefan.kandic Stefan Kandic
            Milan Stefanovic Milan Stefanovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: