Skip to main content

◆ aggregateUniqueRaw() [1/2]

RawAggregateUniqueResponse gpudb::GPUdb::aggregateUniqueRaw (const AggregateUniqueRequest &request_) const

Returns all the unique values from a particular column (specified by columnName) of a particular table or view (specified by tableName).

If columnName is a numeric column, the values will be in binaryEncodedResponse. Otherwise if columnName is a string column, the values will be in jsonEncodedResponse. The results can be paged via offset and 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 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 columnName, 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 columnName is an unrestricted-length string.

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

◆ aggregateUniqueRaw() [2/2]

RawAggregateUniqueResponse & gpudb::GPUdb::aggregateUniqueRaw (const AggregateUniqueRequest &request_,
RawAggregateUniqueResponse &response_ ) const

Returns all the unique values from a particular column (specified by columnName) of a particular table or view (specified by tableName).

If columnName is a numeric column, the values will be in binaryEncodedResponse. Otherwise if columnName is a string column, the values will be in jsonEncodedResponse. The results can be paged via offset and 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 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 columnName, 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 columnName is an unrestricted-length string.

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).