Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 020F2173FA for ; Wed, 15 Apr 2015 01:05:05 +0000 (UTC) Received: (qmail 88587 invoked by uid 500); 15 Apr 2015 01:04:58 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 88566 invoked by uid 500); 15 Apr 2015 01:04:58 -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 88556 invoked by uid 99); 15 Apr 2015 01:04:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 01:04:58 +0000 Date: Wed, 15 Apr 2015 01:04:58 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-10085) Lateral view on top of a view throws RuntimeException 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-10085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-10085: ------------------------------------ Affects Version/s: 1.1.0 0.14.0 1.0.0 > Lateral view on top of a view throws RuntimeException > ----------------------------------------------------- > > Key: HIVE-10085 > URL: https://issues.apache.org/jira/browse/HIVE-10085 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer, Query Planning > Affects Versions: 0.14.0, 1.0.0, 1.2.0, 1.1.0 > Reporter: Aihua Xu > Assignee: Aihua Xu > Fix For: 1.2.0 > > Attachments: HIVE-10085.patch > > > Following the following sqls to create table and view and execute a select statement. It will throw the runtime exception: > {noformat} > FAILED: RuntimeException org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException: "map" or "list" is expected at function SIZE, but "int" is found > {noformat} > {noformat} > CREATE TABLE t1( symptom STRING, pattern ARRAY, occurrence INT, index INT); > CREATE OR REPLACE VIEW v1 AS > SELECT TRIM(pd.symptom) AS symptom, pd.index, pd.pattern, pd.occurrence, pd.occurrence as cnt from t1 pd; > SELECT pattern_data.symptom, pattern_data.index, pattern_data.occurrence, pattern_data.cnt, size(pattern_data.pattern) as pattern_length, pattern.pattern_id > FROM v1 pattern_data LATERAL VIEW explode(pattern) pattern AS pattern_id; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)