cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lyuben Todorov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-5598) Need invalid exception when submitting a prepared statement with too many markers
Date Wed, 27 Nov 2013 17:39:51 GMT

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

Lyuben Todorov updated CASSANDRA-5598:
--------------------------------------

    Attachment: 5598-cassandra-2.0.patch

> Need invalid exception when submitting a prepared statement with too many markers
> ---------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5598
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5598
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2.4
>         Environment: [cqlsh 2.3.0 | Cassandra 1.2.4 | CQL spec 3.0.0 | Thrift protocol
19.35.0]
>            Reporter: Anne Sullivan
>            Assignee: Lyuben Todorov
>            Priority: Minor
>             Fix For: 2.0.4
>
>         Attachments: 5598-cassandra-2.0.patch
>
>
> Binary protocol uses a short value so this places a limit of 16K on the number of bound
variable, would be nice to see an InvalidException at prepared time if statement contains
more markers than supported (thank you to pcmanus pointing this out on IRC channel).  
> Currently, no error is given until you try to execute the query and get the following
(which is misleading because the bound # is much smaller than the limit):
> com.datastax.driver.core.exceptions.InvalidQueryException: there were 135000 markers(?)
in CQL but 3928 bound variables



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message