Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC6B1108A6 for ; Wed, 17 Dec 2014 21:48:14 +0000 (UTC) Received: (qmail 89099 invoked by uid 500); 17 Dec 2014 21:48:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 88945 invoked by uid 500); 17 Dec 2014 21:48: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 88673 invoked by uid 500); 17 Dec 2014 21:48:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 88670 invoked by uid 99); 17 Dec 2014 21:48:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 21:48:13 +0000 Date: Wed, 17 Dec 2014 21:48:13 +0000 (UTC) From: "Jason Dere (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9149) Add unit test to test implicit conversion during dynamic partitioning/distribute by MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-9149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Dere updated HIVE-9149: ----------------------------- Status: Patch Available (was: Open) > Add unit test to test implicit conversion during dynamic partitioning/distribute by > ----------------------------------------------------------------------------------- > > Key: HIVE-9149 > URL: https://issues.apache.org/jira/browse/HIVE-9149 > Project: Hive > Issue Type: Bug > Components: Tests > Reporter: Jason Dere > Assignee: Jason Dere > Attachments: HIVE-9149.1.patch > > > This particular case was failing in Hive 0.13 because the string "key" column was not being converted to INT when written to the ORC file, resulting in a type cast error when reading data from the table. > HIVE-8151 seems to have fixed this issue, but I would like to add a unit test to make sure we don't regress. > {noformat} > create table implicit_cast_during_insert (c1 int, c2 string) > partitioned by (p1 string) stored as orc; > set hive.exec.dynamic.partition.mode=nonstrict; > insert overwrite table implicit_cast_during_insert partition (p1) > select key, value, key key1 from (select * from src where key = 0) q > distribute by key1 sort by key1; > select * from implicit_cast_during_insert; > drop table implicit_cast_during_insert; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)