diff options
author | Travis Crawford <travis@medium.com> | 2016-03-30 16:59:52 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-30 16:59:52 -0700 |
commit | da54abfd8730ef752eca921089bcf568773bd24a (patch) | |
tree | caffe6260f202b2ab1834630546891c5401c8b96 /project | |
parent | 258a2434193aae62999102a8df73ca70bf0cb9f1 (diff) | |
download | spark-da54abfd8730ef752eca921089bcf568773bd24a.tar.gz spark-da54abfd8730ef752eca921089bcf568773bd24a.tar.bz2 spark-da54abfd8730ef752eca921089bcf568773bd24a.zip |
[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.
Diffstat (limited to 'project')
0 files changed, 0 insertions, 0 deletions