Cassandra null value is presented as zero for numeric types in result view
See original GitHub issueThe result view of DBeaver EE should differentiate between 0
and null
of numeric types in cassandra. Both values are represented by 0
.
Example:
CREATE KEYSPACE IF NOT EXISTS zeronull
WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }
USE zeronull
CREATE TABLE test (
id int,
a int,
b float,
c double,
PRIMARY KEY (id)
)
truncate test
INSERT INTO test (id, a, b, c) values (0, null, 0, 1.0)
INSERT INTO test (id, a, b, c) values (1, 0, null, 2.0)
INSERT INTO test (id, a, b, c) values (2, null, 0, null)
select * from test
DBeaver shows:
id |a |b |c |
---|--|--|--|
1 |0 |0 |2 |
0 |0 |0 |1 |
2 |0 |0 |0 |
cqlsh shows:
id | a | b | c
----+------+------+------
1 | 0 | null | 2
0 | null | 0 | 1
2 | null | 0 | null
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cassandra: Searching for NULL values - cql - Stack Overflow
I updated my data model in cassandra as follows so that rssi1-rssi5 are now VARCHAR types. CREATE TABLE has.macrecord ( macadd text PRIMARY...
Read more >Data Types | Apache Cassandra Documentation
CQL is a typed language and supports a rich set of data types, including native ... and that first increment/decrement is made as...
Read more >MySQL IS NULL & IS NOT NULL Tutorial with EXAMPLES
The tutorial comprises of brief explanation on NULL value, NOT NULL value, NULL keywords and comparison of NULL values.
Read more >How to replace NULL values with Default in Hive
Use nvl() function in Hive to replace all NULL values of a column with a default value, In this article, I will explain...
Read more >Codec options :: DataStax Bulk Loader for Apache Cassandra
The value's precision is too large for the target CQL type. For example, trying to insert 0.1234567890123456789 into a CQL double results in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for report
@costinpapuc thanks for the bug report. This bug will be fixed in the next version (5.3 hotfix actually)