You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/02/04 20:04:00 UTC

[jira] [Updated] (SPARK-30712) Estimate sizeInBytes from file metadata for parquet files

     [ https://issues.apache.org/jira/browse/SPARK-30712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun updated SPARK-30712:
----------------------------------
    Affects Version/s:     (was: 3.0.0)
                       3.1.0

> Estimate sizeInBytes from file metadata for parquet files
> ---------------------------------------------------------
>
>                 Key: SPARK-30712
>                 URL: https://issues.apache.org/jira/browse/SPARK-30712
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: liupengcheng
>            Priority: Major
>
> Currently, Spark will use a compressionFactor when calculating `sizeInBytes` for `HadoopFsRelation`, but this is not accurate and it's hard to choose the best `compressionFactor`. Sometimes, this can causing OOMs due to improper BroadcastHashJoin.
> So I propose to use the rowCount in the BlockMetadata to estimate the size in memory, which can be more accurate.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org