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 D848010C95 for ; Wed, 31 Dec 2014 23:14:13 +0000 (UTC) Received: (qmail 70124 invoked by uid 500); 31 Dec 2014 23:14:14 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 70086 invoked by uid 500); 31 Dec 2014 23:14: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 70074 invoked by uid 99); 31 Dec 2014 23:14:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2014 23:14:14 +0000 Date: Wed, 31 Dec 2014 23:14:14 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7910) wildcard prepared statements are incorrect after a column is added to the table 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-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-7910: ----------------------------------- Attachment: 7910-trunk.txt 7910-2.1.txt The attached patches invalidate any prepared statements that deal with the affected table whenever columns are added, dropped, or altered. The 2.1 patch also backports a minor refactor of IMigrationListener from trunk. I've pushed a [dtest branch|https://github.com/thobbs/cassandra-dtest/tree/CASSANDRA-7910] as well. > wildcard prepared statements are incorrect after a column is added to the table > ------------------------------------------------------------------------------- > > Key: CASSANDRA-7910 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7910 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Oded Peer > Assignee: Tyler Hobbs > Priority: Minor > Fix For: 2.1.3 > > Attachments: 7910-2.1.txt, 7910-trunk.txt, PreparedStatementAfterAddColumnTest.java > > > 1. Prepare a statement with a wildcard in the select clause. > 2. Alter the table - add a column > 3. execute the prepared statement > Expected result - get all the columns including the new column > Actual result - get the columns except the new column > Attached a test using cassandra-unit -- This message was sent by Atlassian JIRA (v6.3.4#6332)