Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33B7D10DEE for ; Sat, 11 Jan 2014 16:20:43 +0000 (UTC) Received: (qmail 72591 invoked by uid 500); 11 Jan 2014 16:20:40 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 72474 invoked by uid 500); 11 Jan 2014 16:20:34 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 72309 invoked by uid 99); 11 Jan 2014 16:20:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 16:20:30 +0000 X-ASF-Spam-Status: No, hits=-2000.1 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; Sat, 11 Jan 2014 16:20:29 +0000 Received: (qmail 69115 invoked by uid 99); 11 Jan 2014 16:17:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 16:17:53 +0000 Date: Sat, 11 Jan 2014 16:17:53 +0000 (UTC) From: "DaeMyung Kang (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TAJO-122) Add EXPLAIN clause to show a logical plan 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/TAJO-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DaeMyung Kang updated TAJO-122: ------------------------------- Attachment: TAJO-122.patch Explain works like this. {noformat} //valid query tajo> explain select * from table1; ----------------------------- Query Block Graph ----------------------------- |-@ROOT ----------------------------- Optimization Log: ----------------------------- Scan on table1 => target list: table1.id (INT4(0)), table1.name (TEXT(0)), table1.score (FLOAT4(0)), table1.type (TEXT(0)) => out schema: {table1.id (INT4(0)),table1.name (TEXT(0)),table1.score (FLOAT4(0)),table1.type (TEXT(0))} => in schema: {table1.id (INT4(0)),table1.name (TEXT(0)),table1.score (FLOAT4(0)),table1.type (TEXT(0))} //invalid query because of not existed table tajo> explain select * from tbl; Failed after attempts=3, exceptions: org.apache.tajo.catalog.exception.NoSuchTableException: ERROR: relation "tbl" does not exist org.apache.tajo.catalog.exception.NoSuchTableException: ERROR: relation "tbl" does not exist org.apache.tajo.catalog.exception.NoSuchTableException: ERROR: relation "tbl" does not exist //valid but doesn't have logical plan. tajo> explain select pi(); ----------------------------- Query Block Graph ----------------------------- |-@ROOT ----------------------------- Optimization Log: ----------------------------- {noformat} > Add EXPLAIN clause to show a logical plan > ----------------------------------------- > > Key: TAJO-122 > URL: https://issues.apache.org/jira/browse/TAJO-122 > Project: Tajo > Issue Type: New Feature > Components: planner/optimizer > Reporter: Hyunsik Choi > Assignee: DaeMyung Kang > Fix For: 0.8-incubating > > Attachments: TAJO-122.patch > > > (I've changed this issue from implementing an utility class to preint JSON to implementing EXPLAIN clause support.) > For convenience for debugging and developing new engine (TAJO-104), we need EXPLAIN clause to print plans used in Tajo internal. In this issue, we only focus on showing a logical plan. -- This message was sent by Atlassian JIRA (v6.1.5#6160)