You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kmuthukk
changed the title
Add jdbc-driver to use in DataGrip for YCQL
[YCQL] Using DataGrip to get schema info results in - Object Not Found SELECT * FROM system.peers_v2
Mar 6, 2020
Summary:
Currently we send empty rows if we encounter system tables that are not
present. However, the newer vanilla cassandra drivers {4.x} expect a particular error in
case of system.peers_v2 in order to fallback to querying the system.peers table which
Yugabyte YCQL actually implements.
This change makes sure that we send this required error back to the
client, so that Yugabyte YCQL works well these newer drivers.
Test Plan:
Tested using the cqlsh tool to make sure that the proper error is returned.
Created a sample java app that queries the database using the 4.5.1 cassandra driver.
With the old code, running the sample app causes:
f4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" com.datastax.oss.driver.api.core.DriverExecutionException
at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:152)
at com.datastax.oss.driver.api.core.session.SessionBuilder.build(SessionBuilder.java:612)
at test1.CassTest1.main(CassTest1.java:27)
Caused by: com.datastax.oss.driver.internal.core.adminrequest.UnexpectedResponseException: query 'SELECT * FROM system.peers_v2' got unexpected response VOID
at com.datastax.oss.driver.internal.core.adminrequest.AdminRequestHandler.onResponse(AdminRequestHandler.java:176)
at com.datastax.oss.driver.internal.core.channel.InFlightHandler.channelRead(InFlightHandler.java:255)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
....
With the new code the query works propely.
Reviewers: mihnea
Reviewed By: mihnea
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D8172
Hi. I like to use DataGrip and want to use it with YCQL. Now I get error:
The text was updated successfully, but these errors were encountered: