← rename operator page · clause/rename/basic/identifier_renamed
pandas ✅ · DuckDB ✅
rename Id_2 to Id_3: an identifier renamed, where Manual example 1 of the multiple form renames a measure and an attribute.
Change of Component name: "The operator assigns new names to one or more Components (Identifier, Measure or Attribute Components)."
Id_3 stays an Identifier of type String, with the values of Id_2: A and B.
DS_r := DS_1 [ rename Id_2 to Id_3 ];
| Id_1 | Id_2 | Me_1 |
|---|---|---|
| 1 | A | 10 |
| 1 | B | 20 |
{
"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": "Integer", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_3 | Me_1 |
|---|---|---|
| 1 | A | 10 |
| 1 | B | 20 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Id_3", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "Integer", "role": "Measure"}
]
}
]
}