hequn8128 commented on a change in pull request #6494: [FLINK-10059] [table] Add LTRIM supported in Table API and SQL URL: https://github.com/apache/flink/pull/6494#discussion_r208608871
########## File path: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/functions/ScalarFunctions.scala ########## @@ -212,4 +213,9 @@ object ScalarFunctions { */ def toBase64(base: String): String = Base64.encodeBase64String(base.getBytes()) + /** + * Returns the result string which trimmed the left spaces from the base string. + */ + def lTrim(base: String) = StringUtils.stripStart(base, " ") Review comment: Remove this function since there is one already in calcite. We can use it directly. Recovery this file. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services