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

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

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

[ASTERIXDB-2408][COMP] Avoid infinite recursion when inlining column aliases

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

Change-Id: Ib8a7017a068660d570e78a25c4211908e299d6db
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2741
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Till Westmann <[email protected]>


> Query runs into stack overflow
> ------------------------------
>
>                 Key: ASTERIXDB-2408
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2408
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> The following query runs into stack overflow:
> drop dataverse test if exists;
> create dataverse test;
> use test;
> create type testType as open
> { id: int32 };
> create dataset customers(testType) primary key id;
> create dataset orders(testType) primary key id;
> SELECT c.name, (
>  SELECT VALUE o.id
>  FROM orders o
>  WHERE o.customer_id = c.id
>  ) AS orders
> FROM customers c
> ORDER BY array_count(orders)
> ;
>  
> Stack trace:
> java.lang.StackOverflowError
>  at java.util.HashMap.hash(HashMap.java:339)
>  at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:63)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:65)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:65)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:65)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:65)
>  at org.apache.asterix.lang.common.context.Scope.findSymbol(Scope.java:65)
> ...
>  



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

Reply via email to