Skip to content
Snippets Groups Projects
Commit 0fe66744 authored by Josh Rosen's avatar Josh Rosen
Browse files

[SPARK-9784] [SQL] Exchange.isUnsafe should check whether codegen and unsafe are enabled

Exchange.isUnsafe should check whether codegen and unsafe are enabled.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #8073 from JoshRosen/SPARK-9784 and squashes the following commits:

7a1019f [Josh Rosen] [SPARK-9784] Exchange.isUnsafe should check whether codegen and unsafe are enabled
parent d2852127
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ case class Exchange(newPartitioning: Partitioning, child: SparkPlan) extends Una
* 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) &&
unsafeEnabled && codegenEnabled && GenerateUnsafeProjection.canSupport(child.schema) &&
!newPartitioning.isInstanceOf[RangePartitioning]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment