You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Venki Korukanti (JIRA)" <ji...@apache.org> on 2014/04/16 18:42:14 UTC

[jira] [Created] (DRILL-533) Queries fail with NPE if the dfs schema has no default workspace but has non-default workspace

Venki Korukanti created DRILL-533:
-------------------------------------

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