We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad938bf commit 2e34f3cCopy full SHA for 2e34f3c
mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala
@@ -39,7 +39,8 @@ private[feature] trait StringIndexerBase extends Params with HasInputCol with Ha
39
val inputColName = map(inputCol)
40
val inputDataType = schema(inputColName).dataType
41
require(inputDataType == StringType || inputDataType.isInstanceOf[NumericType],
42
- s"The input column $inputColName must be either string type or numeric type.")
+ s"The input column $inputColName must be either string type or numeric type, " +
43
+ s"but got $inputDataType.")
44
val inputFields = schema.fields
45
val outputColName = map(outputCol)
46
require(inputFields.forall(_.name != outputColName),
0 commit comments