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 7D3C4200ACC for ; Mon, 2 May 2016 16:13:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7C2E91609B1; Mon, 2 May 2016 16:13:14 +0200 (CEST) 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 CC2A71609A6 for ; Mon, 2 May 2016 16:13:13 +0200 (CEST) Received: (qmail 92238 invoked by uid 500); 2 May 2016 14:13:13 -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 92222 invoked by uid 99); 2 May 2016 14:13:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2016 14:13:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D6F1D2C1F60 for ; Mon, 2 May 2016 14:13:12 +0000 (UTC) Date: Mon, 2 May 2016 14:13:12 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11602) Materialized View Doest Not Have Static Columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 02 May 2016 14:13:14 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266656#comment-15266656 ] Sylvain Lebresne commented on CASSANDRA-11602: ---------------------------------------------- Sure. We'll be eagerly waiting on your better and not fundamentally wrong design. In the meantime though, let's start by using this ticket to fix the validation. > Materialized View Doest Not Have Static Columns > ----------------------------------------------- > > Key: CASSANDRA-11602 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11602 > Project: Cassandra > Issue Type: Bug > Reporter: Ravishankar Rajendran > Assignee: Carl Yeksigian > Fix For: 3.0.x, 3.x > > > {quote} > CREATE TABLE "team" (teamname text, manager text, location text static, PRIMARY KEY ((teamname), manager)); > INSERT INTO team (teamname, manager, location) VALUES ('Red Bull1', 'Ricciardo11', 'Australian'); > INSERT INTO team (teamname, manager, location) VALUES ('Red Bull2', 'Ricciardo12', 'Australian'); > INSERT INTO team (teamname, manager, location) VALUES ('Red Bull2', 'Ricciardo13', 'Australian'); > select * From team; > CREATE MATERIALIZED VIEW IF NOT EXISTS "teamMV" AS SELECT "teamname", "manager", "location" FROM "team" WHERE "teamname" IS NOT NULL AND "manager" is NOT NULL AND "location" is NOT NULL PRIMARY KEY("manager", "teamname"); > select * from "teamMV"; > {quote} > The teamMV does not have "location" column. Static columns are not getting created in MV. -- This message was sent by Atlassian JIRA (v6.3.4#6332)