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

Sam Tunnicliffe resolved CASSANDRA-10390.
-----------------------------------------
    Resolution: Fixed

[~jhalliday] with CASSANDRA-10513, the bundled driver has been updated to a 
version including 
[PYTHON-413|https://datastax-oss.atlassian.net/browse/PYTHON-413] so unless you 
have any objections, I'll close this. I've opened a PR to add a dtest that 
verifies the behaviour 
[here|https://github.com/riptano/cassandra-dtest/pull/653].

> inconsistent quoted identifier handling in UDTs
> -----------------------------------------------
>
>                 Key: CASSANDRA-10390
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10390
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: 2.2.1
>            Reporter: Jonathan Halliday
>            Assignee: Sam Tunnicliffe
>             Fix For: 2.2.x
>
>
> > create keyspace test with replication = {'class': 'SimpleStrategy', 
> > 'replication_factor': 1 } ;
> > create type if not exists mytype ("my.field" text);
> > desc keyspace; -- observe that mytype is listed
> > create table mytable (pk int primary key, myfield frozen<mytype>);
> > desc keyspace; -- observe that mytype is listed, but mytable is not.
> > select * from mytable;
> ValueError: Type names and field names can only contain alphanumeric 
> characters and underscores: 'my.field'
> create table myothertable (pk int primary key, "my.field" text);
> select * from myothertable; -- valid
> huh? It's valid to create a field of a table, or a field of a type, with a 
> quoted name containing non-alpha chars, but it's not valid to use a such a 
> type in a table?  I can just about live with that though it seems 
> unnecessarily restrictive, but allowing creation of such a table and then 
> making it invisible/unusable definitely seems wrong.



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

Reply via email to