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