Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6DC98200AC8 for ; Tue, 24 May 2016 00:21:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6C62E160A2F; Mon, 23 May 2016 22:21:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BEE4B160A0E for ; Tue, 24 May 2016 00:21:13 +0200 (CEST) Received: (qmail 75273 invoked by uid 500); 23 May 2016 22:21:13 -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 75252 invoked by uid 99); 23 May 2016 22:21:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2016 22:21:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DF9BD2C033A for ; Mon, 23 May 2016 22:21:12 +0000 (UTC) Date: Mon, 23 May 2016 22:21:12 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4514) Add describe schema command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 23 May 2016 22:21:14 -0000 [ https://issues.apache.org/jira/browse/DRILL-4514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15297222#comment-15297222 ] ASF GitHub Bot commented on DRILL-4514: --------------------------------------- Github user jinfengni commented on a diff in the pull request: https://github.com/apache/drill/pull/436#discussion_r64299337 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceConfig.java --- @@ -25,23 +25,27 @@ * - location which is a path. * - writable flag to indicate whether the location supports creating new tables. * - default storage format for new tables created in this workspace. + * - physicalLocation is full path to workspace */ @JsonIgnoreProperties(value = {"storageformat"}) public class WorkspaceConfig { /** Default workspace is a root directory which supports read, but not write. */ - public static final WorkspaceConfig DEFAULT = new WorkspaceConfig("/", false, null); + public static final WorkspaceConfig DEFAULT = new WorkspaceConfig("/", false, null, null); private final String location; private final boolean writable; private final String defaultInputFormat; + private final String physicalLocation; public WorkspaceConfig(@JsonProperty("location") String location, @JsonProperty("writable") boolean writable, - @JsonProperty("defaultInputFormat") String defaultInputFormat) { + @JsonProperty("defaultInputFormat") String defaultInputFormat, + @JsonProperty("physicalLocation") String physicalLocation) { this.location = location; this.writable = writable; this.defaultInputFormat = defaultInputFormat; + this.physicalLocation = physicalLocation; --- End diff -- WorkspaceConfig already has "location". Why do you prefer adding a new "physicalLocation"? Is it possible to use "location" in stead? > Add describe schema command > ----------------------------------------- > > Key: DRILL-4514 > URL: https://issues.apache.org/jira/browse/DRILL-4514 > Project: Apache Drill > Issue Type: New Feature > Affects Versions: Future > Reporter: Arina Ielchiieva > Assignee: Arina Ielchiieva > > Add describe database command which will return directory associated with a database on the fly. > Syntax: > describe database > describe schema > Output: > {noformat} > DESCRIBE SCHEMA xdf.proc; > +---------------------+----------------------------+ > | name | location | > +---------------------+----------------------------+ > | xdf.proc | maprfs://dl.data/processed | > +---------------------+----------------------------+ > {noformat} > Current implementation covers only dfs schema. > For all other "" will be returned. -- This message was sent by Atlassian JIRA (v6.3.4#6332)