From issues-return-48575-archive-asf-public=cust-asf.ponee.io@drill.apache.org Tue Jan 9 22:27:16 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 7C6EF18072F for ; Tue, 9 Jan 2018 22:27:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6C653160C2D; Tue, 9 Jan 2018 21:27:16 +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 B1C8A160C17 for ; Tue, 9 Jan 2018 22:27:15 +0100 (CET) Received: (qmail 21679 invoked by uid 500); 9 Jan 2018 21:27:14 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 21670 invoked by uid 99); 9 Jan 2018 21:27:14 -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; Tue, 09 Jan 2018 21:27:14 +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 579F01807C6 for ; Tue, 9 Jan 2018 21:27:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -107.911 X-Spam-Level: X-Spam-Status: No, score=-107.911 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 iA8qcRNWdL0T for ; Tue, 9 Jan 2018 21:27:12 +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 2D5E75FB71 for ; Tue, 9 Jan 2018 21:27:11 +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 58664E25F4 for ; Tue, 9 Jan 2018 21:27:07 +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 0C9A224736 for ; Tue, 9 Jan 2018 21:27:03 +0000 (UTC) Date: Tue, 9 Jan 2018 21:27:03 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4185) UNION ALL involving empty directory on any side of union all results in Failed query 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/DRILL-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16319200#comment-16319200 ] ASF GitHub Bot commented on DRILL-4185: --------------------------------------- Github user arina-ielchiieva commented on a diff in the pull request: https://github.com/apache/drill/pull/1083#discussion_r160525303 --- Diff: exec/java-exec/src/test/java/org/apache/drill/test/BaseTestQuery.java --- @@ -119,6 +125,15 @@ public static void setupDefaultTestCluster() throws Exception { // turns on the verbose errors in tests // sever side stacktraces are added to the message before sending back to the client test("ALTER SESSION SET `exec.errors.verbose` = true"); + emptyDirCreating(); --- End diff -- Why do we create empty directory for all tests that extend this class? I guess need to create it only for those tests that need it. > UNION ALL involving empty directory on any side of union all results in Failed query > ------------------------------------------------------------------------------------ > > Key: DRILL-4185 > URL: https://issues.apache.org/jira/browse/DRILL-4185 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.4.0 > Reporter: Khurram Faraaz > Assignee: Vitalii Diravka > > UNION ALL query that involves an empty directory on either side of UNION ALL operator results in FAILED query. We should return the results for the non-empty side (input) of UNION ALL. > Note that empty_DIR is an empty directory, the directory exists, but it has no files in it. > Drill 1.4 git.commit.id=b9068117 > 4 node cluster on CentOS > {code} > 0: jdbc:drill:schema=dfs.tmp> select columns[0] from empty_DIR UNION ALL select cast(columns[0] as int) c1 from `testWindow.csv`; > Error: VALIDATION ERROR: From line 1, column 24 to line 1, column 32: Table 'empty_DIR' not found > [Error Id: 5c024786-6703-4107-8a4a-16c96097be08 on centos-01.qa.lab:31010] (state=,code=0) > 0: jdbc:drill:schema=dfs.tmp> select cast(columns[0] as int) c1 from `testWindow.csv` UNION ALL select columns[0] from empty_DIR; > Error: VALIDATION ERROR: From line 1, column 90 to line 1, column 98: Table 'empty_DIR' not found > [Error Id: 58c98bc4-99df-425c-aa07-c8c5faec4748 on centos-01.qa.lab:31010] (state=,code=0) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)