← non_persistent_assignment operator page · general/non_persistent_assignment/ds/string_measure
pandas ✅ · DuckDB ✅
DS_r := DS_1 on a String measure: two strings, alpha and beta, and a null, which vtlengine loads, keeps and writes as they are.
Non-persistent assignment: "The result re is a non-persistent Data Set that has the same data structure as the Operand."
DS_1 as it is: every value comes back as it went in, the null included, and the structure keeps Id_1 not nullable and Me_1 nullable.
DS_r := DS_1;
| Id_1 | Me_1 |
|---|---|
| 1 | alpha |
| 2 | beta |
| 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 | alpha |
| 2 | beta |
| 3 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "String", "role": "Measure", "nullable": true}
]
}
]
}