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 2021/03/26 11:11:00 UTC

[jira] [Commented] (ASTERIXDB-2844) Syntax error with UNNEST

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

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

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

[ASTERIXDB-2844][COMP] Fix syntax error with UNNEST

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

Details:
- Do not require AS subclause in UNNEST
- Add testcase

Change-Id: Ied4df9b3a4933369f79f37fbf23a179722df9c53
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/10484
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
Reviewed-by: Ali Alsuliman <al...@gmail.com>


> Syntax error with UNNEST
> ------------------------
>
>                 Key: ASTERIXDB-2844
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2844
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>    Affects Versions: 0.9.6
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>             Fix For: 0.9.7
>
>
> The following query fails with syntax error:
> {noformat}
> with t as (select r, [r,r] ra from range(1, 2) r)
> select count(*)
> from t unnest t.ra
> {noformat}
> Workaround: use AS subclause in UNNEST: unnest t.ra AS x



--
This message was sent by Atlassian Jira
(v8.3.4#803005)