From issues-return-177872-archive-asf-public=cust-asf.ponee.io@hive.apache.org Fri Jan 31 13:46:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2466B180667 for ; Fri, 31 Jan 2020 14:46:02 +0100 (CET) Received: (qmail 50865 invoked by uid 500); 31 Jan 2020 13:46:01 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 50847 invoked by uid 99); 31 Jan 2020 13:46:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2020 13:46:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B6F7AE2585 for ; Fri, 31 Jan 2020 13:46:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 26B4A78019E for ; Fri, 31 Jan 2020 13:46:00 +0000 (UTC) Date: Fri, 31 Jan 2020 13:46:00 +0000 (UTC) From: "Peter Vary (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-22805) Vectorization with conditional array or map is not implemented and throws an error 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-22805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Peter Vary updated HIVE-22805: ------------------------------ Attachment: HIVE-22805.patch > Vectorization with conditional array or map is not implemented and throws an error > ---------------------------------------------------------------------------------- > > Key: HIVE-22805 > URL: https://issues.apache.org/jira/browse/HIVE-22805 > Project: Hive > Issue Type: Bug > Components: Vectorization > Reporter: Peter Vary > Assignee: Peter Vary > Priority: Major > Attachments: HIVE-22805.patch > > > The following queries throw an "Not supported" Exception: > {code} > DROP TABLE IF EXISTS cond_vector; > CREATE TABLE cond_vector(a STRING) STORED AS ORC; > INSERT OVERWRITE TABLE cond_vector VALUES("a/b"); > set hive.fetch.task.conversion=minimal; > set hive.execution.mode=container; > SELECT IF(1=1, MAP("a","b"), NULL) FROM cond_vector; > EXPLAIN VECTORIZATION DETAIL SELECT IF(1=1, MAP("Mathematics","78"), NULL) FROM cond_vector; > SELECT IF(1=1, ARRAY("c", "d"), NULL) FROM cond_vector; > EXPLAIN VECTORIZATION DETAIL SELECT IF(1=1, ARRAY("a", "b"), NULL) FROM cond_vector; > {code} > One example of the Exception (maybe not exactly this on 4.0.0 branch, but close enough to check): > {code} > Caused by: java.lang.RuntimeException: Not supported > at org.apache.hadoop.hive.ql.exec.vector.ListColumnVector.copySelected(ListColumnVector.java:161) > at org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprCondExprNull.evaluate(IfExprCondExprNull.java:87) > at org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprCondExprCondExpr.evaluate(IfExprCondExprCondExpr.java:95) > at org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprCondExprBase.conditionalEvaluate(IfExprCondExprBase.java:68) > at org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprCondExprCondExpr.evaluate(IfExprCondExprCondExpr.java:110) > at org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprCondExprCondExpr.evaluate(IfExprCondExprCondExpr.java:95) > at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.process(VectorSelectOperator.java:146) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)