set_col_enum¶
Type of operation: Metadata
Description¶
Mark specified columns as enumerations, or not, so that the user interface can present them appropriately.
Arguments are colname:bool where the bool value must be known at compile time. Columns that are enumerations are treated differently in GUI and visualization, such as using top-k summaries instead of histograms or sparklines.
Usage¶
set_col_enum col_1, col_2, ...
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
col |
expression |
no |
yes |
none |
Accelerable¶
set_col_enum 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¶
set_col_enum cluster_uid:false, cluster_index:false, cluster_name: true
Marks the columns cluster_uid and cluster_index as scalar values, and marks the column cluster_name as an enumeration value.
Aliases¶
colenum
(deprecated)