Skip to main content

Constants for the fields of the /aggregate/unique request.

Option fields

encoding

Constants for encoding.

pub const ARROW: &str = “arrow”;

Indicates that the returned records should be encoded as an Arrow IPC stream, returned in binary_encoded_response.

pub const BINARY: &str = “binary”;

Indicates that the returned records should be binary encoded.

pub const JSON: &str = “json”;

Indicates that the returned records should be JSON-encoded.

options

Constants for options.

pub const ASCENDING: &str = “ascending”;
pub const CHUNK_COLUMN_MAX_MEMORY: &str = “chunk_column_max_memory”;

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.

pub const CHUNK_MAX_MEMORY: &str = “chunk_max_memory”;

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.

pub const CHUNK_SIZE: &str = “chunk_size”;

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

pub const COLLECTION_NAME: &str = “collection_name”;

[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.

pub const COMPRESSION_CODEC: &str = “compression_codec”;

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

pub const CREATE_TEMP_TABLE: &str = “create_temp_table”;

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.

pub const DESCENDING: &str = “descending”;
pub const EXPRESSION: &str = “expression”;

Filter expression to apply to the table.

pub const FALSE: &str = “false”;
pub const ORDER_BY: &str = “order_by”;

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

pub const RESULT_TABLE: &str = “result_table”;

The name of the 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. Not available if column_name is an unrestricted-length string.

pub const RESULT_TABLE_FORCE_REPLICATED: &str = “result_table_force_replicated”;

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

pub const RESULT_TABLE_GENERATE_PK: &str = “result_table_generate_pk”;

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

pub const RESULT_TABLE_PERSIST: &str = “result_table_persist”;

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.

pub const SORT_ORDER: &str = “sort_order”;

String indicating how the returned values should be sorted.

pub const TRUE: &str = “true”;
pub const TTL: &str = “ttl”;

Sets the TTL of the table specified in result_table.

pub const VIEW_ID: &str = “view_id”;

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