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 0C79A17710 for ; Thu, 23 Apr 2015 19:06:39 +0000 (UTC) Received: (qmail 29488 invoked by uid 500); 23 Apr 2015 19:06:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29440 invoked by uid 500); 23 Apr 2015 19:06:38 -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 29427 invoked by uid 99); 23 Apr 2015 19:06:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 19:06:38 +0000 Date: Thu, 23 Apr 2015 19:06:38 +0000 (UTC) From: "Frens Jan Rumph (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8940) Inconsistent select count and select distinct 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-8940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509603#comment-14509603 ] Frens Jan Rumph commented on CASSANDRA-8940: -------------------------------------------- Great. If there's anything I can help with, let me know. > Inconsistent select count and select distinct > --------------------------------------------- > > Key: CASSANDRA-8940 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8940 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: 2.1.2 > Reporter: Frens Jan Rumph > Assignee: Benjamin Lerer > Attachments: 7b74fb00-e935-11e4-b10c-317579db7eb4.csv, 8d5899d0-e935-11e4-847b-2d06da75a6cd.csv, Vagrantfile, install_cassandra.sh, setup_hosts.sh > > > When performing {{select count( * ) from ...}} I expect the results to be consistent over multiple query executions if the table at hand is not written to / deleted from in the mean time. However, in my set-up it is not. The counts returned vary considerable (several percent). The same holds for {{select distinct partition-key-columns from ...}}. > I have a table in a keyspace with replication_factor = 1 which is something like: > {code} > CREATE TABLE tbl ( > id frozen, > bucket bigint, > offset int, > value double, > PRIMARY KEY ((id, bucket), offset) > ) > {code} > The frozen udt is: > {code} > CREATE TYPE id_type ( > tags map > ); > {code} > The table contains around 35k rows (I'm not trying to be funny here ...). The consistency level for the queries was ONE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)