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 2CE67200C73 for ; Wed, 10 May 2017 18:29:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B82F160BB4; Wed, 10 May 2017 16:29:09 +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 731F3160B99 for ; Wed, 10 May 2017 18:29:08 +0200 (CEST) Received: (qmail 4298 invoked by uid 500); 10 May 2017 16:29:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 4239 invoked by uid 99); 10 May 2017 16:29:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 16:29:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 34421CD92D for ; Wed, 10 May 2017 16:29:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ayh8Cz9ukYGB for ; Wed, 10 May 2017 16:29:05 +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 028665F4A7 for ; Wed, 10 May 2017 16:29:05 +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 919A8E01A8 for ; Wed, 10 May 2017 16:29:04 +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 3E98521E0C for ; Wed, 10 May 2017 16:29:04 +0000 (UTC) Date: Wed, 10 May 2017 16:29:04 +0000 (UTC) From: =?utf-8?Q?Andr=C3=A9s_de_la_Pe=C3=B1a_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13218) Duration validation error is unclear in case of overflow. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 May 2017 16:29:09 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13218?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16004960#comment-16004960 ]=20 Andr=C3=A9s de la Pe=C3=B1a commented on CASSANDRA-13218: ----------------------------------------------- Indeed, a 32-bit integer seems more than enough for months. I either can't = figure out any use case involving time intervals over 5,883,516 years and a= precision higher than millennia. The patch looks good to me, +1. ||[3.11|https://github.com/apache/cassandra/compare/cassandra-3.11...blerer= :13128-3.11.patch]|[utests|http://cassci.datastax.com/view/Dev/view/blerer/= job/adelapena-13128-3.11-testall/]| > Duration validation error is unclear in case of overflow. > --------------------------------------------------------- > > Key: CASSANDRA-13218 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1321= 8 > Project: Cassandra > Issue Type: Bug > Components: CQL > Reporter: Benjamin Lerer > Assignee: Benjamin Lerer > Fix For: 3.11.x > > > If a user try to insert a {{duration}} with a number of months or days th= at cannot fit in an {{int}} (for example: {{9223372036854775807mo1d}}), the= error message is confusing. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org