You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/14 15:40:00 UTC

[jira] [Commented] (ASTERIXDB-2530) Type incompatibility error raised at compile time

    [ https://issues.apache.org/jira/browse/ASTERIXDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792796#comment-16792796 ] 

ASF subversion and git services commented on ASTERIXDB-2530:
------------------------------------------------------------

Commit 3b545d7c1977ee3189e461f2af243b0fef342e33 in asterixdb's branch refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=3b545d7 ]

[ASTERIXDB-2530][COMP] Error computing type for numeric add

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Fixed type computation for numeric add when first argument
  is of type ANY and second argument is of a temporal type

Change-Id: I4beac66a6a71179bb3214d27a820f3306533b03c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3271
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Ali Alsuliman <al...@gmail.com>


> 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)