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
    • Docs Text:
      Major
    • Target Version:
    • Epic Color:
      ghx-label-5

      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
      

        Issue Links

          Activity

          Show
          zamsden Zach Amsden added a comment - https://gerrit.cloudera.org/#/c/6575/

            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:

                Development