APPEND_TRAILING_CHAR_IF_ABSENT (Lakehouse v2)
Appends a trailing character to a string if it is not already present.
Analyze Syntax
Section titled “Analyze Syntax”func.append_trailing_char_if_absent(<str>, <char>)Analyze Examples
Section titled “Analyze Examples”func.append_trailing_char_if_absent('hello', '!')
┌──────────┐│ 'hello!' │└──────────┘SQL Syntax
Section titled “SQL Syntax”APPEND_TRAILING_CHAR_IF_ABSENT(<str>, <char>)SQL Examples
Section titled “SQL Examples”SELECT APPEND_TRAILING_CHAR_IF_ABSENT('hello', '!');
┌────────┐│ hello! │└────────┘