Steven Jacobs created ASTERIXDB-1360:
----------------------------------------

             Summary: 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


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)

Reply via email to