You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Yingyi Bu (JIRA)" <ji...@apache.org> on 2017/04/05 23:39:41 UTC
[jira] [Commented] (ASTERIXDB-1875) Can't run UDF in SQL++
[ https://issues.apache.org/jira/browse/ASTERIXDB-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15958032#comment-15958032 ]
Yingyi Bu commented on ASTERIXDB-1875:
--------------------------------------
[~sjaco002] are you using latest master?
Here is what I got.
create function cat(str1,str2)
{ concat(str1,str2) }
with result as cat("w229","4u1")
select value result;
Unknown function cat@2 [CompilationException]
The following query I get those:
select value cat("w229","4u1") ;
function Default.cat@2 depends upon function Default.concat@2 which is undefined [CompilationException]
The next query works:
with result as concat("w229","4u1")
select value result;
But regardless there should be some bugs in UDF handling.
> Can't run UDF in SQL++
> ----------------------
>
> Key: ASTERIXDB-1875
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1875
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Steven Jacobs
> Assignee: Yingyi Bu
>
> create function cat(str1,str2) {
> concat(str1,str2)
> }
> with result as cat("w229","4u1")
> select value result;
> The above gives an internal error, whereas the following works correctly:
> with result as concat("w229","4u1")
> select value result;
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)