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/04/13 00:07:00 UTC

[jira] [Commented] (ASTERIXDB-2871) Query fails with: ASX1079: Compilation error: Recursive invocation

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

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

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

[ASTERIXDB-2871][COMP] Improve UDF recursion detection

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

Details:
- Improve UDF recursion detection
- Rewrite UDF body expression only once
- Add testcases

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


> Query fails with: ASX1079: Compilation error: Recursive invocation
> ------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2871
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2871
>             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 "Compilation error: Recursive invocation test.f1b(1) <==> test.f1a(1)" even though there's no recursive function invocation there.
> {noformat}
> drop dataverse test if exists;
> create dataverse test;
> use test;
> create function f1a(a) { -a };
> create function f1b(b) { f1a(b) + f1a(b) };
> select r, f1a(r) f1a, f1b(r) f1b
> from range(1,2) r
> order by r;
> {noformat}



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