← persistent_assignment operator page · general/persistent_assignment/sc/input_value
pandas ✅ · DuckDB ✅
SC_r <- SC_1 with the input scalar SC_1 = 3: a scalar read from the input, assigned to a persistent result.
Persistent assignment: "If the Operand op is a scalar value, the result Data Set has no Components and contains only such a scalar value", as in "income <- 3". That contradicts the page's "Input parameters type", op :: dataset, and its "Result type", result :: dataset: the example follows the Behaviour, as does the non-persistent assignment, whose op is dataset | scalar.
SC_r = 3, an Integer: the value of SC_1, as for SC_r := SC_1.
SC_r <- SC_1;
| SC_1 |
|---|
| 3 |
{
"scalars": [
{
"name": "SC_1",
"type": "Integer"
}
]
}
{
"scalars": [
{"name": "SC_r", "type": "Integer", "value": "3"}
]
}