[ https://issues.apache.org/jira/browse/CASSANDRA-17918 ]
Bernardo Botella Corbi deleted comment on CASSANDRA-17918: ---------------------------------------------------- was (Author: JIRAUSER285406): trunk: (Java11) https://app.circleci.com/pipelines/github/bbotella/cassandra/64/workflows/15069764-2d22-4283-bbf6-d7b7126070d5/jobs/64 (Java8) https://app.circleci.com/pipelines/github/bbotella/cassandra/64/workflows/f1f20d80-2715-4823-bf8c-86ce12b00d12/jobs/66 4.0: (Java11) https://app.circleci.com/pipelines/github/bbotella/cassandra/65/workflows/5b39dc4b-aab5-48f6-97a8-799cb1f03179/jobs/65 (Java8) https://app.circleci.com/pipelines/github/bbotella/cassandra/65/workflows/522e96af-b49e-4d7c-a5b6-23581751060e/jobs/67 4.1: (Java11) https://app.circleci.com/pipelines/github/bbotella/cassandra/66/workflows/c825e328-9414-401f-95e9-b56a48f87fed/jobs/68 (Java8) https://app.circleci.com/pipelines/github/bbotella/cassandra/66/workflows/7fd6b4b4-c0bc-4cb2-8882-2e9f150d27a7/jobs/69 > DESCRIBE output does not quote column names using reserved keywords > ------------------------------------------------------------------- > > Key: CASSANDRA-17918 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17918 > Project: Cassandra > Issue Type: Bug > Components: Legacy/CQL > Reporter: Yifan Cai > Assignee: Bernardo Botella Corbi > Priority: Normal > Fix For: 4.0.x, 4.1.x > > > The DESCRIBE output of the column names that using reserved keywords are not > quoted for UDTs. The following test reproduces. Reading the code, it looks > like that the such columns names are not quoted in materialized view, UDF and > user defined aggregation. > The impact of the bug is that schema described cannot be imported due to the > usage of reserved keywords as column names. > > {code:java} > @Test > public void testUsingReservedInCreateType() throws Throwable > { > String type = createType(KEYSPACE_PER_TEST, "CREATE TYPE %s > (\"token\" text, \"desc\" text);"); > assertRowsNet(executeDescribeNet(KEYSPACE_PER_TEST, "DESCRIBE TYPE " + type), > row(KEYSPACE_PER_TEST, "type", type, "CREATE TYPE " + > KEYSPACE_PER_TEST + "." + type + " (\n" + > " \"token\" text,\n" + > " \"desc\" text\n" + > ");")); > } {code} > +Additional information for newcomers:+ > * Unit tests for DESCRIBE statements are in {{DescribeStatementTest}} > * The statement implementation is in {{DescribeStatement and fetch the > create statement from the different schema element using > SchemaElement.toCqlString}} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org