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 A7A72116AB for ; Thu, 15 May 2014 06:56:59 +0000 (UTC) Received: (qmail 60320 invoked by uid 500); 15 May 2014 00:50:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 60228 invoked by uid 500); 15 May 2014 00:50:20 -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 60186 invoked by uid 500); 15 May 2014 00:50:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 60099 invoked by uid 99); 15 May 2014 00:50:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2014 00:50:20 +0000 Date: Thu, 15 May 2014 00:50:20 +0000 (UTC) From: "Prasanth J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7067) Min() and Max() on Timestamp and Date columns for ORC returns wrong results 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-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasanth J updated HIVE-7067: ----------------------------- Attachment: HIVE-7067.1.patch > Min() and Max() on Timestamp and Date columns for ORC returns wrong results > --------------------------------------------------------------------------- > > Key: HIVE-7067 > URL: https://issues.apache.org/jira/browse/HIVE-7067 > Project: Hive > Issue Type: Bug > Reporter: Prasanth J > Assignee: Prasanth J > Attachments: HIVE-7067.1.patch > > > min() and max() of timestamp and date columns of ORC table returns wrong results. The reason for that is when ORC creates object inspectors for date and timestamp it uses JAVA primitive objects as opposed to WRITABLE objects. When get() is performed on java primitive objects, a reference to the underlying object is returned whereas when get() is performed on writable objects, a copy of the underlying object is returned. > Fix is to change the object inspector creation to return writable objects for timestamp and date. -- This message was sent by Atlassian JIRA (v6.2#6252)