← non_persistent_assignment operator page · general/non_persistent_assignment/ds/boolean_measure
pandas ✅ · DuckDB ✅
DS_r := DS_1 on a Boolean measure: the two boolean values, true and false, 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 | true |
| 2 | false |
| 3 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Boolean", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Me_1 |
|---|---|
| 1 | true |
| 2 | false |
| 3 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Boolean", "role": "Measure", "nullable": true}
]
}
]
}