← concat operator page · string/concat/ds_sc/suffix_and_null_measure
pandas ✅ · DuckDB ✅
DS_1 || "!": a scalar appended to every value, where one measure is null.
String concatenation: "Concatenates two strings." The scalar is composed with every measure: "An operand Scalar value is composed with all the Measures of the other operand" (Typical behaviours).
Me_1 is hello! and world!. A null operand gives a null result: "most of the scalar operations (arithmetic, logical, and others) return null when any of their arguments is null" (User Manual), as the manual's length and instr examples show.
DS_r := DS_1 || "!";
| Id_1 | Me_1 |
|---|---|
| 1 | hello |
| 2 | world |
| 3 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "String", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Me_1 |
|---|---|
| 1 | hello! |
| 2 | world! |
| 3 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Me_1", "type": "String", "role": "Measure"}
]
}
]
}