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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -