From 5f66d48b38d32d3768c78f16753ed4f2095bbede Mon Sep 17 00:00:00 2001 From: Carl Yeksigian Date: Wed, 18 Jan 2017 15:56:35 +0100 Subject: [PATCH] Remove alter type support patch by Carl Yeksigian; reviewed by Benjamin Lerer for CASSANDRA-12443 --- CHANGES.txt | 1 + NEWS.txt | 3 + doc/cql3/CQL.textile | 14 +--- pylib/cqlshlib/cql3handling.py | 6 +- .../apache/cassandra/config/CFMetaData.java | 27 ++----- .../cql3/statements/AlterTableStatement.java | 80 +------------------ .../cql3/statements/AlterTypeStatement.java | 36 ++------- .../apache/cassandra/cql3/ViewSchemaTest.java | 76 ------------------ .../entities/FrozenCollectionsTest.java | 42 ---------- .../cql3/validation/entities/TypeTest.java | 32 -------- .../validation/entities/UserTypesTest.java | 1 - .../cql3/validation/operations/AlterTest.java | 54 ------------- .../validation/operations/UpdateTest.java | 32 -------- 13 files changed, 23 insertions(+), 381 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e4afc3c239..5a632136b5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 3.0.11 + * Remove ALTER TYPE support (CASSANDRA-12443) * Fix assertion for certain legacy range tombstone pattern (CASSANDRA-12203) * Set javac encoding to utf-8 (CASSANDRA-11077) * Replace empty strings with null values if they cannot be converted (CASSANDRA-12794) diff --git a/NEWS.txt b/NEWS.txt index 3b8a33382a..4505574297 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -18,6 +18,9 @@ using the provided 'sstableupgrade' tool. Upgrading --------- + - Support for alter types of already defined tables and of UDTs fields has been disabled. + If it is necessary to return a different type, please use casting instead. See + CASSANDRA-12443 for more details. - Nothing specific to this release, but please see previous versions upgrading section, especially if you are upgrading from 2.2. - Specifying the default_time_to_live option when creating or altering a diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile index 2544878af0..1efa6d467a 100644 --- a/doc/cql3/CQL.textile +++ b/doc/cql3/CQL.textile @@ -397,8 +397,7 @@ __Syntax:__ bc(syntax).. ::= ALTER (TABLE | COLUMNFAMILY) - ::= ALTER TYPE - | ADD + ::= ADD | DROP | WITH