[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org