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 8737817EE6 for ; Sat, 18 Apr 2015 00:22:59 +0000 (UTC) Received: (qmail 21831 invoked by uid 500); 18 Apr 2015 00:22:59 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 21794 invoked by uid 500); 18 Apr 2015 00:22:59 -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 21783 invoked by uid 99); 18 Apr 2015 00:22:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Apr 2015 00:22:59 +0000 Date: Sat, 18 Apr 2015 00:22:58 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2820) Error message must be updated when show files is executed on a non-existent workspace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Abhishek Girish created DRILL-2820: -------------------------------------- Summary: Error message must be updated when show files is executed on a non-existent workspace Key: DRILL-2820 URL: https://issues.apache.org/jira/browse/DRILL-2820 Project: Apache Drill Issue Type: Bug Components: SQL Parser Affects Versions: 0.9.0 Reporter: Abhishek Girish Assignee: Aman Sinha The following message is thrown when SHOW FILES is executed on an existing directory, which is not configured as a workspace: {code:sql} > show files from dfs.tmp.drill.tpch; +------------+------------+ | ok | summary | +------------+------------+ | false | Current schema 'dfs.tmp.drill.tpch' is not a file system schema. Can't execute show files on this schema. | +------------+------------+ 1 row selected (0.375 seconds) (Query executes when the following syntax is used:) 0: jdbc:drill:zk=local> show files from dfs.tmp.`drill/tpch`; +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ | name | isDirectory | isFile | length | owner | group | permissions | accessTime | modificationTime | +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ | customer.psv | false | true | 239490 | agirish | wheel | rwxr-xr-x | 1969-12-31 16:00:00.0 | 2015-04-17 15:37:31.0 | | lineitem.psv | false | true | 7204075 | agirish | wheel | rwxr-xr-x | 1969-12-31 16:00:00.0 | 2015-04-17 15:37:30.0 | +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ {code} This should be updated to: {code:sql} > show files from dfs.tmp.drill.tpch; Query failed: Workspace dfs.tmp.drill.tpch does not exist. {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)