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 2197910D11 for ; Thu, 10 Oct 2013 16:59:55 +0000 (UTC) Received: (qmail 91307 invoked by uid 500); 10 Oct 2013 16:59:49 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 90974 invoked by uid 500); 10 Oct 2013 16:59:47 -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 90910 invoked by uid 500); 10 Oct 2013 16:59:45 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 90873 invoked by uid 99); 10 Oct 2013 16:59:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 16:59:44 +0000 Date: Thu, 10 Oct 2013 16:59:44 +0000 (UTC) From: "Jitendra Nath Pandey (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4821) Implement vectorized type casting for all types 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-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791678#comment-13791678 ] Jitendra Nath Pandey commented on HIVE-4821: -------------------------------------------- The patch has some changes in NOTICE.txt and README.txt and in files like HiveSchemaTools, which don't seem to be intended. Several files have been removed e.g. bin/ext/version.sh. The patch also removes some of the template generation code added in recent patches, which also seems to be unintentional. > Implement vectorized type casting for all types > ----------------------------------------------- > > Key: HIVE-4821 > URL: https://issues.apache.org/jira/browse/HIVE-4821 > Project: Hive > Issue Type: Sub-task > Affects Versions: 0.13.0 > Reporter: Eric Hanson > Assignee: Eric Hanson > Attachments: HIVE-4821.1.patch > > > Implement vectorized support for casting from any type to any type. > From the documentation: > cast(expr as ): Converts the results of the expression expr to e.g. cast('1' as BIGINT) will convert the string '1' to it integral representation. A null is returned if the conversion does not succeed > The current supported internal types are: > LONG > DOUBLE > STRING > TIMESTAMP > Before implementation, determine what are the semantics of explicit casting to types less general than the internal types. E.g. what if you cast DOUBLE to TINYINT? Can we just cast internally to LONG and let the output process cast to TINYINT? > This JIRA includes all work to make casting operate end-to-end in a SQL query in vectorized mode, including updates to VectorizationContext. -- This message was sent by Atlassian JIRA (v6.1#6144)