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 4BE8011457 for ; Wed, 13 Aug 2014 23:18:14 +0000 (UTC) Received: (qmail 39889 invoked by uid 500); 13 Aug 2014 23:18:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 39804 invoked by uid 500); 13 Aug 2014 23: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 39587 invoked by uid 500); 13 Aug 2014 23:18:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 39582 invoked by uid 99); 13 Aug 2014 23:18:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 23:18:13 +0000 Date: Wed, 13 Aug 2014 23:18:13 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-7721) CBO: support case statement translation to optiq MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Harish Butani created HIVE-7721: ----------------------------------- Summary: CBO: support case statement translation to optiq Key: HIVE-7721 URL: https://issues.apache.org/jira/browse/HIVE-7721 Project: Hive Issue Type: Sub-task Reporter: Harish Butani Following query: {code} explain select case when key > '104' then null else key end as key from src {code} fails with: {quote} java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Unsupported Expression at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.getOptimizedAST(SemanticAnalyzer.java:11808) .... aused by: java.lang.RuntimeException: Unsupported Expression at org.apache.hadoop.hive.ql.optimizer.optiq.translator.RexNodeConverter.convert(RexNodeConverter.java:91) at org.apache.hadoop.hive.ql.optimizer.optiq.translator.RexNodeConverter.convert(RexNodeConverter.java:124) {quote} -- This message was sent by Atlassian JIRA (v6.2#6252)