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/05/12 11:15:15 UTC
[jira] [Resolved] (DRILL-533) Queries fail with NPE if the dfs
schema has no default workspace but has non-default workspace
[ https://issues.apache.org/jira/browse/DRILL-533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Venki Korukanti resolved DRILL-533.
-----------------------------------
Resolution: Fixed
Fixed in 7a4fee42406516e729b9bdae31945cec4858a332
> 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)