[ 
https://issues.apache.org/jira/browse/CASSANDRA-19019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17785316#comment-17785316
 ] 

Stefan Miklosovic commented on CASSANDRA-19019:
-----------------------------------------------

This does not reproduce on 4.1.2

{code}
cqlsh> CREATE KEYSPACE  "Quoted_KS" WITH replication = {'class': 
'SimpleStrategy', 'replication_factor': 1};
cqlsh> CREATE TYPE "Quoted_KS"."udt_@@@" (a int, "field_!!!" text);
cqlsh> DESC TYPE "Quoted_KS"."udt_@@@";

CREATE TYPE "Quoted_KS"."udt_@@@" (
    a int,
    "field_!!!" text
);

{code}

> DESC TYPE forgets to quote UDT's field names
> --------------------------------------------
>
>                 Key: CASSANDRA-19019
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19019
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Nadav Har'El
>            Priority: Normal
>
> If I create a type with
> *CREATE TYPE "Quoted_KS"."udt_@@@" (a int, "field_!!!" text)*
> and then run DESC TYPE "Quoted_KS"."udt_@@@" I get:
> *CREATE TYPE "Quoted_KS"."udt_@@@" (a int, field_!!! text)*
> Note the missing quotes around the non-alphanumeric field name, which does 
> need quoting. If I'll try to run this command, it won't work.
> Tested on Cassandra 4.1.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to