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 5CA4618D20 for ; Tue, 21 Jul 2015 20:08:15 +0000 (UTC) Received: (qmail 95773 invoked by uid 500); 21 Jul 2015 20:08:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 95747 invoked by uid 500); 21 Jul 2015 20:08: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 95736 invoked by uid 99); 21 Jul 2015 20:08:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2015 20:08:05 +0000 Date: Tue, 21 Jul 2015 20:08:05 +0000 (UTC) From: "Sean Hsuan-Yi Chu (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3508) IOOB raised if FROM points at an empty directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-3508?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1463= 5728#comment-14635728 ]=20 Sean Hsuan-Yi Chu commented on DRILL-3508: ------------------------------------------ The issue originates from storage plugin. Specifically, FileSelect would at= tempts to use the first file for coming up with the schema in execution lat= er. (see FileSelect.getFirstPath) And in case when there is not even a file, the logic above fails.=20 > IOOB raised if FROM points at an empty directory > ------------------------------------------------ > > Key: DRILL-3508 > URL: https://issues.apache.org/jira/browse/DRILL-3508 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 1.1.0 > Reporter: Stef=C3=A1n Baxter > Assignee: Sean Hsuan-Yi Chu > Fix For: 1.2.0 > > > I union select where the right hand side points to an empty directory fil= es with the following error code: > Error: PARSE ERROR: Index: 0, Size: 0 > [Error Id: fed7527a-9d7a-4980-80f5-ff3f0b92d49b on localhost:31010] (stat= e=3D,code=3D0) > We use this to merge tenant based information and sometimes there are no = files on the right hand side of the union. It would be ideal that that scen= ario would return an empty list rather than an error. -- This message was sent by Atlassian JIRA (v6.3.4#6332)