cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Sorokoumov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-15663) DESCRIBE KEYSPACE does not properly quote table names
Date Thu, 08 Jul 2021 11:18:00 GMT

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

Aleksandr Sorokoumov commented on CASSANDRA-15663:
--------------------------------------------------

I love the idea to override the set of keywords in the driver! I created a branch that ports
CASSANDRA-16659 on top of Andres's changes: [15663-3.11-take-2|https://github.com/apache/cassandra/compare/trunk...Gerrrr:15663-3.11-take-2]
([Circle CI|https://app.circleci.com/pipelines/github/Gerrrr/cassandra/180/workflows/44e38774-1c16-40ef-9f87-d5a1d437d6ed]).

Here is a separate branch that ports this to 4.0.0: [15663-4.0|https://github.com/apache/cassandra/compare/trunk...Gerrrr:15663-4.0?expand=1]
([CircleCI|https://app.circleci.com/pipelines/github/Gerrrr/cassandra/181/workflows/e686981d-d02d-48b9-a579-a46105ac3960]).

> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message