Skip to content

Conversation

@gatorsmile
Copy link
Member

What changes were proposed in this pull request?

#18164 introduces the behavior changes. We need to document it.

How was this patch tested?

N/A

@gatorsmile
Copy link
Member Author

cc @rberenguel @ueshin @HyukjinKwon

@SparkQA
Copy link

SparkQA commented Jan 11, 2018

Test build #85963 has finished for PR 20234 at commit ff30553.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for a nit.

- Since Spark 2.3, when all inputs are binary, `functions.concat()` returns an output as binary. Otherwise, it returns as a string. Until Spark 2.3, it always returns as a string despite of input types. To keep the old behavior, set `spark.sql.function.concatBinaryAsString` to `true`.

- Since Spark 2.3, when all inputs are binary, SQL `elt()` returns an output as binary. Otherwise, it returns as a string. Until Spark 2.3, it always returns as a string despite of input types. To keep the old behavior, set `spark.sql.function.eltOutputAsString` to `true`.
- In PySpark, `na.fill()` or `fillna` also accepts boolean and replaces NAs with booleans. In prior Spark versions, PySpark just ignores it and returns the original Dataset/DataFrame.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we say null instead of NA? I actually think null is more correct.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

@SparkQA
Copy link

SparkQA commented Jan 11, 2018

Test build #85965 has finished for PR 20234 at commit a2475ea.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master and branch-2.3.

asfgit pushed a commit that referenced this pull request Jan 11, 2018
…d fillna

## What changes were proposed in this pull request?
#18164 introduces the behavior changes. We need to document it.

## How was this patch tested?
N/A

Author: gatorsmile <[email protected]>

Closes #20234 from gatorsmile/docBehaviorChange.

(cherry picked from commit b46e58b)
Signed-off-by: hyukjinkwon <[email protected]>
@asfgit asfgit closed this in b46e58b Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants