← concat operator page · string/concat/sc_sc/two_strings

Two strings 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

the concatenation of two input scalars, SC_1 || SC_2 with SC_1 = Hello and SC_2 = , World.

Manual:

String concatenation: "Concatenates two strings. For example, "Hello" || ", World" gives "Hello, World"."

Expected:

SC_r is Hello, World, a String.

script.vtl ⇩

SC_r := SC_1 || SC_2;

input/scalars.csv ⇩

SC_1SC_2
Hello, World

input/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_1", "type": "String"},
    {"name": "SC_2", "type": "String"}
  ]
}

expected/scalars.json ⇩

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