Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
Attachments
Issue Links
- is a parent of
-
IMPALA-5003 Add 'constant propagation' for Views with a partition filter
- Resolved