spark icon indicating copy to clipboard operation
spark copied to clipboard

[SPARK-40028][SQL] Add binary examples for string expressions

Open beliefer opened this issue 2 years ago • 1 comments

What changes were proposed in this pull request?

Currently, Spark have many string expressions support binary type, but missing examples of binary.

This PR will add examples of binary for some string expressions show below. Elt Contains StartsWith EndsWith StringLPad StringRPad Substring Left Length BitLength OctetLength Base64

Why are the changes needed?

Add binary examples for string expressions

Does this PR introduce any user-facing change?

'No'. Just update the document for some string expressions.

How was this patch tested?

ExpressionInfoSuite

beliefer avatar Aug 10 '22 03:08 beliefer

GA failure unrelated with this PR. ping @MaxGekk @gengliangwang @dongjoon-hyun @HyukjinKwon cc @cloud-fan

beliefer avatar Aug 10 '22 06:08 beliefer

Merged to master.

HyukjinKwon avatar Aug 10 '22 06:08 HyukjinKwon

@HyukjinKwon @gengliangwang @MaxGekk Thank you!

beliefer avatar Aug 10 '22 06:08 beliefer

Created a followup for this one https://github.com/apache/spark/pull/37462

gengliangwang avatar Aug 10 '22 07:08 gengliangwang