You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2016/03/22 13:54:25 UTC
[jira] [Commented] (CASSANDRA-11400) wrong error message for
unknown collection element types
[ https://issues.apache.org/jira/browse/CASSANDRA-11400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206291#comment-15206291 ]
Robert Stupp commented on CASSANDRA-11400:
------------------------------------------
OUCH!
Got my mistake. {{string}} is not a valid data type (used that as the map key).
But still, the error message is misleading.
So - it's just about the error message.
> wrong error message for unknown collection element types
> --------------------------------------------------------
>
> Key: CASSANDRA-11400
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11400
> Project: Cassandra
> Issue Type: Bug
> Reporter: Robert Stupp
> Priority: Minor
>
> The following statements fail:
> {code}
> CREATE TYPE delivery_address (
> street text,
> zip text,
> city text);
> CREATE TABLE customers (
> username text PRIMARY KEY,
> password_hash text,
> first_name text,
> last_name text,
> email text,
> delivery_addrs map < string, frozen<delivery_address> >
> );
> {code}
> with
> {code}
> InvalidRequest: code=2200 [Invalid query] message="Non-frozen collections are not allowed inside collections: map<string, delivery_address>"
> {code}
> But works fine for {{set<frozen<delivery_address>>}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)