Dylan He created FLINK-35910:
--------------------------------
Summary: Add BTRIM function
Key: FLINK-35910
URL: https://issues.apache.org/jira/browse/FLINK-35910
Project: Flink
Issue Type: Sub-task
Components: Table SQL / API
Reporter: Dylan He
Add BTRIM function as the same in Spark, where 'B' stands for BOTH.
----
Returns {{str}} with leading and trailing characters removed.
Syntax:
{code:sql}
BTRIM(str [, trimStr])
{code}
Arguments:
* {{{}str{}}}: A STRING expression.
* {{{}trimStr{}}}: An optional STRING expression with characters to be
trimmed. The default is a space character.
Returns:
A STRING.
See also:
*
[Spark|https://spark.apache.org/docs/3.5.1/sql-ref-functions-builtin.html#string-functions]
*
[Databricks|https://docs.databricks.com/en/sql/language-manual/functions/btrim.html]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)