← full_join operator page · join/full_join/calc_identifier/constant_identifier
pandas ✅ · DuckDB ✅
calc identifier Id_3 := "X", a new constant identifier.
Full Join: "The role of the new components can be specified"; Id_3 is new, so no identifier of the input is overwritten.
the full join keeps the five keys of both operands, with Me_2 null at (1,B) and Me_1 null at (1,C); each gets Id_3 = X and the keys stay unique. A constant is never null, so the decision of #1010 (1-1-1-16 for an identifier calculated from a declared-nullable expression) does not apply.
DS_r := full_join(DS_1, DS_2 calc identifier Id_3 := "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}
]
}
]
}
| Id_1 | Id_2 | Id_3 | Me_1 | Me_2 |
|---|---|---|---|---|
| 1 | A | X | 10 | 1 |
| 1 | B | X | 20 | |
| 1 | C | X | 2 | |
| 2 | A | X | 30 | 3 |
| 2 | B | X | 40 | 4 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Id_3", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "Number", "role": "Measure"},
{"name": "Me_2", "type": "Number", "role": "Measure"}
]
}
]
}