[
https://issues.apache.org/jira/browse/DRILL-533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979871#comment-13979871
]
ASF GitHub Bot commented on DRILL-533:
--------------------------------------
Github user vkorukanti closed the pull request at:
https://github.com/apache/incubator-drill/pull/51
> 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)