[
https://issues.apache.org/jira/browse/ASTERIXDB-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Maxon reassigned ASTERIXDB-2984:
------------------------------------
Assignee: Ian Maxon
> LOAD not throwing error for bad input
> -------------------------------------
>
> Key: ASTERIXDB-2984
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2984
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: ING - Ingestion
> Reporter: Glenn Justo Galvizo
> Assignee: Ian Maxon
> Priority: Major
> Attachments: 2021-11-12.json
>
>
> LOAD is not throwing a warning for malformed input, but querying the data
> using an external dataset does.
> {code:java}
> -- This throws the expected warning...
> DROP DATAVERSE MuVI IF EXISTS;
> CREATE DATAVERSE MuVI;
> USE MuVI;
> CREATE TYPE ResultsType AS { };
> CREATE EXTERNAL DATASET ResultsDataset (ResultsType)
> USING localfs (
> ("path"="127.0.0.1:///..../2021-11-12.json"),
> ("format"="json")
> );FROM ResultsDataset
> SELECT COUNT(*);
> -- This does not...
> DROP DATAVERSE MuVI IF EXISTS;
> CREATE DATAVERSE MuVI;
> USE MuVI;
> CREATE TYPE ResultsType AS { _id: UUID };
> CREATE DATASET ResultsDataset (ResultsType) PRIMARY KEY _id AUTOGENERATED;
> LOAD DATASET ResultsDataset
> USING localfs (
> ("path"="127.0.0.1:///..../2021-11-12.json"),
> ("format"="json")
> ); {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)