[
https://issues.apache.org/jira/browse/CASSANDRA-15663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17376134#comment-17376134
]
Ekaterina Dimitrova edited comment on CASSANDRA-15663 at 7/7/21, 12:54 AM:
---------------------------------------------------------------------------
Thanks for the ping [~adelapena]. I spent some time today on this to remind
myself of that issue.
Indeed, it seems autocomplete and maybe some other cases show quotes and the
fix we worked on in CASSANDRA-16659 is not full.
First I thought, I should just update the reserved keywords in the driver but
then I reminded myself of
[https://datastax-oss.atlassian.net/browse/PYTHON-1270] which was discussed
here and I confirmed that the reported non-keyword in CASSANDRA-16659 is
actually a keyword for DSE.
It seems CASSANDRA-16659 was not really a bug but improvement if I read
correctly PYTHON-1270.
So I guess we have two options for this case - either we keep CASSANDRA-16659
patch as partial improvement or we revert it. As far as I know from Adam, no
one planned to work on the driver improvement for now.
Probably we can document this detail in a way as a known behavior?
CC [~aboudreault] as I saw he was also updating the DSE cql keywords list so
probably there were already similar discussions and output he might be able to
share with us.
was (Author: e.dimitrova):
Thanks for the ping [~adelapena]. I spent some time today on this to remind
myself of that issue.
Indeed, it seems autocomplete and maybe some other cases show quotes and the
fix we worked on in CASSANDRA-16659 is not full.
First I thought, I should just update the reserved keywords in the driver but
then I reminded myself of
[https://datastax-oss.atlassian.net/browse/PYTHON-1270] which was discussed
here and I confirmed that the reported non-keyword in CASSANDRA-16659 is
actually a keyword for DSE.
It seems CASSANDRA-16659 was not really a bug but improvement if I read
correctly PYTHON-1270.
So I guess we have two options for this case - either we keep CASSANDRA-16659
patch as partial improvement or we revert it. As far as I know from Adam, no
one planned to work on the driver improvement for now.
Probably we can document this detail in a way as a known behavior?
CC [~aboudreault] as I saw he was also updating the DSE lists so probably there
were already similar discussions and output he might be able to share with us.
> DESCRIBE KEYSPACE does not properly quote table names
> -----------------------------------------------------
>
> Key: CASSANDRA-15663
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15663
> Project: Cassandra
> Issue Type: Bug
> Components: CQL/Syntax
> Reporter: Oskar Liljeblad
> Assignee: Aleksandr Sorokoumov
> Priority: Normal
> Labels: pull-request-available
> Fix For: 3.11.x
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> How to reproduce (3.11.6) - cqlsh:
> {code}
> CREATE KEYSPACE test1 WITH replication = \{'class': 'SimpleStrategy',
> 'replication_factor': '1'} AND durable_writes = true;
> CREATE TABLE test1."default" (id text PRIMARY KEY, data text, etag text);
> DESCRIBE KEYSPACE test1;
> {code}
> Output will be:
> {code}
> CREATE TABLE test1.default (
> id text PRIMARY KEY,
> data text,
> etag text
> ) WITH [..]
> {code}
> Output should be:
> {code}
> CREATE TABLE test1."default" (
> id text PRIMARY KEY,
> data text,
> etag text
> ) WITH [..]
> {code}
> If you try to run {{CREATE TABLE test1.default [..]}} you will get an error
> SyntaxException: line 1:19 no viable alternative at input 'default' (CREATE
> TABLE test1.[default]...)
> Oskar Liljeblad
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]