You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2019/03/22 10:07:00 UTC

[jira] [Resolved] (SPARK-27235) Remove the Dead code in HashedRelation.scala file from sql core module

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

Sean Owen resolved SPARK-27235.
-------------------------------
    Resolution: Invalid

This isn't dead code. Option(SparkEnv.get) may be None

> Remove the Dead code in HashedRelation.scala file from sql core module
> ----------------------------------------------------------------------
>
>                 Key: SPARK-27235
>                 URL: https://issues.apache.org/jira/browse/SPARK-27235
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Shivu Sondur
>            Priority: Trivial
>
> Remove the Dead code in HashedRelation.scala file from sql core module, This code is never be used.
> val pageSizeBytes = Option(SparkEnv.get).map(_.memoryManager.pageSizeBytes)
>  .getOrElse(new SparkConf().getSizeAsBytes("spark.buffer.pageSize", "16m"))
>  
> Here the else part is never be executed, as it is always gets value from get method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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