[ 
https://issues.apache.org/jira/browse/DRILL-533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978441#comment-13978441
 ] 

ASF GitHub Bot commented on DRILL-533:
--------------------------------------

Github user vkorukanti commented on the pull request:

    https://github.com/apache/incubator-drill/pull/51#issuecomment-41185880
  
    rebased on latest master and fixed an issue in earlier fix.


> Queries fail with NPE if the dfs schema has no default workspace but has 
> non-default workspace
> ----------------------------------------------------------------------------------------------
>
>                 Key: DRILL-533
>                 URL: https://issues.apache.org/jira/browse/DRILL-533
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Venki Korukanti
>            Assignee: Venki Korukanti
>
> storage-engines.json to repro:
> {code}
> {
>   "storage":{
>     dfs: {
>       type: "file",
>       connection: "file:///",
>       workspaces: {
>         home: "/"
>       }
>     },
>     cp: {
>       type: "file",
>       connection: "classpath:///",
>       workspaces: {
>         home: "/"
>       }
>     }
> }
> {code}
> Query:
> {code}
> select * from dfs.`region.parquet`;
> {code}
> Failure
> {code}
> java.lang.NullPointerException
> at 
> org.apache.drill.exec.store.dfs.FileSystemSchemaFactory$FileSystemSchema.getTableNames(FileSystemSchemaFactory.java:109)
> at net.hydromatic.optiq.jdbc.OptiqSchema.<init>(OptiqSchema.java:68)
> at net.hydromatic.optiq.jdbc.OptiqSchema.add(OptiqSchema.java:185)
> at 
> net.hydromatic.optiq.jdbc.OptiqSchema$SchemaPlusImpl.add(OptiqSchema.java:339)
> at 
> org.apache.drill.exec.store.dfs.FileSystemSchemaFactory.registerSchemas(FileSystemSchemaFactory.java:57)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to