CQL: kann Nicht auf Null Prüfen, "Wo" - Klausel

Versuchen, wieder alle Zeilen, bei denen ein bestimmtes Feld null ist oder nicht null ist.

select * from ADDRESS where addr1 = null;  

oder

select * from ADDRESS where addr1 = 'NULL';  

addr1 kann eine Boolesche oder text-Feld.

Ich habe versucht != null, is null, <> null, und isnull(addr1, 'NULL')

aber ich bekomme

no viable alternative at input '='

oder

no index columns present in by-columns clause with "equals' operator"

Nutzung von Cassandra 1.1.1 & Java 1.7_05

InformationsquelleAutor Snake | 2012-08-03
Schreibe einen Kommentar