You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2017/11/28 21:16:00 UTC
[jira] [Updated] (SPARK-22637) CatalogImpl.refresh() has quadratic
complexity for a view
[ https://issues.apache.org/jira/browse/SPARK-22637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herman van Hovell updated SPARK-22637:
--------------------------------------
Description: {{org.apache.spark.sql.internal.CatalogImpl.refreshTable}} uses {{foreach(..)}} to refresh all tables in a view. This traverses all nodes in the subtree and calls {{LogicalPlan.refresh()}} on these nodes. However {{LogicalPlan.refresh()}} is also refreshing its children, as a result refreshing a large view can be quite expensive. (was: {{org.apache.spark.sql.internal.refreshTable}} uses {{foreach(..)}} to refresh all tables in a view. This traverses all nodes in the subtree and calls {{LogicalPlan.refresh()}} on these nodes. However {{LogicalPlan.refresh()}} is also refreshing its children, as a result refreshing a large view can be quite expensive.)
> CatalogImpl.refresh() has quadratic complexity for a view
> ---------------------------------------------------------
>
> Key: SPARK-22637
> URL: https://issues.apache.org/jira/browse/SPARK-22637
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: Herman van Hovell
> Priority: Minor
>
> {{org.apache.spark.sql.internal.CatalogImpl.refreshTable}} uses {{foreach(..)}} to refresh all tables in a view. This traverses all nodes in the subtree and calls {{LogicalPlan.refresh()}} on these nodes. However {{LogicalPlan.refresh()}} is also refreshing its children, as a result refreshing a large view can be quite expensive.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org