[
https://issues.apache.org/jira/browse/ASTERIXDB-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Lychagin resolved ASTERIXDB-2346.
----------------------------------------
Resolution: Fixed
> Constant folding rule should not fail on runtime exceptions
> -----------------------------------------------------------
>
> Key: ASTERIXDB-2346
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2346
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: COMP - Compiler
> Reporter: Dmitry Lychagin
> Assignee: Dmitry Lychagin
> Priority: Minor
>
> Constant folding rule should not fail on runtime exceptions, because the
> error branch might not be chosen at runtime due to lazy evaluation.
> For example:
> IFINF(2,1/0)
> currently fails due to division by 0 because that exception is thrown by the
> constant folding rule. However this query should not fail because at runtime
> the first argument can be returned without evaluating the second.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)