Skip to main content
pub struct AggregateGroupByRequestOptions 

    pub create_temp_table: String,
    pub collection_name: String,
    pub expression: String,
    pub pipelined_expression_evaluation: String,
    pub having: String,
    pub sort_order: String,
    pub sort_by: String,
    pub order_by: String,
    pub strategy_definition: String,
    pub compression_codec: String,
    pub result_table: String,
    pub result_table_persist: String,
    pub result_table_force_replicated: String,
    pub result_table_generate_pk: String,
    pub result_table_generate_soft_pk: String,
    pub ttl: String,
    pub chunk_size: String,
    pub chunk_column_max_memory: String,
    pub chunk_max_memory: String,
    pub create_indexes: String,
    pub partition_type: String,
    pub partition_keys: String,
    pub partition_definitions: String,
    pub is_automatic_partition: String,
    pub view_id: String,
    pub pivot: String,
    pub pivot_values: String,
    pub grouping_sets: String,
    pub rollup: String,
    pub cube: String,
    pub shard_key: String,

Optional parameters for the /aggregate/groupby endpoint.

Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.

Fields

create_temp_table: String

If true, a unique temporary table name will be generated in the sys_temp schema and used in place of result_table. If result_table_persist is false (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in qualified_result_table_name. Server default: false.

collection_name: String

[DEPRECATED–please specify the containing schema as part of result_table and use /create/schema to create the schema if non-existent] Name of a schema which is to contain the table specified in result_table. If the schema provided is non-existent, it will be automatically created.

expression: String

Filter expression to apply to the table prior to computing the aggregate group by.

pipelined_expression_evaluation: String

Evaluate the group-by during last JoinedSet filter plan step. Server default: false.

having: String

Filter expression to apply to the aggregated results.

sort_order: String

[DEPRECATED–use order_by instead] String indicating how the returned values should be sorted - ascending or descending. Server default: ascending.

sort_by: String

[DEPRECATED–use order_by instead] String determining how the results are sorted. Server default: value.

order_by: String

Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’.

strategy_definition: String

The tier strategy for the table and its columns.

compression_codec: String

The default compression codec for the result table’s columns.

result_table: String

The name of a table used to store the results, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. Column names (group-by and aggregate fields) need to be given aliases e.g. [“FChar256 as fchar256”, “sum(FDouble) as sfd”]. If present, no results are returned in the response. This option is not available if one of the grouping attributes is an unrestricted string (i.e.; not charN) type.

result_table_persist: String

If true, then the result table specified in result_table will be persisted and will not expire unless a ttl is specified. If false, then the result table will be an in-memory table and will expire unless a ttl is specified otherwise. Server default: false.

result_table_force_replicated: String

Force the result table to be replicated (ignores any sharding). Must be used in combination with the result_table option. Server default: false.

result_table_generate_pk: String

If true then set a primary key for the result table. Must be used in combination with the result_table option. Server default: false.

result_table_generate_soft_pk: String

If true then set a soft primary key for the result table. Must be used in combination with the result_table option. Server default: false.

ttl: String

Sets the TTL of the table specified in result_table.

chunk_size: String

Indicates the number of records per chunk to be used for the result table. Must be used in combination with the result_table option.

chunk_column_max_memory: String

Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the result_table option.

chunk_max_memory: String

Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the result_table option.

create_indexes: String

Comma-separated list of columns on which to create indexes on the result table. Must be used in combination with the result_table option.

partition_type: String

Partitioning scheme to use for the result table.

partition_keys: String

Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by partition_definitions.

partition_definitions: String

Comma-separated list of partition definitions, whose format depends on the choice of partition_type. See range partitioning, interval partitioning, list partitioning, hash partitioning, or series partitioning for example formats.

is_automatic_partition: String

If true, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for list partitions. Server default: false.

view_id: String

ID of view of which the result table will be a member.

pivot: String

Pivot column.

pivot_values: String

Comma-separated list of the values in the pivot column. The list provided will become the column header prefixes in the output.

grouping_sets: String

Customize the grouping attribute sets to compute the aggregates. These sets can include ROLLUP or CUBE operators. The attribute sets should be enclosed in parentheses and can include composite attributes. All attributes specified in the grouping sets must present in the group-by attributes.

rollup: String

This option is used to specify the multilevel aggregates.

cube: String

This option is used to specify the multidimensional aggregates.

shard_key: String

Comma-separated list of the columns to be sharded on; e.g. ‘column1, column2’. The columns specified must be present in column_names. If any alias is given for any column name, the alias must be used, rather than the original column name.

Implementations

Converts the set (non-empty) options into the wire-format string map.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more