cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-9016) QueryHandler interface misses parseStatement()
Date Mon, 23 Mar 2015 09:18:10 GMT
Robert Stupp created CASSANDRA-9016:
---------------------------------------

             Summary: QueryHandler interface misses parseStatement()
                 Key: CASSANDRA-9016
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9016
             Project: Cassandra
          Issue Type: Wish
            Reporter: Robert Stupp
            Priority: Minor


{{QueryHandler}} is missing the method {{parseStatement()}} as implemented by {{QueryProcessor}}.
This is a bit strange when looking into the code in {{BatchMessage.execute}} which uses {{QueryProcessor.parseStatement}}
for {{String}}s but {{QueryHandler}} for prepared statements:

{code}
                if (query instanceof String)
                {
                    p = QueryProcessor.parseStatement((String)query, state);
                }
                else
                {
                    p = handler.getPrepared((MD5Digest)query);
                    if (p == null)
                        throw new PreparedQueryNotFoundException((MD5Digest)query);
                }
{code}

Note: this is not an issue right now, more a note that handling in {{BatchMessage}} is different.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message