Nadav Har'El created CASSANDRA-21248:
----------------------------------------

             Summary: NullPointerException in select writetime(m[null])
                 Key: CASSANDRA-21248
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21248
             Project: Apache Cassandra
          Issue Type: Bug
            Reporter: Nadav Har'El


Hi tried (on Cassandra 5.0.6) the statement
 
{color:#a31515}SELECT WRITETIME(m[null]) FROM tbl{color}{color:#a31515} WHERE 
p='something'{color}
 

And got the error (in this case, I used the Cassandra Python driver):

{{E   cassandra.cluster.NoHostAvailable: ('Unable to complete the operation 
against any hosts', \{<Host: 127.14.107.38:9042 datacenter1>: <Error from 
server: code=0000 [Server error] message="java.lang.NullPointerException">})}}

What I really expected is to get just "null" as a response (this is typical SQL 
behavior of nulls - they are "infectious" and an operation on a null returns a 
null), but I guess another reasonable behavior would be to get some sort of 
clean InvalidRequestException. Getting a "NoHostAvailable" mentioning 
java.lang.NullPointerException is clearly not the right thing.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to