Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5180

Non-deterministic exprs without slot refs cause HDFS query failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 2.9.0
    • Frontend
    • None

    Description

      Now that we do constant propagation, this query:

      select count(*) from
        (select * from functional.alltypes) T
      where (coalesce(NULL, T.int_col) + random() * T.int_col = 100 OR coalesce(NULL, T.int_col) + T.int_col = 20) and T.int_col = 10
      

      Ends up returning:

      ERROR: NotImplementedException: Unsupported non-deterministic predicate: TRUE OR 10 + random() * 10 = 100

      The problem can be reproduced even before constant propagation with simpler expressions, we are just more likely to run into this now. Example:

      explain select count(*) from
        (select * from functional.alltypes) T
      where random() = 100
      ERROR: NotImplementedException: Unsupported non-deterministic predicate: random() = 100
      

      Attachments

        Issue Links

          Activity

            People

              zamsden Zach Amsden
              zamsden Zach Amsden
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: