← persistent_assignment operator page · general/persistent_assignment/sc/integer_literal

Integer literal 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

SC_r <- 3: a scalar assigned to a persistent result.

Manual:

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.

Expected:

SC_r = 3, an Integer, as for SC_r := 3.

script.vtl ⇩

SC_r <- 3;

expected/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_r", "type": "Integer", "value": "3"}
  ]
}