|
@@ -26,6 +26,8 @@ name, all but the rightmost column with the same new name are dropped.
|
|
|
The `RENAME` processing command renames one or more columns. If a column with
|
|
|
the new name already exists, it will be replaced by the new column.
|
|
|
|
|
|
+A `RENAME` with multiple column renames is equivalent to multiple sequential `RENAME` commands.
|
|
|
+
|
|
|
*Examples*
|
|
|
|
|
|
[source,esql]
|
|
@@ -40,3 +42,11 @@ Multiple columns can be renamed with a single `RENAME` command:
|
|
|
----
|
|
|
include::{esql-specs}/docs.csv-spec[tag=renameMultipleColumns]
|
|
|
----
|
|
|
+
|
|
|
+
|
|
|
+With multiple `RENAME` commands:
|
|
|
+
|
|
|
+[source,esql]
|
|
|
+----
|
|
|
+include::{esql-specs}/docs.csv-spec[tag=renameMultipleColumnsDifferentCommands]
|
|
|
+----
|