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 131AE2009A8 for ; Tue, 17 May 2016 23:18:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 11CF71607A8; Tue, 17 May 2016 21:18:15 +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 81D671609F5 for ; Tue, 17 May 2016 23:18:14 +0200 (CEST) Received: (qmail 27385 invoked by uid 500); 17 May 2016 21:18:13 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 27363 invoked by uid 99); 17 May 2016 21:18:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 21:18:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 57B612C14E1 for ; Tue, 17 May 2016 21:18:13 +0000 (UTC) Date: Tue, 17 May 2016 21:18:13 +0000 (UTC) From: "Takahiko Saito (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-13777) NPE is thrown when select table after change column from string to decimal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 21:18:15 -0000 Takahiko Saito created HIVE-13777: ------------------------------------- Summary: NPE is thrown when select table after change column from string to decimal Key: HIVE-13777 URL: https://issues.apache.org/jira/browse/HIVE-13777 Project: Hive Issue Type: Bug Affects Versions: 1.2.1, 2.1.0 Reporter: Takahiko Saito Run the followings to change a column from string to decimail: {noformat} drop table if exists shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal; create table shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal stored as orc as select s, s_dc from schemaevo; alter table shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal change column s_dc s_dc decimal(12,4); select count(*) from shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal; {noformat} select count works fine but just select throws NPE: {noformat} 0: jdbc:hive2://os-r6-0517-hiveserver2-1-1.op> select count(*) from shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal; +---------+--+ | c0 | +---------+--+ | 100000 | +---------+--+ 1 row selected (13.856 seconds) 0: jdbc:hive2://os-r6-0517-hiveserver2-1-1.op> select * from shcemaevo_vectorization_true_disallowincompatible_false_fileformat_orc_string_decimal; Error: java.io.IOException: java.lang.NullPointerException (state=,code=0) {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)