Stefan Kandic created SPARK-46539:
-------------------------------------

             Summary: SELECT * EXCEPT(all fields from a struct) results in an 
assertion failure
                 Key: SPARK-46539
                 URL: https://issues.apache.org/jira/browse/SPARK-46539
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Stefan Kandic
             Fix For: 4.0.0


This example
{code:sql}
-- Removing all fields results in an empty struct
> SELECT * EXCEPT(c1.a) FROM VALUES(named_struct('a', 1)) AS t(c1);
{code}
throws an AssertionError during serialization:
{code:java}
AssertionError: assertion failed: each serializer expression should contain at 
least one `BoundReference`
{code}

instead of just return an empty struct



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to