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 31AB918E19 for ; Tue, 22 Dec 2015 17:58:49 +0000 (UTC) Received: (qmail 84009 invoked by uid 500); 22 Dec 2015 17:58:48 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 83081 invoked by uid 500); 22 Dec 2015 17:58:47 -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 82552 invoked by uid 99); 22 Dec 2015 17:58:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2015 17:58:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 45B632C1F64 for ; Tue, 22 Dec 2015 17:58:47 +0000 (UTC) Date: Tue, 22 Dec 2015 17:58:47 +0000 (UTC) From: "Adam Holmberg (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10625) Problem of year 10000: Dates too far in the future can be saved but not read back using cqlsh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10625?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Holmberg updated CASSANDRA-10625: -------------------------------------- Fix Version/s: 3.x > Problem of year 10000: Dates too far in the future can be saved but not r= ead back using cqlsh > -------------------------------------------------------------------------= -------------------- > > Key: CASSANDRA-10625 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1062= 5 > Project: Cassandra > Issue Type: Bug > Reporter: Piotr Ko=C5=82aczkowski > Priority: Minor > Fix For: 3.0.x, 3.x > > > {noformat} > cqlsh> insert into test.timestamp_test (pkey, ts) VALUES (1, '9999-12-31 = 23:59:59+0000'); > cqlsh> select * from test.timestamp_test ; > pkey | ts > ------+-------------------------- > 1 | 9999-12-31 23:59:59+0000 > (1 rows) > cqlsh> insert into test.timestamp_test (pkey, ts) VALUES (1, '10000-01-01= 00:00:01+0000'); > cqlsh> select * from test.timestamp_test ; > Traceback (most recent call last): > File "bin/../resources/cassandra/bin/cqlsh", line 1112, in perform_simp= le_statement > rows =3D self.session.execute(statement, trace=3Dself.tracing_enabled= ) > File "/home/pkolaczk/Projekty/DataStax/bdp/resources/cassandra/bin/../z= ipfiles/cassandra-driver-internal-only-2.7.2.zip/cassandra-driver-2.7.2/cas= sandra/cluster.py", line 1602, in execute > result =3D future.result() > File "/home/pkolaczk/Projekty/DataStax/bdp/resources/cassandra/bin/../z= ipfiles/cassandra-driver-internal-only-2.7.2.zip/cassandra-driver-2.7.2/cas= sandra/cluster.py", line 3347, in result > raise self._final_exception > OverflowError: date value out of range > {noformat} > The connection is broken afterwards: > {noformat} > cqlsh> insert into test.timestamp_test (pkey, ts) VALUES (1, '10000-01-01= 00:00:01+0000'); > NoHostAvailable: ('Unable to complete the operation against any hosts', {= : ConnectionShutdown('Connection to 127.0.0.1 is= defunct',)}) > {noformat} > Expected behaviors (one of): > - don't allow to insert dates larger than 9999-12-31 and document the lim= itation > - handle all dates up to Java Date(MAX_LONG) for writing and reading -- This message was sent by Atlassian JIRA (v6.3.4#6332)