Returns all the unique values from a particular column (specified by input
parameter column_name) of a particular table or view (specified by input
parameter table_name). If input parameter column_name is a numeric column,
the values will be in output parameter binary_encoded_response. Otherwise if
input parameter column_name is a string column, the values will be in output
parameter json_encoded_response. The results can be paged via input
parameter offset and input parameter limit parameters.{“limit”:“10”,“sort_order”:“descending”}The response is returned as a dynamic schema. For details see:
dynamic schemas documentation.If a result_table name is specified in the input parameter options, the
results are stored in a new table with that name—no results are returned in
the response. Both the table name and resulting column name must adhere to
standard naming conventions; any column
expression will need to be aliased. If the source table’s
shard key is used as the input
parameter column_name, the result table will be sharded, in all other cases
it will be replicated. Sorting will properly function only if the result table
is replicated or if there is only one processing node and should not be relied
upon in other cases. Not available if the value of input parameter
column_name is an unrestricted-length string.
A positive integer indicating the number of initial results to skip (this can be useful for paging through the results).The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX_INT.
A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the max_get_records_size parameter in the server configuration. Use output parameter has_more_records to see if more records exist in the result to be fetched, and input parameter offset and input parameter limit to request subsequent pages of results.The default value is -9999.
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.The default value is false.The supported values are:
[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.
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 input parameter column_name is an unrestricted-length 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.The default value is false.The supported values are:
Force the result table to be replicated (ignores any sharding). Must be used in combination with the result_table option.The default value is false.The supported values are:
If true then set a primary key for the result table. Must be used in combination with the result_table option.The default value is false.The supported values are:
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.
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.
The Kinetica server embeds the endpoint response inside a standard response structure which contains status information and the actual response to the query. Here is a description of the various fields of the wrapper: