phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Campbell <stan.campbe...@gmail.com>
Subject Database Metadata; getTables; NPE
Date Wed, 12 Mar 2014 22:39:51 GMT
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