This is interesting, because I am definitely seeing three different types of 
values. See attached screenshot and link.




Link: https://gist.github.com/JensRantil/d162801812ca48ad3f75

Image/screenshot: https://www.dropbox.com/s/vczzgrf0vk9adzk/cqlsh-int.png?dl=0


Cheers,

Jens


———
Jens Rantil
Backend engineer
Tink AB

Email: jens.ran...@tink.se
Phone: +46 708 84 18 32
Web: www.tink.se

Facebook Linkedin Twitter

On Thu, Oct 23, 2014 at 4:40 PM, Adam Holmberg <adam.holmb...@datastax.com>
wrote:

> 'null' is how cqlsh displays empty cells:
> https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/formatting.py#L47-L58
> On Thu, Oct 23, 2014 at 9:36 AM, DuyHai Doan <doanduy...@gmail.com> wrote:
>> Hello Jens
>>
>> What do you mean by "cqlsh explicitely writes 'null' in those cells" ?
>> Are you seing textual value "null" written in the cells ?
>>
>>
>>  Null in CQL can have 2 meanings:
>>
>> 1. the column did not exist (or more precisely, has never been created)
>> 2. the column did exist sometimes in the past (has been created) but then
>> has been deleted (tombstones)
>>
>>
>>
>> On Thu, Oct 23, 2014 at 8:37 AM, Jens Rantil <jens.ran...@tink.se> wrote:
>>
>>>  Hi,
>>>
>>> Not sure this is a Datastax specific question to be asked elsewhere. In
>>> that case, let me know.
>>>
>>> Anyway, I have populated a Cassandra table from DSE Hive. When I fire up
>>> cqlsh and execute a SELECT against the table I have columns of INT type
>>> that are empty. At first I thought these were null, but it turns out that
>>> cqlsh explicitly writes "null" in those cells. What can I make of this? A
>>> bug in Hive serialization to Cassandra?
>>>
>>> Cheers,
>>> Jens
>>>
>>> —
>>> Sent from Mailbox <https://www.dropbox.com/mailbox>
>>>
>>
>>

Reply via email to