Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1286218BF0 for ; Wed, 23 Sep 2015 15:39:05 +0000 (UTC) Received: (qmail 56815 invoked by uid 500); 23 Sep 2015 15:39:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 56778 invoked by uid 500); 23 Sep 2015 15:39:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 56765 invoked by uid 99); 23 Sep 2015 15:39:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 15:39:04 +0000 Date: Wed, 23 Sep 2015 15:39:04 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10390) inconsistent quoted identifier handling in UDTs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Thompson updated CASSANDRA-10390: ---------------------------------------- Assignee: Benjamin Lerer > inconsistent quoted identifier handling in UDTs > ----------------------------------------------- > > Key: CASSANDRA-10390 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10390 > Project: Cassandra > Issue Type: Bug > Environment: 2.2.1 > Reporter: Jonathan Halliday > Assignee: Benjamin Lerer > 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); > > 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)