Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C9A79BB4 for ; Sun, 8 Apr 2012 00:49:05 +0000 (UTC) Received: (qmail 43494 invoked by uid 500); 8 Apr 2012 00:49:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 43467 invoked by uid 500); 8 Apr 2012 00:49:02 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 43459 invoked by uid 99); 8 Apr 2012 00:49:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 00:49:02 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of potekhin@bnl.gov designates 130.199.3.132 as permitted sender) Received: from [130.199.3.132] (HELO smtpgw.bnl.gov) (130.199.3.132) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 00:48:54 +0000 X-BNL-policy-q: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4HAKbfgE+CxzYH/2dsb2JhbABFgxyCSrAigxuBB4IKAQUjFUARJQIFFgsCAgkDAgECAUUTCAEBiAqnQ4QCjgeBL4wHggyBGASbXopEgwOBOhc X-IronPort-AV: E=Sophos;i="4.75,388,1330923600"; d="scan'208";a="176624084" Received: from rcf.rhic.bnl.gov ([130.199.54.7]) by smtpgw.sec.bnl.local with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Apr 2012 20:48:32 -0400 Received: from [192.168.0.196] (ool-44c3ab4d.dyn.optonline.net [68.195.171.77]) (authenticated bits=0) by rcf.rhic.bnl.gov (8.13.8/8.13.8) with ESMTP id q380mVJv021357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 7 Apr 2012 20:48:32 -0400 Message-ID: <4F80E05A.3030903@bnl.gov> Date: Sat, 07 Apr 2012 20:48:26 -0400 From: Maxim Potekhin User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: a very simple indexing question (strange thing seen in CLI) References: <20111109204658.969BA494@athena.apache.org> <4EBAEB6C.9080807@morningstar.com> In-Reply-To: <4EBAEB6C.9080807@morningstar.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Greetings, Cassandra 0.8.8 is used. I'm trying to create an additional CF which is trivial in all respects. Just ascii columns and a few indexes. This is how I add an index: update column family files with column_metadata = [{column_name : '1', validation_class : AsciiType, index_type : 0, index_name : 'pandaid'}]; When I do "show keyspaces", I see this: ColumnFamily: files Key Validation Class: org.apache.cassandra.db.marshal.BytesType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.BytesType Row cache size / save period in seconds: 0.0/0 Row Cache Provider: org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider Key cache size / save period in seconds: 200000.0/14400 Memtable thresholds: 2.2828125/1440/487 (millions of ops/minutes/MB) GC grace seconds: 864000 Compaction min/max thresholds: 4/32 Read repair chance: 1.0 Replicate on write: true Built indexes: [files.pandaid] Column Metadata: Column Name: (01) Validation Class: org.apache.cassandra.db.marshal.AsciiType Index Name: pandaid Index Type: KEYS First off, why do I see (01)? I have a similar CF where I just see "1". Before inserting the data, I did "assume" to ascii on the keys, comparator and validator. The index has been built. When I try to access the data via the index, I get this: [default@PANDA] get files where '1'='1460103677'; InvalidRequestException(why:No indexed columns present in index clause with operator EQ) What is happening? Sorry for the admittedly trivial question, obviously I'm stuck with something quite simple which I managed to do with zero effort in the past. Maxim