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 40B3A200CB7 for ; Fri, 30 Jun 2017 09:38:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3A700160BEB; Fri, 30 Jun 2017 07:38:11 +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 5B1CD160BDD for ; Fri, 30 Jun 2017 09:38:10 +0200 (CEST) Received: (qmail 48964 invoked by uid 500); 30 Jun 2017 07:38:09 -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 48953 invoked by uid 99); 30 Jun 2017 07:38:09 -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; Fri, 30 Jun 2017 07:38:09 +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 BF2871A02FA for ; Fri, 30 Jun 2017 07:38:08 +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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0MF8Xts8Wbh8 for ; Fri, 30 Jun 2017 07:38:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 88AA35FAC9 for ; Fri, 30 Jun 2017 07:38:06 +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 B38EDE002B for ; Fri, 30 Jun 2017 07:38:05 +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 CE55F245B8 for ; Fri, 30 Jun 2017 07:38:02 +0000 (UTC) Date: Fri, 30 Jun 2017 07:38:02 +0000 (UTC) From: "ZhaoYang (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13592) Null Pointer exception at SELECT JSON statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Jun 2017 07:38:11 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069565#comment-16069565 ] ZhaoYang edited comment on CASSANDRA-13592 at 6/30/17 7:37 AM: --------------------------------------------------------------- || source || junit-result || dtest-result|| | [trunk|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592] | [junit|https://circleci.com/gh/jasonstack/cassandra/84] | {{cql_tests.py:SlowQueryTester.local_query_test}} failed on trunk {{bootstrap_test.TestBootstrap.simultaneous_bootstrap_test}}[known|https://issues.apache.org/jira/browse/CASSANDRA-13506] | | [3.11|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-3.11] | [junit|https://circleci.com/gh/jasonstack/cassandra/82] | {{topology_test.TestTopology.size_estimates_multidc_test}}[known|https://issues.apache.org/jira/browse/CASSANDRA-13229] {{cqlsh_tests.cqlsh_tests.TestCqlsh.test_describe}} [known|https://issues.apache.org/jira/browse/CASSANDRA-13250] | | [3.0|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-3.0] | [junit|https://circleci.com/gh/jasonstack/cassandra/83] | | | [2.2|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-2.2] | [junit|https://circleci.com/gh/jasonstack/cassandra/85] | passed | 1. in {{listType, mapType, setType, TupleType}}.toJSONString(), keep buffer position the same. 2. change {{DurationType}}.toJSONString() to {{return "\"" +.... +"\"";}} (with double-quote) to be consistent with user json input 3. change {{EmptyType}}.toJSONString() to directly {{return "\"\"";}}, otherwise parent method throws NPE. was (Author: jasonstack): || source || junit-result || dtest-result|| | [trunk|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592] | [junit|https://circleci.com/gh/jasonstack/cassandra/84] | | | [3.11|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-3.11] | [junit|https://circleci.com/gh/jasonstack/cassandra/82] | | | [3.0|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-3.0] | [junit|https://circleci.com/gh/jasonstack/cassandra/83] | | | [2.2|https://github.com/jasonstack/cassandra/commits/CASSANDRA-13592-cassandra-2.2] | [junit|https://circleci.com/gh/jasonstack/cassandra/85] | | 1. in {{listType, mapType, setType, TupleType}}.toJSONString(), keep buffer position the same. 2. change {{DurationType}}.toJSONString() to {{return "\"" +.... +"\"";}} (with double-quote) to be consistent with user json input 3. change {{EmptyType}}.toJSONString() to directly {{return "\"\"";}}, otherwise parent method throws NPE. > Null Pointer exception at SELECT JSON statement > ----------------------------------------------- > > Key: CASSANDRA-13592 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13592 > Project: Cassandra > Issue Type: Bug > Components: CQL > Environment: Debian Linux > Reporter: Wyss Philipp > Assignee: ZhaoYang > Labels: beginner > Attachments: system.log > > > A Nulll pointer exception appears when the command > {code} > SELECT JSON * FROM examples.basic; > ---MORE--- > > Examples.basic has the following description (DESC examples.basic;): > CREATE TABLE examples.basic ( > key frozen> PRIMARY KEY, > wert text > ) WITH bloom_filter_fp_chance = 0.01 > AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'} > AND comment = '' > AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'} > AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'} > AND crc_check_chance = 1.0 > AND dclocal_read_repair_chance = 0.1 > AND default_time_to_live = 0 > AND gc_grace_seconds = 864000 > AND max_index_interval = 2048 > AND memtable_flush_period_in_ms = 0 > AND min_index_interval = 128 > AND read_repair_chance = 0.0 > AND speculative_retry = '99PERCENTILE'; > {code} > The error appears after the ---MORE--- line. > The field "wert" has a JSON formatted string. -- 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