← ltrim operator page · string/ltrim/sc/leading_removed_trailing_kept

Leading removed trailing kept 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

ltrim of a string with two spaces at each end.

Manual:

Whitespace removal: "Removes trailing or/and leading whitespace from a string."

Expected:

SC_r is "Hello ", a String: the two trailing spaces are kept.

script.vtl ⇩

SC_r := ltrim("  Hello  ");

expected/scalars.json ⇩

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