Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 81221200D45 for ; Wed, 8 Nov 2017 09:29:20 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7F94B160BDA; Wed, 8 Nov 2017 08:29:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C5E04160BE0 for ; Wed, 8 Nov 2017 09:29:19 +0100 (CET) Received: (qmail 42359 invoked by uid 500); 8 Nov 2017 08:29:19 -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 42350 invoked by uid 99); 8 Nov 2017 08:29:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 08:29:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 16439180781 for ; Wed, 8 Nov 2017 08:29:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id vJIcAi1kUMe5 for ; Wed, 8 Nov 2017 08:29:17 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 149576450F for ; Wed, 8 Nov 2017 08:04:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 91F30E0C25 for ; Wed, 8 Nov 2017 08:04:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 87AC82419F for ; Wed, 8 Nov 2017 08:04:00 +0000 (UTC) Date: Wed, 8 Nov 2017 08:04:00 +0000 (UTC) From: "liyunzhang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-17973) Fix small bug in multi_insert_union_src.q MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Nov 2017 08:29:20 -0000 [ https://issues.apache.org/jira/browse/HIVE-17973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243500#comment-16243500 ] liyunzhang commented on HIVE-17973: ----------------------------------- for sysdb.q.out, the modification is like following, {{CREATE TABLE IF NOT EXISTS `WM_TRIGGERS`}} should exist in sysdb.q.out because {{hive-schema-3.0.0.hive.sql}} is sourced in [sysdb.q|https://github.com/apache/hive/blob/master/ql/src/test/queries/clientpositive/sysdb.q#L27] and [hive-schema-3.0.0.hive.sql| https://github.com/apache/hive/blob/master/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql#L967] create table {{WM_TRIGGERS}} . Very confused why before HiveQA did not throw error. {code} --- a/ql/src/test/results/clientpositive/llap/sysdb.q.out +++ b/ql/src/test/results/clientpositive/llap/sysdb.q.out @@ -2225,6 +2225,56 @@ FROM POSTHOOK: type: CREATETABLE POSTHOOK: Output: SYS@WM_RESOURCEPLANS POSTHOOK: Output: database:sys +PREHOOK: query: CREATE TABLE IF NOT EXISTS `WM_TRIGGERS` ( + `RP_NAME` string, + `NAME` string, + `TRIGGER_EXPRESSION` string, + `ACTION_EXPRESSION` string +) +STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler' +TBLPROPERTIES ( +"hive.sql.database.type" = "METASTORE", +"hive.sql.query" = +"SELECT + r.NAME RP_NAME, + t.NAME NAME, + TRIGGER_EXPRESSION, + ACTION_EXPRESSION +FROM + WM_TRIGGER t +JOIN + WM_RESOURCEPLAN r +ON {code} > Fix small bug in multi_insert_union_src.q > ----------------------------------------- > > Key: HIVE-17973 > URL: https://issues.apache.org/jira/browse/HIVE-17973 > Project: Hive > Issue Type: Bug > Reporter: liyunzhang > Assignee: liyunzhang > Priority: Trivial > Attachments: HIVE-17973.2.patch, HIVE-17973.2.patch, HIVE-17973.patch, HVIE-17973.3.patch > > > in ql\src\test\queries\clientpositive\multi_insert_union_src.q, > There are two problems in the query file > 1. It is strange to drop src_multi1 twice > 2. {{src1}} is not created but used src1(Maybe we create src1 in other qfile) > {code} > set hive.mapred.mode=nonstrict; > drop table if exists src2; > drop table if exists src_multi1; > drop table if exists src_multi1; > set hive.stats.dbclass=fs; > CREATE TABLE src2 as SELECT * FROM src; > create table src_multi1 like src; > create table src_multi2 like src; > explain > from (select * from src1 where key < 10 union all select * from src2 where key > 100) s > insert overwrite table src_multi1 select key, value where key < 150 order by key > insert overwrite table src_multi2 select key, value where key > 400 order by value; > from (select * from src1 where key < 10 union all select * from src2 where key > 100) s > insert overwrite table src_multi1 select key, value where key < 150 order by key > insert overwrite table src_multi2 select key, value where key > 400 order by value; > select * from src_multi1; > select * from src_multi2; > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)