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

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

Commit dc870e152851ac78f8a30f84672def0f142d264e in asterixdb's branch 
refs/heads/master from [~dlychagin-cb]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=dc870e1 ]

[ASTERIXDB-2440][COMP] Compiler failure with IN expression

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

Details:
- Fixed NullPointerException when IN expression is passed as
  an argument to a function call

Change-Id: I4f9734c37b074ef9b16bc7ae403ae079b86b0e9a
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2890
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Taewoo Kim <[email protected]>


> NullPointerException with NOT IN
> --------------------------------
>
>                 Key: ASTERIXDB-2440
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2440
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>
> The following query throws NullPointerException: 
> select value c.c_custkey
> from Customer c
> where not(c.c_name in ["Customer#000000001", "Customer#000000002", 
> "Customer#000000003"])
> java.lang.NullPointerException: null
>         at 
> org.apache.asterix.om.typecomputer.impl.TypeComputeUtils.getActualType(TypeComputeUtils.java:204)
>  ~[classes/:?]
>         at 
> org.apache.asterix.om.typecomputer.impl.TypeComputeUtils.getActualType(TypeComputeUtils.java:183)
>  ~[classes/:?]
>         at 
> org.apache.asterix.om.typecomputer.impl.TypeComputeUtils.resolveResultType(TypeComputeUtils.java:88)
>  ~[classes/:?]
>         at 
> org.apache.asterix.om.typecomputer.impl.BooleanFunctionTypeComputer.computeType(BooleanFunctionTypeComputer.java:44)
>  ~[classes/:?]
>         at 
> org.apache.asterix.dataflow.data.common.ExpressionTypeComputer.getTypeForFunction(ExpressionTypeComputer.java:84)
>  ~[classes/:?]
>         at 
> org.apache.asterix.dataflow.data.common.ExpressionTypeComputer.getType(ExpressionTypeComputer.java:55)
>  ~[classes/:?]
>         at 
> org.apache.hyracks.algebricks.core.algebra.typing.AbstractTypeEnvironment.getType(AbstractTypeEnvironment.java:45)
>  ~[classes/:?]
>         at 
> org.apache.asterix.om.typecomputer.impl.TypeComputeUtils.resolveResultType(TypeComputeUtils.java:84)
>  ~[classes/:?]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to