[
https://issues.apache.org/jira/browse/SPARK-9784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680482#comment-14680482
]
Apache Spark commented on SPARK-9784:
-------------------------------------
User 'JoshRosen' has created a pull request for this issue:
https://github.com/apache/spark/pull/8073
> Exchange.isUnsafe should check whether codegen and unsafe are enabled
> ---------------------------------------------------------------------
>
> Key: SPARK-9784
> URL: https://issues.apache.org/jira/browse/SPARK-9784
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.5.0
> Reporter: Josh Rosen
> Assignee: Josh Rosen
>
> Exchange needs to check whether unsafe mode is enabled in its
> {{tungstenMode}} method:
> {code}
> override def nodeName: String = if (tungstenMode) "TungstenExchange" else
> "Exchange"
> /**
> * Returns true iff we can support the data type, and we are not doing
> range partitioning.
> */
> private lazy val tungstenMode: Boolean = {
> GenerateUnsafeProjection.canSupport(child.schema) &&
> !newPartitioning.isInstanceOf[RangePartitioning]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]