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 050422004A1 for ; Thu, 10 Aug 2017 03:48:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 035FB16A687; Thu, 10 Aug 2017 01:48:06 +0000 (UTC) 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 4873216A666 for ; Thu, 10 Aug 2017 03:48:05 +0200 (CEST) Received: (qmail 63987 invoked by uid 500); 10 Aug 2017 01:48:04 -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 63976 invoked by uid 99); 10 Aug 2017 01:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 01:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D25DFC0042 for ; Thu, 10 Aug 2017 01:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wV389CB73G5C for ; Thu, 10 Aug 2017 01:48:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A9F7C5F56A for ; Thu, 10 Aug 2017 01:48:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9BA2CE093C for ; Thu, 10 Aug 2017 01:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1CFFC24161 for ; Thu, 10 Aug 2017 01:48:00 +0000 (UTC) Date: Thu, 10 Aug 2017 01:48:00 +0000 (UTC) From: "Stavros Kontopoulos (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13717) INSERT statement fails when Tuple type is used as clustering column with default DESC order MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Aug 2017 01:48:06 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16120927#comment-16120927 ] Stavros Kontopoulos edited comment on CASSANDRA-13717 at 8/10/17 1:47 AM: -------------------------------------------------------------------------- I have created a patch and verified Jeff's suggestion: [patch|https://drive.google.com/open?id=0B0SeiqgJaLZvclhmY0N4dEJtUGs] {noformat} cqlsh> create keyspace test with replication = {'class':'SimpleStrategy','replication_factor': 1};cqlsh> create table test.test_table ( id int, tdemo tuple, primary key (id, tdemo) ) with clustering order by (tdemo desc); cqlsh> insert into test.test_table (id, tdemo) values (1, ('2017-02-03 03:05+0000','Europe')); cqlsh> select * from test.test_table; id | tdemo ----+----------------------------------------------- 1 | ('2017-02-03 03:05:00.000000+0000', 'Europe') (1 rows) {noformat} What are the next steps for the review (I am new here)? was (Author: skonto): I have created a patch and verified Jeff's suggestion: [patch|https://drive.google.com/open?id=0B0SeiqgJaLZvclhmY0N4dEJtUGs] {noformat} cqlsh> create keyspace test with replication = {'class':'SimpleStrategy','replication_factor': 1};cqlsh> create table test.test_table ( id int, tdemo tuple, primary key (id, tdemo) ) with clustering order by (tdemo desc); cqlsh> insert into test.test_table (id, tdemo) values (1, ('2017-02-03 03:05+0000','Europe')); cqlsh> select * from test.test_table; id | tdemo ----+----------------------------------------------- 1 | ('2017-02-03 03:05:00.000000+0000', 'Europe') (1 rows) {noformat} > INSERT statement fails when Tuple type is used as clustering column with default DESC order > ------------------------------------------------------------------------------------------- > > Key: CASSANDRA-13717 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13717 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 3.11 > Reporter: Anastasios Kichidis > Attachments: example_queries.cql > > > When a column family is created and a Tuple is used on clustering column with default clustering order DESC, then the INSERT statement fails. > For example, the following table will make the INSERT statement fail with error message "Invalid tuple type literal for tdemo of type frozen>" , although the INSERT statement is correct (works as expected when the default order is ASC) > {noformat} > create table test_table ( > id int, > tdemo tuple, > primary key (id, tdemo) > ) with clustering order by (tdemo desc); > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org