You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/19 05:53:01 UTC

[jira] [Updated] (CASSANDRA-9016) QueryHandler interface misses parseStatement()

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

C. Scott Andreas updated CASSANDRA-9016:
----------------------------------------
    Component/s: Core

> QueryHandler interface misses parseStatement()
> ----------------------------------------------
>
>                 Key: CASSANDRA-9016
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9016
>             Project: Cassandra
>          Issue Type: Wish
>          Components: Core
>            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
(v7.6.3#76005)

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