[
https://issues.apache.org/jira/browse/ASTERIXDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Lychagin resolved ASTERIXDB-2530.
----------------------------------------
Resolution: Fixed
> Type incompatibility error raised at compile time
> -------------------------------------------------
>
> Key: ASTERIXDB-2530
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2530
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: COMP - Compiler
> Reporter: Dmitry Lychagin
> Assignee: Dmitry Lychagin
> Priority: Minor
>
> The following query
> {noformat}
> from range(1, 2) x
> let y = case when t > 1 then date("2011-11-11") else
> datetime("2011-11-11T11:11:11") end
> select y + year_month_duration("P" || tostring(x) || "Y") res
> order by x
> {noformat}
> fails withÂ
> {noformat}
> ASX1003: Type incompatibility: function numeric-add gets incompatible input
> values: any and yearmonthduration
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)