You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Michael J. Carey (JIRA)" <ji...@apache.org> on 2019/08/14 16:17:00 UTC

[jira] [Assigned] (ASTERIXDB-2629) Unclear error message for ADM external data with invalid types

     [ https://issues.apache.org/jira/browse/ASTERIXDB-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael J. Carey reassigned ASTERIXDB-2629:
-------------------------------------------

    Assignee: Ian Maxon

> Unclear error message for ADM external data with invalid types
> --------------------------------------------------------------
>
>                 Key: ASTERIXDB-2629
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2629
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: *DB - AsterixDB
>            Reporter: Nick DiGeronimo
>            Assignee: Ian Maxon
>            Priority: Minor
>         Attachments: dirtyAdm.jsonl
>
>
> AsterixDB gives an unhelpful error message when loading in ADM data with mismatching types. Try the example below using the attached "dirtyAdm.jsonl".
> {code:java}
> DROP DATASET TestDataset;
> DROP TYPE TestType;
> CREATE TYPE TestType AS open { testId: uuid, expectedInteger: bigint };
> CREATE DATASET TestDataset(TestType) PRIMARY KEY testId AUTOGENERATED;
> LOAD DATASET TestDataset USING localfs
> (("path"=":///Users/macandcheese/Desktop/dirtyAdm.jsonl"),("format"="adm"));
> SELECT * FROM TestDataset;{code}
> To run this, create a file "dirtyAdm.jsonl" with these contents:
> {code:java}
> {"expectedInteger": double("23.4")}{code}
> The error message is:
> {code:java}
> Internal error. Please check instance logs for further details. [NullPointerException]{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)