← full_join operator page · join/full_join/calc_default/overwrite_identifier
pandas ✅ · DuckDB ✅
calc Id_2 := "X" with no role: the calculated component has the name of the identifier Id_2, which both operands have.
Full Join: "If a generated component already exists in any of the input data sets, all input components homonymous to the former are removed, and only the generated component is kept".
the error 1-1-6-13, "Not allowed to overwrite an Identifier: {comp_name}", for "if any of the removed components were identifiers, an error is raised": the calc would remove the identifier Id_2.
DS_r := full_join(DS_1, DS_2 calc Id_2 := "X");
| Id_1 | Id_2 | Me_1 |
|---|---|---|
| 1 | A | 10 |
| 1 | B | 20 |
| 2 | A | 30 |
| 2 | B | 40 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Me_2 |
|---|---|---|
| 1 | A | 1 |
| 1 | C | 2 |
| 2 | A | 3 |
| 2 | B | 4 |
{
"datasets": [
{
"name": "DS_2",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_2", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
{"code": "1-1-6-13"}