beliefer opened a new pull request #31080:
URL: https://github.com/apache/spark/pull/31080


   ### What changes were proposed in this pull request?
   The current implement of `Trim`/`Ltrim`/`Rtrim` only support string, but 
support byte array is very useful.
   The function btrim supports byte array.
   The mainstream database support this feature show below:
   **Vertica**
   
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Functions/String/BTRIM.htm?tocpath=SQL%20Reference%20Manual%7CSQL%20Functions%7CString%20Functions%7C_____5
   
   **Redshift**
   https://docs.aws.amazon.com/redshift/latest/dg/r_BTRIM.html
   
   **Postgresql**
   https://www.postgresql.org/docs/11/functions-binarystring.html
   
   ### Why are the changes needed?
   btrim is very useful.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. btrim is a new function
   
   
   ### How was this patch tested?
   Jenkins test.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to