You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Zach Amsden (JIRA)" <ji...@apache.org> on 2017/04/06 23:30:42 UTC

[jira] [Created] (IMPALA-5180) Non-deterministic exprs without slot refs cause HDFS query failure

Zach Amsden created IMPALA-5180:
-----------------------------------

             Summary: Non-deterministic exprs without slot refs cause HDFS query failure
                 Key: IMPALA-5180
                 URL: https://issues.apache.org/jira/browse/IMPALA-5180
             Project: IMPALA
          Issue Type: Bug
            Reporter: Zach Amsden


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




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)