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 BD270200C63 for ; Thu, 27 Apr 2017 05:09:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BBCAB160BBB; Thu, 27 Apr 2017 03:09:09 +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 0E4DD160BA8 for ; Thu, 27 Apr 2017 05:09:08 +0200 (CEST) Received: (qmail 60636 invoked by uid 500); 27 Apr 2017 03:09:08 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 60619 invoked by uid 99); 27 Apr 2017 03:09:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2017 03:09:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 391F8188C47 for ; Thu, 27 Apr 2017 03:09:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Hj5NOAUu8V7v for ; Thu, 27 Apr 2017 03:09:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 380915F405 for ; Thu, 27 Apr 2017 03:09:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 71AFAE06BB for ; Thu, 27 Apr 2017 03:09:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2A33221DE0 for ; Thu, 27 Apr 2017 03:09:04 +0000 (UTC) Date: Thu, 27 Apr 2017 03:09:04 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-20487) `HiveTableScan` node is quite verbose in explained plan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Apr 2017 03:09:09 -0000 [ https://issues.apache.org/jira/browse/SPARK-20487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-20487: ------------------------------------ Assignee: (was: Apache Spark) > `HiveTableScan` node is quite verbose in explained plan > ------------------------------------------------------- > > Key: SPARK-20487 > URL: https://issues.apache.org/jira/browse/SPARK-20487 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.1.0 > Reporter: Tejas Patil > Priority: Trivial > > For hive tables, `explain()` prints a lot of information. This makes it hard to read the plan (esp. for large sql strings with numerous tables). > eg. > {noformat} > scala> hc.sql(" SELECT * FROM my_table WHERE name = 'foo' ").explain(true) > == Parsed Logical Plan == > 'Project [*] > +- 'Filter ('name = foo) > +- 'UnresolvedRelation `my_table` > == Analyzed Logical Plan == > user_id: bigint, name: string, ds: string > Project [user_id#13L, name#14, ds#15] > +- Filter (name#14 = foo) > +- SubqueryAlias my_table > +- CatalogRelation CatalogTable( > Database: default > Table: my_table > Owner: tejasp > Created: Fri Apr 14 17:05:50 PDT 2017 > Last Access: Wed Dec 31 16:00:00 PST 1969 > Type: MANAGED > Provider: hive > Properties: [serialization.format=1] > Statistics: 9223372036854775807 bytes > Location: file:/tmp/warehouse/my_table > Serde Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > InputFormat: org.apache.hadoop.mapred.TextInputFormat > OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat > Partition Provider: Catalog > Partition Columns: [`ds`] > Schema: root > -- user_id: long (nullable = true) > -- name: string (nullable = true) > -- ds: string (nullable = true) > ), [user_id#13L, name#14], [ds#15] > == Optimized Logical Plan == > Filter (isnotnull(name#14) && (name#14 = foo)) > +- CatalogRelation CatalogTable( > Database: default > Table: my_table > Owner: tejasp > Created: Fri Apr 14 17:05:50 PDT 2017 > Last Access: Wed Dec 31 16:00:00 PST 1969 > Type: MANAGED > Provider: hive > Properties: [serialization.format=1] > Statistics: 9223372036854775807 bytes > Location: file:/tmp/warehouse/my_table > Serde Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > InputFormat: org.apache.hadoop.mapred.TextInputFormat > OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat > Partition Provider: Catalog > Partition Columns: [`ds`] > Schema: root > -- user_id: long (nullable = true) > -- name: string (nullable = true) > -- ds: string (nullable = true) > ), [user_id#13L, name#14], [ds#15] > == Physical Plan == > *Filter (isnotnull(name#14) && (name#14 = foo)) > +- HiveTableScan [user_id#13L, name#14, ds#15], CatalogRelation CatalogTable( > Database: default > Table: my_table > Owner: tejasp > Created: Fri Apr 14 17:05:50 PDT 2017 > Last Access: Wed Dec 31 16:00:00 PST 1969 > Type: MANAGED > Provider: hive > Properties: [serialization.format=1] > Statistics: 9223372036854775807 bytes > Location: file:/tmp/warehouse/my_table > Serde Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > InputFormat: org.apache.hadoop.mapred.TextInputFormat > OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat > Partition Provider: Catalog > Partition Columns: [`ds`] > Schema: root > -- user_id: long (nullable = true) > -- name: string (nullable = true) > -- ds: string (nullable = true) > ), [user_id#13L, name#14], [ds#15] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org