Skip to main content

◆ createUnion() [1/4]

CreateUnionResponse gpudb::GPUdb::createUnion (const CreateUnionRequest &request_) const

Merges data from one or more tables with comparable data types into a new table.

The following merges are supported:

UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.

INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.

EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.

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

◆ createUnion() [2/4]

CreateUnionResponse & gpudb::GPUdb::createUnion (const CreateUnionRequest &request_,
CreateUnionResponse &response_ ) const

Merges data from one or more tables with comparable data types into a new table.

The following merges are supported:

UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.

INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.

EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.

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

◆ createUnion() [3/4]

CreateUnionResponse gpudb::GPUdb::createUnion (const std::string &tableName,
const std::vector< std::string > &tableNames,
const std::vector< std::vector< std::string > > &inputColumnNames,
const std::vector< std::string > &outputColumnNames,
const std::map< std::string, std::string > &options ) const

Merges data from one or more tables with comparable data types into a new table.

The following merges are supported:

UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.

INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.

EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.

Parameters
[in]tableNameName of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria.
[in]tableNamesThe list of table names to merge, in [schema_name.]table_name format, using standard name resolution rules. Must contain the names of one or more existing tables.
[in]inputColumnNamesThe list of columns from each of the corresponding input tables.
[in]outputColumnNamesThe list of names of the columns to be stored in the output table.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createUnion() [4/4]

CreateUnionResponse & gpudb::GPUdb::createUnion (const std::string &tableName,
const std::vector< std::string > &tableNames,
const std::vector< std::vector< std::string > > &inputColumnNames,
const std::vector< std::string > &outputColumnNames,
const std::map< std::string, std::string > &options,
CreateUnionResponse &response_ ) const

Merges data from one or more tables with comparable data types into a new table.

The following merges are supported:

UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.

INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.

EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.

Parameters
[in]tableNameName of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria.
[in]tableNamesThe list of table names to merge, in [schema_name.]table_name format, using standard name resolution rules. Must contain the names of one or more existing tables.
[in]inputColumnNamesThe list of columns from each of the corresponding input tables.
[in]outputColumnNamesThe list of names of the columns to be stored in the output table.
[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).