← cross_join operator page · join/cross_join/bare/expression_without_alias
pandas ✅ · DuckDB ✅
a cross join of DS_1 and the expression DS_2 [filter Me_1 > 0], with no alias; both have Me_1.
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".
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.
DS_r := cross_join(DS_1, DS_2 [filter Me_1 > 0]);
| Id_1 | Me_1 |
|---|---|
| 1 | 10 |
| 2 | 20 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_2 | Me_1 |
|---|---|
| A | 1 |
| B | 2 |
{
"datasets": [
{
"name": "DS_2",
"DataStructure": [
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
{"code": "1-1-13-2"}