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

Query with nonsensical LIMIT hits AssertionError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.3.0
    • 2.3.2, 2.4.0
    • SQL

    Description

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

      fails in the QueryPlanner with:

      java.lang.AssertionError: assertion failed: No plan for GlobalLimit null
      

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: