Rotate the column values into rows values.For unpivot details and examples, see Unpivot.
For limitations, see
Unpivot Limitations.Unpivot is used to normalize tables that are built for cross tabular reporting
purposes. The unpivot operator rotates the column values for all the pivoted
columns. A variable column, value column and all columns from the source table
except the unpivot columns are projected into the result table. The variable
column and value columns in the result table indicate the pivoted column name
and values respectively.The response is returned as a dynamic schema. For details see:
dynamic schemas documentation.
Name of the table on which the operation will be performed. Must be an existing table/view, in [schema_name.]table_name format, using standard name resolution rules.
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 is non-existent, it will be automatically created.
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.
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:
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.The default value is ”.
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.
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.
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:
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: