Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-34697][SQL] Allow DESCRIBE FUNCTION and SHOW FUNCTIONS explain…
… about || (string concatenation operator) ### What changes were proposed in this pull request? This PR fixes the behavior of `SHOW FUNCTIONS` and `DESCRIBE FUNCTION` for the `||` operator. The result of `SHOW FUNCTIONS` doesn't contains `||` and `DESCRIBE FUNCTION ||` says `Function: || not found.` even though `||` is supported. ### Why are the changes needed? It's a bug. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Confirmed manually with the following commands. ``` spark-sql> DESCRIBE FUNCTION ||; Function: || Usage: expr1 || expr2 - Returns the concatenation of `expr1` and `expr2`. spark-sql> SHOW FUNCTIONS; ! != % ... | || ~ ``` Closes #31800 from sarutak/fix-describe-concat-pipe. Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
- Loading branch information