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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17029557#comment-17029557 ] 

Hyukjin Kwon commented on SPARK-30712:
--------------------------------------

To do that, it should actually reads the file, and potentially every file. I think it adds some more overhead. I am not yet so positive about this.
This JIRA relates to SPARK-24914

> 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.0.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