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 1EEFC17658 for ; Tue, 24 Feb 2015 16:23:05 +0000 (UTC) Received: (qmail 86836 invoked by uid 500); 24 Feb 2015 16:23:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 86805 invoked by uid 500); 24 Feb 2015 16:23:05 -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 86795 invoked by uid 99); 24 Feb 2015 16:23:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 16:23:05 +0000 Date: Tue, 24 Feb 2015 16:23:04 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1923) Unexpected exception when one column of a leg of a UNION ALL is a numeric constant 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-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Sinha updated DRILL-1923: ------------------------------ Assignee: Sean Hsuan-Yi Chu (was: Aman Sinha) > Unexpected exception when one column of a leg of a UNION ALL is a numeric constant > ---------------------------------------------------------------------------------- > > Key: DRILL-1923 > URL: https://issues.apache.org/jira/browse/DRILL-1923 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 0.8.0 > Reporter: Victoria Markman > Assignee: Sean Hsuan-Yi Chu > Fix For: 0.9.0 > > > t.json: > {code} > {"a1": 0, "b1": 0, "c1": "true" } > {"a1": 0, "b1": 0, "c1": "false" } > {"a1": 0, "b1": 0, "c1": "false" } > {"a1": 1, "b1": 1, "c1": "true" } > {"a1": 1, "b1": 1, "c1": "true" } > {code} > {code} > select a1, b1, c1 from `t.json` union all select 1, b1, 'abc' from `t.json`; > Query failed: Query failed: Unexpected exception during fragment initialization: Node [rel#518297:Subset#3.LOGICAL.ANY([]).[]] could not be implemented; planner state: > select a1, b1, c1 from `t.json` union all select a1, 1, 'abc' from `t.json`; > Query failed: Query failed: Unexpected exception during fragment initialization: Node [rel#518297:Subset#3.LOGICAL.ANY([]).[]] could not be implemented; planner state: > {code} > It seems to work when column is a string literal > {code} > 0: jdbc:drill:schema=dfs> select a1, b1, c1 from `t.json` union all select a1, b1, 'abc' from `t.json`; > +------------+------------+------------+ > | a1 | b1 | c1 | > +------------+------------+------------+ > | 0 | 0 | true | > | 0 | 0 | false | > | 0 | 0 | false | > | 1 | 1 | true | > | 1 | 1 | true | > | 0 | 0 | abc | > | 0 | 0 | abc | > | 0 | 0 | abc | > | 1 | 1 | abc | > | 1 | 1 | abc | > +------------+------------+------------+ > 10 rows selected (0.087 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)