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 EA78917602 for ; Fri, 11 Sep 2015 09:28:45 +0000 (UTC) Received: (qmail 74023 invoked by uid 500); 11 Sep 2015 09:28:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 73988 invoked by uid 500); 11 Sep 2015 09:28:45 -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 73977 invoked by uid 99); 11 Sep 2015 09:28:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 09:28:45 +0000 Date: Fri, 11 Sep 2015 09:28:45 +0000 (UTC) From: "Benjamin Lerer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10296) Aggregates aren't resolved properly for reversed types 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-10296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740467#comment-14740467 ] Benjamin Lerer commented on CASSANDRA-10296: -------------------------------------------- +1 I just added an extra unit test to check that everything was fine when the result of a function has to be assigned to a reversed type. > Aggregates aren't resolved properly for reversed types > ------------------------------------------------------ > > Key: CASSANDRA-10296 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10296 > Project: Cassandra > Issue Type: Bug > Reporter: Carl Yeksigian > Assignee: Carl Yeksigian > Fix For: 2.2.x > > > When using an aggregate, it won't resolve if the column is reversed. > {code} > CREATE TABLE t1 (pk int, ck int, PRIMARY KEY (pk, ck)) WITH CLUSTERING ORDER BY (ck DESC) > SELECT min(ck) FROM t1 WHERE pk = 1 > {code} > results in the error: > {noformat} > Ambiguous call to function min (can be matched by following signatures: system.min : (varint) -> varint, system.min : (int) -> int, system.min : (blob) -> blob): use type casts to disambiguate > {noformat} > For aggregates, we should be treating a reversed type the same as we do a normal type. -- This message was sent by Atlassian JIRA (v6.3.4#6332)