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 3827F11A78 for ; Sat, 17 May 2014 03:57:27 +0000 (UTC) Received: (qmail 25608 invoked by uid 500); 17 May 2014 03:12:00 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 67905 invoked by uid 500); 17 May 2014 02:57:01 -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 78308 invoked by uid 500); 17 May 2014 02:42:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 76646 invoked by uid 99); 17 May 2014 02:37:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2014 02:37:15 +0000 Date: Sat, 17 May 2014 02:37:15 +0000 (UTC) From: "Ted Xu (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5771) Constant propagation optimizer for Hive 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-5771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Xu updated HIVE-5771: ------------------------- Attachment: HIVE-5771.patch.javaonly [~hsubramaniyan] Thanks for your comment, the typo is corrected. [~ashutoshc] Thank you for your patch! I already merge your changes to the latest patch. The wrap up work turned out a bit longer than I expected. I think I fixed most of the failures in unit tests, but there is still failures including: # HashMap print order is uncertain, e.g., char_udf1.q, explain_dependency.q # The iteration order of MapWork.getPathToAliases(), which is already a LinkedHashMap, is still uncertain. (They also failed on hive trunk clean build on my laptop. I'm using osx 10.9.2 and jdk 1.8.0_05) I'm uploading the java only patch as an early preview. [~ashutoshc], I'm sorry but could you please help me verify it on your working directory? Thanks! > Constant propagation optimizer for Hive > --------------------------------------- > > Key: HIVE-5771 > URL: https://issues.apache.org/jira/browse/HIVE-5771 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Ted Xu > Assignee: Ted Xu > Attachments: HIVE-5771.1.patch, HIVE-5771.10.patch, HIVE-5771.2.patch, HIVE-5771.3.patch, HIVE-5771.4.patch, HIVE-5771.5.patch, HIVE-5771.6.patch, HIVE-5771.7.patch, HIVE-5771.8.patch, HIVE-5771.9.patch, HIVE-5771.patch, HIVE-5771.patch.javaonly > > > Currently there is no constant folding/propagation optimizer, all expressions are evaluated at runtime. > HIVE-2470 did a great job on evaluating constants on UDF initializing phase, however, it is still a runtime evaluation and it doesn't propagate constants from a subquery to outside. > It may reduce I/O and accelerate process if we introduce such an optimizer. -- This message was sent by Atlassian JIRA (v6.2#6252)