← rtrim operator page · string/rtrim/sc/trailing_removed_leading_kept

Trailing removed leading kept 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

rtrim 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 leading spaces are kept.

script.vtl ⇩

SC_r := rtrim("  Hello  ");

expected/scalars.json ⇩

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