Github user mpjlu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19516#discussion_r146741139
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala ---
    @@ -291,9 +291,13 @@ final class ChiSqSelectorModel private[ml] (
         val featureAttributes: Array[Attribute] = if 
(origAttrGroup.attributes.nonEmpty) {
           origAttrGroup.attributes.get.zipWithIndex.filter(x => 
selector.contains(x._2)).map(_._1)
         } else {
    -      Array.fill[Attribute](selector.size)(NominalAttribute.defaultAttr)
    +      null
    --- End diff --
    
    Change the error description is ok, but ChiSqSelector maybe not the only 
case causes this error. StringIndexer, QuantileDiscretizer may also causes this 
error. 
    Maybe we need a solution for this problem? 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to