[SPARK-14081][SQL] - Preserve DataFrame column types when filling nulls.#11967
[SPARK-14081][SQL] - Preserve DataFrame column types when filling nulls.#11967traviscrawford wants to merge 1 commit intoapache:masterfrom
Conversation
There was a problem hiding this comment.
The data type pattern match has been removed because I believe its unnecessary. I'm happy to put this back, along with a comment describing what special-case it covers, if someone can clue me into why its needed.
There was a problem hiding this comment.
I think this is used to convert NaN values into null. Otherwise we won't fill NaN values.
|
Jenkins, this is ok to test. |
|
Test build #54216 has finished for PR 11967 at commit
|
|
@traviscrawford can you remove the part about this is your first contribution from the pr description? The pr description will actually become part of the commit. |
|
Looks like there is a test failure. |
834ee69 to
9dfe2dd
Compare
|
Test build #54523 has finished for PR 11967 at commit
|
|
@traviscrawford can you update the pr title to have a full sentence? github is cutting it off. |
|
LGTM - we should merge this as soon as you update the title. |
|
Title updated. |
|
Thanks - I've merged this in master. |
What changes were proposed in this pull request?
This change resolves an issue where
DataFrameNaFunctions.fillchanges aFloatTypecolumn to aDoubleType. 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.