cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishan Karunaratne (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-10715) Filtering on NULL returns ReadFailure exception
Date Mon, 16 Nov 2015 21:36:10 GMT
Kishan Karunaratne created CASSANDRA-10715:

             Summary: Filtering on NULL returns ReadFailure exception
                 Key: CASSANDRA-10715
             Project: Cassandra
          Issue Type: Bug
         Environment: C* 3.0.0 | cqlsh | C# driver 3.0.0beta2
            Reporter: Kishan Karunaratne

This is an issue I first noticed through the C# driver, but I was able to repro on cqlsh,
leading me to believe this is a Cassandra bug.

Given the following schema:
CREATE TABLE "TestKeySpace_4928dc892922"."coolMovies" (
    unique_movie_title text,
    movie_maker text,
    director text,
    list list<text>,
    "mainGuy" text,
    "yearMade" int,
    PRIMARY KEY ((unique_movie_title, movie_maker), director)

Executing a SELECT with FILTERING on a non-PK column, using a NULL as the argument:
SELECT "mainGuy", "movie_maker", "unique_movie_title", "list", "director", "yearMade" FROM
"coolMovies" WHERE "mainGuy" = null ALLOW FILTERING

returns a ReadFailure exception:
cqlsh:TestKeySpace_4c8f2cf8d5cc> SELECT "mainGuy", "movie_maker", "unique_movie_title",
"list", "director", "yearMade" FROM "coolMovies" WHERE "mainGuy" = null ALLOW FILTERING;
←[0;1;31mTraceback (most recent call last):
  File "C:\Users\Kishan\.ccm\repository\3.0.0\bin\\", line 1216, in perform_simple_statement
    result = future.result()
  File "C:\Users\Kishan\.ccm\repository\3.0.0\bin\..\lib\\cassandra-driver-3.0.0a3.post0-3f15725\cassandra\",
line 3118, in result
    raise self._final_exception
ReadFailure: code=1300 [Replica(s) failed to execute read] message="Operation failed - received
0 responses and 1 failures" info={'failures': 1, 'received_responses': 0, 'required_responses':
1, 'cons
istency': 'ONE'}

In C* < 3.0.0 (such as 2.2.3), this same query correctly returns:
cqlsh:TestKeySpace_3231cd551e49> SELECT "mainGuy", "movie_maker", "unique_movie_title",
"list", "director", "yearMade" FROM "coolMovies" WHERE "mainGuy" = null ALLOW FILTERING;
←[0;1;31mInvalidRequest: code=2200 [Invalid query] message="Unsupported null value for indexed
column mainGuy"←[0m

This message was sent by Atlassian JIRA

View raw message