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

constraints propagation may fail the query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • SQL
    • None

    Description

      create table(a int, b int);
      select
        a,
        max(b) as c1,
        b as c2
      from tbl
      where a = b
      group by a, b
      having c1 = 1
      

      this query fails in 2.0, but works in 1.6

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            cloud_fan Wenchen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: