diff options
author | Reynold Xin <rxin@databricks.com> | 2015-04-22 21:35:42 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-04-22 21:35:42 -0700 |
commit | d20686066e978dd12e618e3978f109f05bc412fe (patch) | |
tree | 2ad1995d045b18a1aa966bb1d1b6fc205ef33eae /sql/catalyst/src | |
parent | 1b85e08509a0e19dc35b6ab869977254156cdaf1 (diff) | |
download | spark-d20686066e978dd12e618e3978f109f05bc412fe.tar.gz spark-d20686066e978dd12e618e3978f109f05bc412fe.tar.bz2 spark-d20686066e978dd12e618e3978f109f05bc412fe.zip |
[SPARK-7066][MLlib] VectorAssembler should use NumericType not NativeType.
Author: Reynold Xin <rxin@databricks.com>
Closes #5642 from rxin/mllib-native-type and squashes the following commits:
e23af5b [Reynold Xin] Remove StringType
7cbb205 [Reynold Xin] [SPARK-7066][MLlib] VectorAssembler should use NumericType and StringType, not NativeType.
Diffstat (limited to 'sql/catalyst/src')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala index 7cd7bd1914..ddf9d664c6 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala @@ -299,7 +299,7 @@ class NullType private() extends DataType { case object NullType extends NullType -protected[spark] object NativeType { +protected[sql] object NativeType { val all = Seq( IntegerType, BooleanType, LongType, DoubleType, FloatType, ShortType, ByteType, StringType) @@ -327,7 +327,7 @@ protected[sql] object PrimitiveType { } } -protected[spark] abstract class NativeType extends DataType { +protected[sql] abstract class NativeType extends DataType { private[sql] type JvmType @transient private[sql] val tag: TypeTag[JvmType] private[sql] val ordering: Ordering[JvmType] |