When I use jdbc and phoenix to query data from hbase,the "resultset.first()" throw exception -


the code this:

screenshot 1

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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -