project-rename 运算符project-rename operator

对结果输出中的列重命名。Renames columns in the result output.

T | project-rename new_column_name = column_name

语法Syntax

T | project-rename NewColumnName = ExistingColumnName [, ...]T | project-rename NewColumnName = ExistingColumnName [, ...]

参数Arguments

  • T:输入表。T: The input table.
  • NewColumnName:列的新名称。NewColumnName: The new name of a column.
  • ExistingColumnName:列的现有名称。ExistingColumnName: The existing name of a column.

返回Returns

一个表,其列的顺序与现有表中的顺序相同,但列已重命名。A table that has the columns in the same order as in an existing table, with columns renamed.

示例Examples

print a='a', b='b', c='c'
|  project-rename new_b=b, new_a=a
new_anew_a new_bnew_b cc
aa bb cc