-
- Downloads
[SPARK-14081][SQL] - Preserve DataFrame column types when filling nulls.
## What changes were proposed in this pull request? This change resolves an issue where `DataFrameNaFunctions.fill` changes a `FloatType` column to a `DoubleType`. We also clarify the contract that replacement values will be cast to the column data type, which may change the replacement value when casting to a lower precision type. ## How was this patch tested? This patch has associated unit tests. Author: Travis Crawford <travis@medium.com> Closes #11967 from traviscrawford/SPARK-14081-dataframena.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/DataFrameNaFunctions.scala 10 additions, 8 deletions...ain/scala/org/apache/spark/sql/DataFrameNaFunctions.scala
- sql/core/src/test/scala/org/apache/spark/sql/DataFrameNaFunctionsSuite.scala 30 additions, 20 deletions...cala/org/apache/spark/sql/DataFrameNaFunctionsSuite.scala
Please register or sign in to comment