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 DF148200B75 for ; Sun, 21 Aug 2016 06:34:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DDA6F160ABE; Sun, 21 Aug 2016 04:34:07 +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 57DBD160ABB for ; Sun, 21 Aug 2016 06:34:07 +0200 (CEST) Received: (qmail 27521 invoked by uid 500); 21 Aug 2016 04:34:06 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 27510 invoked by uid 99); 21 Aug 2016 04:34:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2016 04:34:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0C8CBE00C4; Sun, 21 Aug 2016 04:34:06 +0000 (UTC) From: cloud-fan To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark issue #14712: [SPARK-17072] [SQL] support table-level statistics gener... Content-Type: text/plain Message-Id: <20160821043406.0C8CBE00C4@git1-us-west.apache.org> Date: Sun, 21 Aug 2016 04:34:06 +0000 (UTC) archived-at: Sun, 21 Aug 2016 04:34:08 -0000 Github user cloud-fan commented on the issue: https://github.com/apache/spark/pull/14712 Spark SQL already has its own metastore: `InMemoryCatalog`. And we do have an abstraction for metasotre: `ExternalCatalog`. We have 2 targets here: 1. add table statistics in Spark SQL 2. Spark SQL and Hive should recognize table statistics from each other. I think target 1 is more important, and we do need an implementation that not depend on hive features. > Actually, we desperately need spark sql to have its own metastore, because we need to persist statistics like histograms which AFAIK hive metastore doesn't support. We store table statistics in table properties, why would hive metastore not support it? Do you mean Hive can't recognize it? But I think it's ok, we should not limit our table statistics by what Hive supports. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org