cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
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
             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:

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

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

This message was sent by Atlassian JIRA

View raw message