← trim operator page · string/trim/sc/leading_and_trailing_spaces

Leading and trailing spaces 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

trim of a string with spaces at both ends, where the page's example has a trailing space only.

Manual:

Whitespace removal: "Removes trailing or/and leading whitespace from a string. For example, trim("Hello ") gives "Hello"."

Expected:

SC_r is Hello, a String: both ends are trimmed.

script.vtl ⇩

SC_r := trim("  Hello  ");

expected/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_r", "type": "String", "value": "Hello"}
  ]
}