Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-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 86B0910E07 for ; Sun, 4 Jan 2015 21:28:49 +0000 (UTC) Received: (qmail 96454 invoked by uid 500); 4 Jan 2015 21:28:50 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 96420 invoked by uid 500); 4 Jan 2015 21:28:50 -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 96410 invoked by uid 99); 4 Jan 2015 21:28:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 21:28:50 +0000 Date: Sun, 4 Jan 2015 21:28:50 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1395) UNION ALL query fails "while setting up Foreman" 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-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1395: ---------------------------------- Fix Version/s: 1.0.0 Priority: Minor (was: Major) > UNION ALL query fails "while setting up Foreman" > ------------------------------------------------ > > Key: DRILL-1395 > URL: https://issues.apache.org/jira/browse/DRILL-1395 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 0.5.0 > Reporter: Bob Rumsby > Priority: Minor > Fix For: 1.0.0 > > > The two sides of the UNION are not equivalent because one of the files has an additional column, but Aman tells me that this should work in a schema-less environment anyway. (I was expecting it to fail but with a more meaningful error because I am used to relational database UNION queries where a corresponding number of columns is expected on either side of the UNION operator.) > The query fails whether or not the LIMIT is applied. EXPLAIN for this query also fails. > 0: jdbc:drill:> select * from `clicks/clicks.campaign.json` union all select * from `clicks/clicks.json` limit 5; > Query failed: Failure while setting up Foreman. DrillUnionRel#23471 [159a4852-e190-4edf-b11e-2d62db8efbd7] > Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0) -- This message was sent by Atlassian JIRA (v6.3.4#6332)