rename_col#

Type of operation: Projection

Description#

Renames a column.

rename_col will include all existing columns in the dataset while renaming the specified columns from the input dataset to the output dataset. Argument structure is newname:oldname. Includes necessary primary key fields and time fields needed for downstream analysis.

Usage#

rename_col columnbinding_1, columnbinding_2, ...

Argument

Type

Optional

Repeatable

Restrictions

columnbinding

expression

no

yes

none

Accelerable#

rename_col is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs can be accelerated, making queries on the dataset respond faster.

Examples#

rename_col event_time:input_time, uid:sourceHost, status_code:httpStatus

Renames the input columns to ‘event_time’, ‘uid’, ‘status_code’ while still retaining the rest of the columns in the table

Aliases#

  • colrename (deprecated)