You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Steven Jacobs (JIRA)" <ji...@apache.org> on 2017/12/08 17:47:00 UTC

[jira] [Created] (ASTERIXDB-2193) Dataverse resolution within function calls should be based on the dataverse in which the function resides

Steven Jacobs created ASTERIXDB-2193:
----------------------------------------

             Summary: Dataverse resolution within function calls should be based on the dataverse in which the function resides
                 Key: ASTERIXDB-2193
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2193
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Steven Jacobs
            Assignee: Dmitry Lychagin


The following will fail, but should succeed. The second call to the function should resolve the dataset based on the experiments dataverse:

drop dataverse experiments if exists;
create dataverse experiments;
use experiments;
create type TwitterUser if not exists as open{
    screen_name: string,
    friends_count: int32,
    name: string,
    followers_count: int32
};
create dataset TwitterUsers(TwitterUser) primary key screen_name;
create function test_func0() {
 (select * from TwitterUsers)
};
test_func0();

drop dataverse two if exists;
create dataverse two;
use two;
experiments.test_func0();



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)