Github user gatorsmile commented on a diff in the pull request:
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameNaFunctions.scala ---
    @@ -366,11 +370,15 @@ final class DataFrameNaFunctions private[sql](df: 
DataFrame) {
           return df
    -    // replacementMap is either Map[String, String] or Map[Double, Double] 
or Map[Boolean,Boolean]
    -    val replacementMap: Map[_, _] = replacement.head._2 match {
    -      case v: String => replacement
    -      case v: Boolean => replacement
    -      case _ => { case (k, v) => (convertToDouble(k), 
convertToDouble(v)) }
    +    // replacementMap is either Map[String, String], Map[Double, Double], 
    +    // while value can have null
    --- End diff --
    If the types are not these three types, what are the behaviors? Could you 
explain them here? Also, please add negative examples too. Thanks~

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to