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 19B51200CCB for ; Thu, 20 Jul 2017 10:48:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1818716ADDE; Thu, 20 Jul 2017 08:48:04 +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 671A316ADDC for ; Thu, 20 Jul 2017 10:48:03 +0200 (CEST) Received: (qmail 97227 invoked by uid 500); 20 Jul 2017 08:48:02 -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 97216 invoked by uid 99); 20 Jul 2017 08:48:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2017 08:48:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D7AAE1A0AB2 for ; Thu, 20 Jul 2017 08:48:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id LXMaHo1L934M for ; Thu, 20 Jul 2017 08:48:01 +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 DCCB15FB06 for ; Thu, 20 Jul 2017 08:48:00 +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 7F614E0D45 for ; Thu, 20 Jul 2017 08:48:00 +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 2E3F321EC8 for ; Thu, 20 Jul 2017 08:48:00 +0000 (UTC) Date: Thu, 20 Jul 2017 08:48:00 +0000 (UTC) From: "Varun Barala (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-13694) sstabledump does not show full precision of timestamp columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Jul 2017 08:48:04 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Varun Barala updated CASSANDRA-13694: ------------------------------------- Attachment: CASSANDRA-13694-after-review.patch > sstabledump does not show full precision of timestamp columns > ------------------------------------------------------------- > > Key: CASSANDRA-13694 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13694 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: Ubuntu 16.04 LTS > Reporter: Tim Reeves > Labels: patch-available > Fix For: 3.7 > > Attachments: CASSANDRA-13694-after-review.patch, CASSANDRA-13694.patch > > > Create a table: > CREATE TABLE test_table ( > unit_no bigint, > event_code text, > active_time timestamp, > ack_time timestamp, > PRIMARY KEY ((unit_no, event_code), active_time) > ) WITH CLUSTERING ORDER BY (active_time DESC) > Insert a row: > INSERT INTO test_table (unit_no, event_code, active_time, ack_time) > VALUES (1234, 'TEST EVENT', toTimestamp(now()), toTimestamp(now())); > Verify that it is in the database with a full timestamp: > cqlsh:pentaho> select * from test_table; > unit_no | event_code | active_time | ack_time > ---------+------------+---------------------------------+--------------------------------- > 1234 | TEST EVENT | 2017-07-14 14:52:39.919000+0000 | 2017-07-14 14:52:39.919000+0000 > (1 rows) > Write file: > nodetool flush > nodetool compact pentaho > Use sstabledump: > treeves@ubuntu:~$ sstabledump /var/lib/cassandra/data/pentaho/test_table-99ba228068a311e7ac30953b79ac2c3e/mb-2-big-Data.db > [ > { > "partition" : { > "key" : [ "1234", "TEST EVENT" ], > "position" : 0 > }, > "rows" : [ > { > "type" : "row", > "position" : 38, > "clustering" : [ "2017-07-14 15:52+0100" ], > "liveness_info" : { "tstamp" : "2017-07-14T14:52:39.888701Z" }, > "cells" : [ > { "name" : "ack_time", "value" : "2017-07-14 15:52+0100" } > ] > } > ] > } > ] > treeves@ubuntu:~$ > The timestamp in the cluster key, and the regular column, are both truncated to the minute. -- 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