[ https://issues.apache.org/jira/browse/CASSANDRA-10857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338771#comment-15338771 ]
Alex Petrov commented on CASSANDRA-10857: ----------------------------------------- We could add some defaulting alias for the select queries, although I'm not sure if it's desired since it'll be special-casing. Might be better to wait until we have regular column renames and then just rename it. I've separated a commit that allows {{\"\"}} identifiers, disallowing it for MVs, UDTs, Fn names and arguments, table names. It's definitely not a good idea to allow that. This actually might be a good idea to allow empty identifiers through ANTLR and add user-friendly messages, as we currently have {{required (...)+ loop did not match anything at input}} error message on empty string identifier. > Allow dropping COMPACT STORAGE flag from tables in 3.X > ------------------------------------------------------ > > Key: CASSANDRA-10857 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10857 > Project: Cassandra > Issue Type: Improvement > Components: CQL, Distributed Metadata > Reporter: Aleksey Yeschenko > Assignee: Alex Petrov > Fix For: 3.x > > > Thrift allows users to define flexible mixed column families - where certain > columns would have explicitly pre-defined names, potentially non-default > validation types, and be indexed. > Example: > {code} > create column family foo > and default_validation_class = UTF8Type > and column_metadata = [ > {column_name: bar, validation_class: Int32Type, index_type: KEYS}, > {column_name: baz, validation_class: UUIDType, index_type: KEYS} > ]; > {code} > Columns named {{bar}} and {{baz}} will be validated as {{Int32Type}} and > {{UUIDType}}, respectively, and be indexed. Columns with any other name will > be validated by {{UTF8Type}} and will not be indexed. > With CASSANDRA-8099, {{bar}} and {{baz}} would be mapped to static columns > internally. However, being {{WITH COMPACT STORAGE}}, the table will only > expose {{bar}} and {{baz}} columns. Accessing any dynamic columns (any column > not named {{bar}} and {{baz}}) right now requires going through Thrift. > This is blocking Thrift -> CQL migration for users who have mixed > dynamic/static column families. That said, it *shouldn't* be hard to allow > users to drop the {{compact}} flag to expose the table as it is internally > now, and be able to access all columns. -- This message was sent by Atlassian JIRA (v6.3.4#6332)