Dmitry Lychagin created ASTERIXDB-2530:
------------------------------------------

             Summary: 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


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)

Reply via email to