← cross_join operator page · join/cross_join/bare/expression_without_alias

Expression without alias 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

a cross join of DS_1 and the expression DS_2 [filter Me_1 > 0], with no alias; both have Me_1.

Manual:

Cross Join: the components of several data sets are prefixed with the alias, else with "the data set name", and the aliases "are mandatory ... for non-named data set obtained as result of a sub-expression".

Expected:

the error 1-1-13-2, "the operand {operand} needs an alias": the expression is a non-named data set with no alias, and Me_1, in both operands, needs a prefix.

script.vtl ⇩

DS_r := cross_join(DS_1, DS_2 [filter Me_1 > 0]);

input/DS_1.csv ⇩

Id_1Me_1
110
220

input/DS_1.json ⇩

{
  "datasets": [
    {
      "name": "DS_1",
      "DataStructure": [
        {"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
        {"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
      ]
    }
  ]
}

input/DS_2.csv ⇩

Id_2Me_1
A1
B2

input/DS_2.json ⇩

{
  "datasets": [
    {
      "name": "DS_2",
      "DataStructure": [
        {"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
        {"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
      ]
    }
  ]
}

expected/error.json ⇩

{"code": "1-1-13-2"}