asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael J. Carey (JIRA)" <>
Subject [jira] [Commented] (ASTERIXDB-1601) CREATE TYPE failure as NPE (unsupported/untested feature?)
Date Sun, 21 Aug 2016 17:59:20 GMT


Michael J. Carey commented on ASTERIXDB-1601:

E.g., here's another document-allowed CREATE TYPE example that doesn't actually work (though
no NPE :-)) if you try replacing the employment history for users with the renamed type:

CREATE TYPE EmploymentHistory AS [ EmploymentType ];

    CREATE TYPE GleambookUserType AS {
      id:         int,
      alias:      string,
      name:       string,
      userSince: datetime,
      friendIds: {{ int }},
      employment: [ EmploymentType ]

If you change the above field to " .... employment: EmploymentHistory ... " you get: cannot be cast to

My proposal would be to only allow CREATE TYPE to be used to create a new record type for
now, which is all we ever use it for.  I can't even remember why all that other stuff was/is
there - but - sure enough, it dates back to the reference manual for UC AsterixDB 2013...

> CREATE TYPE failure as NPE (unsupported/untested feature?)
> ----------------------------------------------------------
>                 Key: ASTERIXDB-1601
>                 URL:
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB, Documentation, Error Reporting, Translator - AQL
>         Environment: OSX and master
>            Reporter: Michael J. Carey
>            Assignee: Till
>            Priority: Critical
>              Labels: soon
> I just tried something that I'd long forgotten about that's documented in the reference
manual but basically never used - and it doesn't work.  I am thinking we should disable this
(and other things like it), perhaps?  Here's what I did:
>     DROP DATAVERSE TinySocial2;
>     CREATE DATAVERSE TinySocial2;
>     USE TinySocial2;
>     CREATE TYPE MyUserTupleType AS CLOSED {
>       id: uuid, alias: string?, name: string
>     };
>    CREATE TYPE RenamedType AS MyUserTupleType;
> Here's what I got:
> Internal error. Please check instance logs for further details. [NullPointerException]

This message was sent by Atlassian JIRA

View raw message