You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Murtadha Hubail (JIRA)" <ji...@apache.org> on 2016/01/11 00:49:39 UTC
[jira] [Created] (ASTERIXDB-1258) Sqlpp does not recognize
recursive UDF calls
Murtadha Hubail created ASTERIXDB-1258:
------------------------------------------
Summary: Sqlpp does not recognize recursive UDF calls
Key: ASTERIXDB-1258
URL: https://issues.apache.org/jira/browse/ASTERIXDB-1258
Project: Apache AsterixDB
Issue Type: Bug
Components: AsterixDB
Reporter: Murtadha Hubail
Assignee: Yingyi Bu
Priority: Minor
The following AQL statements correctly detect recursion on UDF (which is tested in runtimets/queries/cross-dataverse/cross-dv16). Whereas their equivelent Sqlpp statements throw the exception "SyntaxError: function testdv1.fun03@0 depends upon function testdv1.fun04@0 which is undefined"
drop dataverse testdv1 if exists;
create dataverse testdv1;
// UDF with no inputs
create function testdv1.fun01(){
testdv1.fun02()
}
// UDF with one input
create function testdv1.fun02(){
testdv1.fun03()
}
// UDF with two inputs
create function testdv1.fun03(){
testdv1.fun04()
}
create function testdv1.fun04(){
testdv1.fun02()
}
use dataverse testdv1;
testdv1.fun01()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)