[
https://issues.apache.org/jira/browse/SPARK-59595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-59595.
----------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 58872
[https://github.com/apache/spark/pull/58872]
> Data source expression normalization scales poorly for wide schemas
> -------------------------------------------------------------------
>
> Key: SPARK-59595
> URL: https://issues.apache.org/jira/browse/SPARK-59595
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.2.0
> Reporter: Ben Hollis
> Assignee: Ben Hollis
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.4.0
>
>
> DataSourceStrategy.normalizeExprs searches the relation output for every
> attribute reference being normalized. Its runtime is proportional to the
> number of output attributes multiplied by the number of references. This
> causes substantial planning overhead for wide schemas and projections. A
> local benchmark with 10,000 attributes and 10,000 references took
> approximately 876 ms per call. The method may also be called several times
> per scan during optimization and physical planning.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]