Skip to main content

Constants for the fields of the /create/projection request.

Option fields

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 this projection.

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 this projection.

pub const CHUNK_SIZE: &str = “chunk_size”;

Indicates the number of records per chunk to be used for this projection.

pub const COLLECTION_NAME: &str = “collection_name”;

[DEPRECATED–please specify the containing schema for the projection as part of projection_name and use /create/schema to create the schema if non-existent] Name of a schema for the projection. If the schema is non-existent, it will be automatically created.

pub const COMPRESSION_CODEC: &str = “compression_codec”;

The default compression codec for the projection’s columns.

pub const CREATE_INDEXES: &str = “create_indexes”;

Comma-separated list of columns on which to create indexes on the projection. 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.

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 projection_name. If 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_projection_name.

pub const EXPRESSION: &str = “expression”;

An optional filter expression to be applied to the source table prior to the projection.

pub const FALSE: &str = “false”;
pub const HASH: &str = “HASH”;

Use hash partitioning.

pub const INTERVAL: &str = “INTERVAL”;

Use interval partitioning.

pub const IS_AUTOMATIC_PARTITION: &str = “is_automatic_partition”;

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

pub const IS_REPLICATED: &str = “is_replicated”;

If true then the projection will be replicated even if the source table is not.

pub const JOIN_WINDOW_FUNCTIONS: &str = “join_window_functions”;

If set, window functions which require a reshard will be computed separately and joined back together, if the width of the projection is greater than the join_window_functions_threshold.

pub const JOIN_WINDOW_FUNCTIONS_THRESHOLD: &str = “join_window_functions_threshold”;

If the projection is greater than this width (in bytes), then window functions which require a reshard will be computed separately and joined back together.

pub const LIMIT: &str = “limit”;

The number of records to keep.

pub const LIST: &str = “LIST”;

Use list partitioning.

pub const OFFSET: &str = “offset”;

The number of initial results to skip (this can be useful for paging through the results).

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 column_names. If any alias is given for any column name, the alias must be used, rather than the original column name.

pub const PARTITION_DEFINITIONS: &str = “partition_definitions”;

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.

pub const PARTITION_KEYS: &str = “partition_keys”;

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.

pub const PARTITION_TYPE: &str = “partition_type”;

Partitioning scheme to use.

pub const PERSIST: &str = “persist”;

If true, then the projection specified in projection_name will be persisted and will not expire unless a ttl is specified. If false, then the projection will be an in-memory table and will expire unless a ttl is specified otherwise.

pub const PRESERVE_DICT_ENCODING: &str = “preserve_dict_encoding”;

If true, then columns that were dict encoded in the source table will be dict encoded in the projection.

pub const QUALIFY_FILTER: &str = “qualify_filter”;

An optional filter expression applied to the projection after window function evaluation, equivalent to a SQL QUALIFY clause. May reference window function aliases as well as any other column in the projection. Rows for which the expression evaluates to false (or NULL) are removed from the projection.

pub const RANGE: &str = “RANGE”;

Use range partitioning.

pub const RETAIN_PARTITIONS: &str = “retain_partitions”;

Determines whether the created projection will retain the partitioning scheme from the source table.

pub const SERIES: &str = “SERIES”;

Use series partitioning.

pub const SHARD_KEY: &str = “shard_key”;

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.

pub const STRATEGY_DEFINITION: &str = “strategy_definition”;

The tier strategy for the table and its columns.

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

Sets the TTL of the projection specified in projection_name.

pub const VIEW_ID: &str = “view_id”;

ID of view of which this projection is a member.