You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alexander Behm (JIRA)" <ji...@apache.org> on 2018/06/12 23:24:00 UTC

[jira] [Created] (SPARK-24536) Query with nonsensical LIMIT hits AssertionError

Alexander Behm created SPARK-24536:
--------------------------------------

             Summary: Query with nonsensical LIMIT hits AssertionError
                 Key: SPARK-24536
                 URL: https://issues.apache.org/jira/browse/SPARK-24536
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.3.0
            Reporter: Alexander Behm


SELECT COUNT(*) FROM t LIMIT CAST(NULL AS INT)

fails in the QueryPlanner with:
{code}
java.lang.AssertionError: assertion failed: No plan for GlobalLimit null
{code}

I think this issue should be caught earlier during semantic analysis.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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