Skip to main content

◆ aggregateUnpivot() [1/4]

AggregateUnpivotResponse gpudb::GPUdb::aggregateUnpivot (const AggregateUnpivotRequest &request_) const

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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ aggregateUnpivot() [2/4]

AggregateUnpivotResponse & gpudb::GPUdb::aggregateUnpivot (const AggregateUnpivotRequest &request_,
AggregateUnpivotResponse &response_ ) const

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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ aggregateUnpivot() [3/4]

AggregateUnpivotResponse gpudb::GPUdb::aggregateUnpivot (const std::string &tableName,
const std::vector< std::string > &columnNames,
const std::string &variableColumnName,
const std::string &valueColumnName,
const std::vector< std::string > &pivotedColumns,
const std::map< std::string, std::string > &options ) const

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.

Parameters
[in]tableNameName 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.
[in]columnNamesList of column names or expressions. A wildcard ’*’ can be used to include all the non-pivoted columns from the source table.
[in]variableColumnNameSpecifies the variable/parameter column name. The default value is ”.
[in]valueColumnNameSpecifies the value column name. The default value is ”.
[in]pivotedColumnsList of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ aggregateUnpivot() [4/4]

AggregateUnpivotResponse & gpudb::GPUdb::aggregateUnpivot (const std::string &tableName,
const std::vector< std::string > &columnNames,
const std::string &variableColumnName,
const std::string &valueColumnName,
const std::vector< std::string > &pivotedColumns,
const std::map< std::string, std::string > &options,
AggregateUnpivotResponse &response_ ) const

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.

Parameters
[in]tableNameName 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.
[in]columnNamesList of column names or expressions. A wildcard ’*’ can be used to include all the non-pivoted columns from the source table.
[in]variableColumnNameSpecifies the variable/parameter column name. The default value is ”.
[in]valueColumnNameSpecifies the value column name. The default value is ”.
[in]pivotedColumnsList of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).