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 3689A1121E for ; Wed, 2 Jul 2014 18:35:46 +0000 (UTC) Received: (qmail 93834 invoked by uid 500); 2 Jul 2014 18:35:46 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 93808 invoked by uid 500); 2 Jul 2014 18:35:46 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 93797 invoked by uid 99); 2 Jul 2014 18:35:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 18:35:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jul 2014 18:35:45 +0000 Received: (qmail 92294 invoked by uid 99); 2 Jul 2014 18:35:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 18:35:24 +0000 Date: Wed, 2 Jul 2014 18:35:24 +0000 (UTC) From: "Alexander Zarei (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-1100) Returning NULL instead of array-index-out-of-bound error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Alexander Zarei created DRILL-1100: -------------------------------------- Summary: Returning NULL instead of array-index-out-of-bound error Key: DRILL-1100 URL: https://issues.apache.org/jira/browse/DRILL-1100 Project: Apache Drill Issue Type: Bug Components: Client - JDBC, Client - ODBC Environment: SqlLine in Linux and C# in Windows Reporter: Alexander Zarei Priority: Minor When an out of bound column is queried, for example, SELECT columns[12] as column_12 FROM `dfs`.`root`.`./sneaky.csv`; the result is a column with all null values: +------------+ | column_12 | +------------+ | null | | null | | null | | null | | null | +------------+ However, it makes more sense to return an error instead. The file content: someDirectoryFoo,true,false,false,100,root,root,"2013-10-11T14:31:58.000-0700","2013-10-11T14:31:58.000-0700","-rw-r--r--." someDirectoryBar,true,false,false,100,root,root,"2013-10-11T14:31:58.000-0700","2013-10-11T14:31:58.000-0700","-rw-r--r--." aFile,false,true,false,1234,root,root,"2013-10-11T14:31:58.000-0700","2013-10-11T14:31:58.000-0700","-rw-r--r--." anotherFile,false,true,false,2345,root,root,"2012-11-11T14:31:58.000-0700","2012-11-11T14:31:58.000-0700","-rw-r--r--." yetAnotherFile,false,true,false,3456,root,root,"2011-11-11T14:31:58.000-0700","2012-11-11T14:31:58.000-0700","-rw-r--r--." -- This message was sent by Atlassian JIRA (v6.2#6252)