[ 
https://issues.apache.org/jira/browse/CASSANDRA-8994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne resolved CASSANDRA-8994.
-----------------------------------------
    Resolution: Won't Fix

Closing as that was me nitpicking on code in the first place and it probably 
doesn't even apply anymore.

> Make keyspace handling in FunctionName less fragile
> ---------------------------------------------------
>
>                 Key: CASSANDRA-8994
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8994
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 4.x
>
>
> {{FunctionName}} keyspace field can be null because it can be omitted by the 
> user (in which case we search both the system keyspace and the one of the 
> statement). The handling of that is imo a tad fragile: the {{equals}} method 
> should typically probably complain if one of its operand has no keyspace 
> since in that case, we can't really properly answer. The code currently work 
> around that in {{Functions}} by avoiding {{equals}} when this matter but it 
> would still be pretty easy to get that wrong, especially since 
> {{FunctionName}} is used in maps.  For instance, you could argue that 
> {{Functions#find}} is broken if its argument has no keyspace (it happens to 
> be only use when that's not the case, but again, pretty easy to get wrong in 
> the future).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to