When I use jdbc and phoenix to query data from hbase,the "resultset.first()" throw exception -
the code this:
the exception this:
java.sql.sqlfeaturenotsupportedexception @ com.salesforce.phoenix.jdbc.phoenixresultset.first(phoenixresultset.java:173)
if recode code use next()
instead of first()
you'll fine:
while(resultset.next()) { //do resultset }
if you're looking why though... you'll have go , ask developers of jdbc driver. positioning inside resultset
requires scrollable resultset
, possible feature not there.
Comments
Post a Comment