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

Non-deterministic exprs without slot refs cause HDFS query failure

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Impala 2.9.0
    • Component/s: Frontend
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: