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 62EA51019A for ; Fri, 30 May 2014 18:15:27 +0000 (UTC) Received: (qmail 19024 invoked by uid 500); 30 May 2014 18:15:27 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 19001 invoked by uid 500); 30 May 2014 18:15:27 -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 18992 invoked by uid 99); 30 May 2014 18:15:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 18:15:27 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,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; Fri, 30 May 2014 18:15:28 +0000 Received: (qmail 17865 invoked by uid 99); 30 May 2014 18:15:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 18:15:03 +0000 Date: Fri, 30 May 2014 18:15:03 +0000 (UTC) From: "Steven Phillips (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-871) Drill fails to detect errors in queries 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 [ https://issues.apache.org/jira/browse/DRILL-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14014042#comment-14014042 ] Steven Phillips commented on DRILL-871: --------------------------------------- Actually, I am saying, for Drill, it is not an error at all. It's not the query you meant to run, but it is a perfectly valid query. In postgres, tables have a well-defined schema, so it can give an error when you select or join on a column that doesn't exist. Drill tables do not have a well defined schema. So in this case, it is not possible to say that the column "o.c_custkey" does not exist, because it might. In other words, for a dynamic drill table, any column you request exists, and in this case, every value is null. > Drill fails to detect errors in queries > --------------------------------------- > > Key: DRILL-871 > URL: https://issues.apache.org/jira/browse/DRILL-871 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Hive > Reporter: Zhiyong Liu > > Accidentally had a typo in a query, such as > select o.O_TOTALPRICE, c.C_NAME > from orders o, customer c > where o.C_CUSTKEY = c.C_CUSTKEY and o.O_TOTALPRICE > 400000.00 > order by o.O_TOTALPRICE; > The typo is o.C_CUSTKEY, which should be o.O_CUSTKEY. Drill executes the query with no error detected: > 0: jdbc:drill:schema=dfs.TpcHMulti> select o.O_TOTALPRICE, c.C_NAME > . . . . . . . . . . . . . . . . . > from orders o, customer c > . . . . . . . . . . . . . . . . . > where o.C_CUSTKEY = c.C_CUSTKEY and o.O_TOTALPRICE > 400000.00 > . . . . . . . . . . . . . . . . . > order by o.O_TOTALPRICE; > +--+ > | | > +--+ > +--+ > No rows selected (1.161 seconds) -- This message was sent by Atlassian JIRA (v6.2#6252)