phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: Database Metadata; getTables; NPE
Date Wed, 12 Mar 2014 22:48:53 GMT
Hi Stan,
Definitely a bug. Would you mind filing a JIRA for us? To work around this
(and assuming you want to get back a list of all tables), use null for all
the args.
Thanks,
James


On Wed, Mar 12, 2014 at 3:39 PM, Stan Campbell <stan.campbell3@gmail.com>wrote:

> Doing
>
> val rs = meta.getTables(null, null, "%", null)
>
> results in the following (see below).  Looks like the ResultTuple.result
> field is null in the return, so it gives a NPE when the REPL tries to print
> it out.
>
> Is it expected that database metadata's getTables should behave properly?
>
> 2014-03-12 15:36:20 DEBUG RpcClient:1070 - IPC Client (1769005174)
> connection to Fenrir/127.0.1.1:60020 from scampbell: got response header
> call_id: 10, totalSize: 1758 bytes
>
> java.lang.NullPointerException
>
> at
> org.apache.phoenix.schema.tuple.ResultTuple.toString(ResultTuple.java:64)
>
> at java.lang.String.valueOf(String.java:2854)
>
> at java.lang.StringBuilder.append(StringBuilder.java:128)
>
> at
> org.apache.phoenix.jdbc.PhoenixResultSet.toString(PhoenixResultSet.java:1236)
>
>  at
> scala.runtime.ScalaRunTime$.scala$runtime$ScalaRunTime$$inner$1(ScalaRunTime.scala:324)
>
> at scala.runtime.ScalaRunTime$.stringOf(ScalaRunTime.scala:329)
>
>  at scala.runtime.ScalaRunTime$.replStringOf(ScalaRunTime.scala:337)
>
> at .<init>(<console>:10)
>
> at .<clinit>(<console>)
>
>  at $print(<console>)
>
>
>
>

Mime
View raw message