[
https://issues.apache.org/jira/browse/ASTERIXDB-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222408#comment-15222408
]
ASF subversion and git services commented on ASTERIXDB-1360:
------------------------------------------------------------
Commit 442e49b9f174717035d0f4ebcc0810f5f3f3f29c in incubator-asterixdb's branch
refs/heads/master from [~alamoudi]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=442e49b ]
ASTERIXDB-1360 Fix Error Message for Unknown Format
This change includes some refactoring for external
data. This refactoring makes the code less error prone
and separate data source selection from data parser
selection. It also fixes issue ASTERIXDB-1366 and adds
a test case for it as well.
Change-Id: Ib4aac833e30bd7c5a7706f5c8116383c2362c964
Reviewed-on: https://asterix-gerrit.ics.uci.edu/767
Tested-by: Jenkins <[email protected]>
Reviewed-by: Till Westmann <[email protected]>
> Bad error message when the localfs format field is invalid
> ----------------------------------------------------------
>
> Key: ASTERIXDB-1360
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1360
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Steven Jacobs
> Assignee: Abdullah Alamoudi
>
> When doing a load from localfs, if the "format" value isn't valid, the error
> message to the user will be that the localfs reader is unknown. This is
> really confusing for the user. I'm attaching a sample query and stack trace
> (note the "add" format )
> load dataset EmergencyReports using
> localfs(("path"="asterix_nc1:///Users/stevenjacobs/Desktop/EmergencyDataset/EmergencyReports.adm"),("format"="add"));
> d by: org.apache.asterix.common.exceptions.AsterixException: unknown record
> reader factory: localfs
> at
> org.apache.asterix.external.provider.DatasourceFactoryProvider.getRecordReaderFactory(DatasourceFactoryProvider.java:146)
> at
> org.apache.asterix.external.provider.DatasourceFactoryProvider.getExternalDataSourceFactory(DatasourceFactoryProvider.java:48)
> at
> org.apache.asterix.external.adapter.factory.GenericAdapterFactory.configure(GenericAdapterFactory.java:122)
> at
> org.apache.asterix.external.provider.AdapterFactoryProvider.getAdapterFactory(AdapterFactoryProvider.java:46)
> at
> org.apache.asterix.metadata.declared.AqlMetadataProvider.getConfiguredAdapterFactory(AqlMetadataProvider.java:563)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)