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

Integer literal 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

SC_r := 3: a scalar assigned to a non-persistent result.

Manual:

Non-persistent assignment: "If the Operand op is a scalar value, the result Data Set has no Components and contains only such a scalar value. For example, income := 3 assigns the value 3 to the non-persistent Data Set named income."

Expected:

SC_r = 3, an Integer.

script.vtl ⇩

SC_r := 3;

expected/scalars.json ⇩

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