Skip to main content
pub struct AggregateUnpivotRequestOptions 

    pub create_temp_table: String,
    pub collection_name: String,
    pub result_table: String,
    pub result_table_persist: String,
    pub expression: String,
    pub order_by: String,
    pub chunk_size: String,
    pub chunk_column_max_memory: String,
    pub chunk_max_memory: String,
    pub compression_codec: String,
    pub limit: String,
    pub ttl: String,
    pub view_id: String,
    pub create_indexes: String,
    pub result_table_force_replicated: String,

Optional parameters for the /aggregate/unpivot 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 is non-existent, it will be automatically created.

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. If present, no results are returned in the response.

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.

expression: String

Filter expression to apply to the table prior to unpivot processing.

order_by: String

Comma-separated list of the columns to be sorted by; e.g. ‘timestamp asc, x desc’. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name.

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.

compression_codec: String

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

limit: String

The number of records to keep.

ttl: String

Sets the TTL of the table specified in result_table.

view_id: String

View this result table is part of.

create_indexes: String

Comma-separated list of columns on which to create indexes on the table specified in result_table. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name.

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.

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