You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2025/09/19 01:54:00 UTC
[jira] [Resolved] (SPARK-53623) O(N^2) operation in readLargeTableProp in CatalogColumnStat
[ https://issues.apache.org/jira/browse/SPARK-53623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-53623.
---------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 52374
[https://github.com/apache/spark/pull/52374]
> O(N^2) operation in readLargeTableProp in CatalogColumnStat
> -----------------------------------------------------------
>
> Key: SPARK-53623
> URL: https://issues.apache.org/jira/browse/SPARK-53623
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.1
> Reporter: Yesheng Ma
> Assignee: Yesheng Ma
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> The CatalogColumnStat.readLargeTableProp [https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala#L766-L784] is an O(N) operation. Considering a table can have a lot of table properties, this effectively becomes an O(N^2) operation, which can be very slow for tables with a lot of table properties.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org