Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2193

Dataverse resolution within function calls should be based on the dataverse in which the function resides

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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();

      Attachments

        Activity

          People

            dlychagin-cb Dmitry Lychagin
            sjaco002 Steven Jacobs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: