Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37508][SQL][DOCS][FOLLOW-UP] Update expression desc of `CONTAI…
…NS()` string function ### What changes were proposed in this pull request? Update usage doc of `CONTAINS()` string function to ``` _FUNC_(left, right) - Returns a boolean. The value is True if right is found inside left. Returns NULL if either input expression is NULL. Otherwise, returns False. ``` To clarify that when left and right expression both not `NULL` and if right is not found inside left, returns `False` ### Why are the changes needed? Make function description more clear ### Does this PR introduce _any_ user-facing change? `DESCRIBE FUNCTION EXTENDED contains`'s usage now return: ``` contains(left, right) - Returns a boolean. The value is True if right is found inside left. Returns NULL if either input expression is NULL. Otherwise, returns False. ``` ### How was this patch tested? Verified it after documentation build or SQL command such s DESCRIBE FUNCTION EXTENDED contains. Closes apache#34786 from AngersZhuuuu/SPARK-37508-FOLLOWUP. Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information