CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseAtualizado 14/01/2025
btrim
function Applies to: Databricks SQL Databricks Runtime 10.4 LTS and above
Returns str
with leading and trailing characters removed.
str
: A STRING expression to be trimmed.
trimStr
: An optional STRING expression with characters to be trimmed. The default is a space character.
> SELECT 'X' || btrim(' SparkSQL ') || 'X';
XSparkSQLX
> SELECT btrim('abcaabaSparkSQLabcaaba', 'abc');
SparkSQL