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 BC6CE10CAA for ; Fri, 13 Dec 2013 17:45:07 +0000 (UTC) Received: (qmail 71448 invoked by uid 500); 13 Dec 2013 17:45:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 71427 invoked by uid 500); 13 Dec 2013 17:45:07 -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 71418 invoked by uid 99); 13 Dec 2013 17:45:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Dec 2013 17:45:07 +0000 Date: Fri, 13 Dec 2013 17:45:07 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6309) Pig CqlStorage generates ERROR 1108: Duplicate schema alias 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-6309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams updated CASSANDRA-6309: ---------------------------------------- Fix Version/s: 2.0.4 1.2.13 > Pig CqlStorage generates ERROR 1108: Duplicate schema alias > ------------------------------------------------------------ > > Key: CASSANDRA-6309 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6309 > Project: Cassandra > Issue Type: Bug > Components: Hadoop > Reporter: Thunder Stumpges > Assignee: Alex Liu > Fix For: 1.2.13, 2.0.4 > > Attachments: 6309-2.0.txt, 6309-fix-pig-test-compiling.txt, 6309-trunk-branch.txt, 6309-v2-2.0-branch.txt, 6309-v3.txt, LOCAL_ONE-write-for-all-strategies-v2.txt, LOCAL_ONE-write-for-all-strategies.txt > > > In Pig after loading a simple CQL3 table from Cassandra 2.0.1, and dumping contents, I receive: > Caused by: org.apache.pig.impl.plan.PlanValidationException: ERROR 1108: Duplicate schema alias: author in "cm" > cm = load 'cql://thunder_test/cassandra_messages' USING CqlStorage; > dump cm > ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias cm > ... > Caused by: org.apache.pig.impl.plan.PlanValidationException: ERROR 1108: Duplicate schema alias: author in "cm" > at org.apache.pig.newplan.logical.visitor.SchemaAliasVisitor.validate(SchemaAliasVisitor.java:75) > running 'describe cm' gives: > cm: {message_id: chararray,author: chararray,author: chararray,body: chararray,message_id: chararray} > The original table schema in Cassandra is: > CREATE TABLE cassandra_messages ( > message_id text, > author text, > body text, > PRIMARY KEY (message_id, author) > ) WITH > bloom_filter_fp_chance=0.010000 AND > caching='KEYS_ONLY' AND > comment='null' AND > dclocal_read_repair_chance=0.000000 AND > gc_grace_seconds=864000 AND > index_interval=128 AND > read_repair_chance=0.100000 AND > replicate_on_write='true' AND > populate_io_cache_on_flush='false' AND > default_time_to_live=0 AND > speculative_retry='NONE' AND > memtable_flush_period_in_ms=0 AND > compaction={'class': 'SizeTieredCompactionStrategy'} AND > compression={'sstable_compression': 'LZ4Compressor'}; > it appears that the code in CqlStorage.getColumnMetadata at ~line 478 takes the "keys" columns (in my case, message_id and author) and appends the columns from getColumnMeta (which has all three columns). Thus the keys columns are duplicated. -- This message was sent by Atlassian JIRA (v6.1.4#6159)