impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zach Amsden (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMPALA-5180) Non-deterministic exprs without slot refs cause HDFS query failure
Date Thu, 06 Apr 2017 23:30:42 GMT
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)

Mime
View raw message