Constants for the fields of the /aggregate/unpivot 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 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 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_INDEXES: &str = “create_indexes”;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.
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 EXPRESSION: &str = “expression”;Filter expression to apply to the table prior to unpivot processing.
pub const FALSE: &str = “false”;pub const LIMIT: &str = “limit”;The number of records to keep.
pub const ORDER_BY: &str = “order_by”;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.
pub const RESULT_TABLE: &str = “result_table”;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.
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_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 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”;View this result table is part of.