lsyldliu commented on code in PR #25127:
URL: https://github.com/apache/flink/pull/25127#discussion_r1703130983
##########
flink-python/pyflink/table/expression.py:
##########
@@ -1315,6 +1315,16 @@ def rtrim(self) -> 'Expression[str]':
"""
return _unary_op("rtrim")(self)
+ def btrim(self, trim_str=None) -> 'Expression':
+ """
+ Removes any leading and trailing characters within trim_str from str.
+ trim_str is set to a space character by default.
Review Comment:
```suggestion
trim_str is set to whitespace by default.
```
##########
docs/data/sql_functions.yml:
##########
@@ -274,6 +274,12 @@ string:
- sql: RTRIM(string)
table: STRING.rtrim()
description: Returns a string that removes the right whitespaces from
STRING. E.g., 'This is a test String. '.rtrim() returns "This is a test
String.".
+ - sql: BTRIM(str[, trimStr])
+ table: str.btrim([trimStr])
+ description: |
+ Removes any leading and trailing characters within trimStr from str.
trimStr is set to a space character by default.
Review Comment:
```suggestion
Removes any leading and trailing characters within trimStr from str.
trimStr is set to whitespace by default.
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]