diff options
author | Reynold Xin <rxin@databricks.com> | 2015-04-22 21:35:12 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-04-22 21:35:12 -0700 |
commit | 1b85e08509a0e19dc35b6ab869977254156cdaf1 (patch) | |
tree | 41c83671e80b60ff5edeca21a105a2a0e6a51191 /mllib | |
parent | b69c4f9b2e8544f1b178db2aefbcaa166f76cb7a (diff) | |
download | spark-1b85e08509a0e19dc35b6ab869977254156cdaf1.tar.gz spark-1b85e08509a0e19dc35b6ab869977254156cdaf1.tar.bz2 spark-1b85e08509a0e19dc35b6ab869977254156cdaf1.zip |
[MLlib] UnaryTransformer nullability should not depend on PrimitiveType.
Author: Reynold Xin <rxin@databricks.com>
Closes #5644 from rxin/mllib-nullable and squashes the following commits:
a727e5b [Reynold Xin] [MLlib] UnaryTransformer nullability should not depend on primitive types.
Diffstat (limited to 'mllib')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/Transformer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/Transformer.scala b/mllib/src/main/scala/org/apache/spark/ml/Transformer.scala index 7fb87fe452..0acda71ec6 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/Transformer.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/Transformer.scala @@ -94,7 +94,7 @@ private[ml] abstract class UnaryTransformer[IN, OUT, T <: UnaryTransformer[IN, O throw new IllegalArgumentException(s"Output column ${map(outputCol)} already exists.") } val outputFields = schema.fields :+ - StructField(map(outputCol), outputDataType, !outputDataType.isPrimitive) + StructField(map(outputCol), outputDataType, nullable = false) StructType(outputFields) } |