× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2016-06-28T21:19:26Z  · tomconrad last modified 2018-03-29T14:15:14Z

Cassandra 3.x -> NPE on Grid results on tuple values


PM
Priority Low
Complexity Unknown
Component DB - Cassandra
Version Future
Version: 17.0.6-2
Build #: 50254
Build Date: 2016-Jun-27 12:43:27 PM
 
Operating Environment: Mac OS X (10.8.5, x86_64) / UTF-8 / en / US / Oracle Corporation 1.8.0_40-b27
Memory: Max=704,643,072;  Total=668,991,488;  Free=528,706,728;  CPUs=8

 

Cassandra 3.x -> Grid results on tuple values

1.  Navigate to Cassandra Keyspaces test in AWS where the tables are already created and execute the SELECT queries given here
or
2. You can create the tables, insert and select SQL which is given below
3. Executing the select you can see that Cassandra returns, where as ADS returns a Null Pointer Exception under the Console Tab in View log and values are as shown in below tables
 
Cassandra
 
k | v
---+-----------------
 0 | (3, 'bar', 2.1)
 
Aqua Data Studio v17 returns below values
 k     v                       
 ----  ----------------------- 
 0     bar@ff 
 
 k     t                                               
 ----  ----------------------------------------------- 
 0     java.nio.HeapByteBuffer[pos=98 lim=129 cap=489] 
 
SQL for the tables
 
// Table 1
CREATE TABLE collect_things (
  k int PRIMARY KEY,
  v tuple<int, text, float>
)
go
INSERT INTO collect_things (k, v) VALUES(0, (3, 'bar', 2.1))
go
 
// Table 2
CREATE TABLE nested (k int PRIMARY KEY, t tuple <int, tuple<text, double>>)
go
INSERT INTO nested (k, t) VALUES (0, (3, ('foo', 3.4)))
go
 
// select
SELECT * FROM collect_things
go
SELECT * FROM nested
go

 

Go to View Log and Console Tab and you get below exception

java.lang.NullPointerException
at org.apache.cassandra.cql.jdbc.CassandraResultSet$CResultSetMetaData.getColumnType(Unknown Source)
at \\.\\.\\हिñçêČάй語简�?한\\.K⡗ꇁꀀᛞ5.a(Unknown Source)
at \\.\\.\\हिñçêČάй語简�?한\\.K⡗ꇁꀀᛞ5.a(Unknown Source)
at com.aquafold.datastudio.queryanalyzer.Qꅧꁂꑗꇨcase.run(Unknown Source)
2 attachments

Issue #14522

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017