Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D01D3200D35 for ; Tue, 7 Nov 2017 14:11:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CE8CD160BED; Tue, 7 Nov 2017 13:11:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C7601609C8 for ; Tue, 7 Nov 2017 14:11:14 +0100 (CET) Received: (qmail 90606 invoked by uid 500); 7 Nov 2017 13:11:14 -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 90586 invoked by uid 99); 7 Nov 2017 13:11:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 13:11:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4BD2BC06B2 for ; Tue, 7 Nov 2017 13:11:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id J5a6VvTdPFyz for ; Tue, 7 Nov 2017 13:11:12 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4791B60D12 for ; Tue, 7 Nov 2017 13:11:11 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 87FF3E25A3 for ; Tue, 7 Nov 2017 13:11:08 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2A93F241CA for ; Tue, 7 Nov 2017 13:11:06 +0000 (UTC) Date: Tue, 7 Nov 2017 13:11:06 +0000 (UTC) From: "Alex Petrov (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (CASSANDRA-10857) Allow dropping COMPACT STORAGE flag from tables in 3.X MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Nov 2017 13:11:16 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-10857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Petrov updated CASSANDRA-10857: ------------------------------------ Comment: was deleted (was: Github user ptnapoleon commented on a diff in the pull request: https://github.com/apache/cassandra-dtest/pull/9#discussion_r149296242 --- Diff: cql_tests.py --- @@ -698,6 +719,54 @@ def many_columns_test(self): ",".join(map(lambda i: "c_{}".format(i), range(width))) + " FROM very_wide_table", [[i for i in range(width)]]) + @since("3.11", max_version="3.X") + def drop_compact_storage_flag_test(self): + """ + Test for CASSANDRA-10857, verifying the schema change + distribution across the other nodes. + + """ + + cluster = self.cluster + + cluster.populate(3).start() + node1 = cluster.nodelist()[0] + node2 = cluster.nodelist()[1] + node3 = cluster.nodelist()[2] + time.sleep(0.2) + + session1 = self.patient_cql_connection(node1) + session2 = self.patient_cql_connection(node2) + session3 = self.patient_cql_connection(node3) + self.create_ks(session1, 'ks', 3) + sessions = [session1, session2, session3] + + for session in sessions: + session.set_keyspace('ks') + + session1.execute(""" + CREATE TABLE test_drop_compact_storage (k int PRIMARY KEY, s1 int) WITH COMPACT STORAGE; + """) + time.sleep(1) --- End diff -- No need for this sleep. ) > 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 > Priority: Blocker > Labels: client-impacting > Fix For: 4.0, 3.0.x, 3.11.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.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org