[
https://issues.apache.org/jira/browse/ASTERIXDB-2181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16308489#comment-16308489
]
ASF subversion and git services commented on ASTERIXDB-2181:
------------------------------------------------------------
Commit 665e9fe4d2f87d4734227ff61d266cbff424a5b4 in asterixdb's branch
refs/heads/master from [~sjaco002]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=665e9fe ]
[ASTERIXDB-2181][FUN] Check whether a function is usable at creation
Verify rewrite step on a function before allowing creation
Add negative tests for bad function declarations
Change-Id: I262b8cfd29117c18f452973fed147696b83f1249
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2242
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Dmitry Lychagin <[email protected]>
> Nothing prevents creation of unusable functions
> -----------------------------------------------
>
> Key: ASTERIXDB-2181
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2181
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Steven Jacobs
>
> The following DDL will work correctly, and create two functions that are
> currently unusable. It would be better to check whether a function is usable
> before creating it.
> drop dataverse steven if exists;
> create dataverse steven;
> use steven;
> create function impossible(){
> (select * from something_that_is_not_there)
> };
> create function impossible2(){
> function_that_is_not_there()
> };
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)