← not_equal operator page · comparison/not_equal/sc_sc/different_numbers

Different numbers 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

SC_1 <> SC_2 with SC_1 = 5 and SC_2 = 9: two different numbers.

Manual:

Not equal to, semantics for scalar operations: "5 <> 9 gives true".

Expected:

SC_r = true, a Boolean: 5 and 9 are different numbers.

script.vtl ⇩

SC_r := SC_1 <> SC_2;

input/scalars.csv ⇩

SC_1SC_2
59

input/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_1", "type": "Integer"},
    {"name": "SC_2", "type": "Integer"}
  ]
}

expected/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_r", "type": "Boolean", "value": true}
  ]
}