Package com.gpudb.protocol
Class ExecuteSqlRequest.Options
- java.lang.Object
-
- com.gpudb.protocol.ExecuteSqlRequest.Options
-
- Enclosing class:
- ExecuteSqlRequest
public static final class ExecuteSqlRequest.Options extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOST_BASED_OPTIMIZATIONIfFALSE, disables the cost-based optimization of the given query.static StringCURRENT_SCHEMAUse the supplied value as the default schema when processing this SQL command.static StringDISTRIBUTED_JOINSIfTRUE, enables the use of distributed joins in servicing the given query.static StringDISTRIBUTED_OPERATIONSIfTRUE, enables the use of distributed operations in servicing the given query.static StringFALSEstatic StringIGNORE_EXISTING_PKSpecifies the record collision error-suppression policy for inserting into or updating a table with a primary key, only used when primary key record collisions are rejected (UPDATE_ON_EXISTING_PKisFALSE).static StringLATE_MATERIALIZATIONIfTRUE, Joins/Filters results will always be materialized ( saved to result tables format).static StringPAGING_TABLEWhen specified (orPAGING_TABLE_TTLis set), the system will create a paging table to hold the results of the query, when the output has more records than are in the response (i.e., whenhasMoreRecordsisTRUE).static StringPAGING_TABLE_TTLSets the TTL of the paging tablestatic StringPARALLEL_EXECUTIONIfFALSE, disables the parallel step execution of the given query.static StringPLAN_CACHEIfFALSE, disables plan caching for the given query.static StringPREPARE_MODEIfTRUE, compiles a query into an execution plan and saves it in query cache.static StringPRESERVE_DICT_ENCODINGIfTRUE, then columns that were dict encoded in the source table will be dict encoded in the projection table.static StringQUERY_PARAMETERSQuery parameters in JSON array or arrays (for inserting multiple rows).static StringRESULTS_CACHINGIfFALSE, disables caching of the results of the given query.static StringRULE_BASED_OPTIMIZATIONIfFALSE, disables rule-based rewrite optimizations for the given query.static StringSSQ_OPTIMIZATIONIfFALSE, scalar subqueries will be translated into joins.static StringTRUEstatic StringTTLSets the TTL of the intermediate result tables used in query execution.static StringUPDATE_ON_EXISTING_PKSpecifies the record collision policy for inserting into or updating a table with a primary key.static StringVALIDATE_CHANGE_COLUMNWhen changing a column using alter table, validate the change before applying it.
-
-
-
Field Detail
-
COST_BASED_OPTIMIZATION
public static final String COST_BASED_OPTIMIZATION
IfFALSE, disables the cost-based optimization of the given query. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
-
DISTRIBUTED_JOINS
public static final String DISTRIBUTED_JOINS
IfTRUE, enables the use of distributed joins in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
DISTRIBUTED_OPERATIONS
public static final String DISTRIBUTED_OPERATIONS
IfTRUE, enables the use of distributed operations in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
IGNORE_EXISTING_PK
public static final String IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into or updating a table with a primary key, only used when primary key record collisions are rejected (UPDATE_ON_EXISTING_PKisFALSE). If set toTRUE, any record insert/update that is rejected for resulting in a primary key collision with an existing table record will be ignored with no error generated. IfFALSE, the rejection of any insert/update for resulting in a primary key collision will cause an error to be reported. If the specified table does not have a primary key or ifUPDATE_ON_EXISTING_PKisTRUE, then this option has no effect. Supported values:TRUE: Ignore inserts/updates that result in primary key collisions with existing recordsFALSE: Treat as errors any inserts/updates that result in primary key collisions with existing records
FALSE.- See Also:
- Constant Field Values
-
LATE_MATERIALIZATION
public static final String LATE_MATERIALIZATION
IfTRUE, Joins/Filters results will always be materialized ( saved to result tables format). Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
PAGING_TABLE
public static final String PAGING_TABLE
When specified (orPAGING_TABLE_TTLis set), the system will create a paging table to hold the results of the query, when the output has more records than are in the response (i.e., whenhasMoreRecordsisTRUE). If the specified paging table exists, the records from the paging table are returned without re-evaluating the query. It is the caller's responsibility to clear thepagingTableand other tables in theRESULT_TABLE_LIST(both returned in the response) when they are done with this query.- See Also:
- Constant Field Values
-
PAGING_TABLE_TTL
public static final String PAGING_TABLE_TTL
Sets the TTL of the paging table. -1 indicates no timeout. Setting this option will cause a paging table to be generated when needed. ThepagingTableand other tables in theRESULT_TABLE_LIST(both returned in the response) will be automatically cleared after the TTL expires, if set to a positive number. However, it is still recommended that the caller clear these tables when they are done with this query.- See Also:
- Constant Field Values
-
PARALLEL_EXECUTION
public static final String PARALLEL_EXECUTION
IfFALSE, disables the parallel step execution of the given query. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
PLAN_CACHE
public static final String PLAN_CACHE
- See Also:
- Constant Field Values
-
PREPARE_MODE
public static final String PREPARE_MODE
IfTRUE, compiles a query into an execution plan and saves it in query cache. Query execution is not performed and an empty response will be returned to user. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
PRESERVE_DICT_ENCODING
public static final String PRESERVE_DICT_ENCODING
IfTRUE, then columns that were dict encoded in the source table will be dict encoded in the projection table. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
QUERY_PARAMETERS
public static final String QUERY_PARAMETERS
Query parameters in JSON array or arrays (for inserting multiple rows). This can be used instead ofdataandrequestSchemaStr.- See Also:
- Constant Field Values
-
RESULTS_CACHING
public static final String RESULTS_CACHING
IfFALSE, disables caching of the results of the given query. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
RULE_BASED_OPTIMIZATION
public static final String RULE_BASED_OPTIMIZATION
IfFALSE, disables rule-based rewrite optimizations for the given query. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
SSQ_OPTIMIZATION
public static final String SSQ_OPTIMIZATION
IfFALSE, scalar subqueries will be translated into joins. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
TTL
public static final String TTL
Sets the TTL of the intermediate result tables used in query execution.- See Also:
- Constant Field Values
-
UPDATE_ON_EXISTING_PK
public static final String UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into or updating a table with a primary key. If set toTRUE, any existing table record with primary key values that match those of a record being inserted or updated will be replaced by that record. If set toFALSE, any such primary key collision will result in the insert/update being rejected and the error handled as determined byIGNORE_EXISTING_PK. If the specified table does not have a primary key, then this option has no effect. Supported values:TRUE: Replace the collided-into record with the record inserted or updated when a new/modified record causes a primary key collision with an existing recordFALSE: Reject the insert or update when it results in a primary key collision with an existing record
FALSE.- See Also:
- Constant Field Values
-
VALIDATE_CHANGE_COLUMN
public static final String VALIDATE_CHANGE_COLUMN
When changing a column using alter table, validate the change before applying it. IfTRUE, then validate all values. A value too large (or too long) for the new type will prevent any change. IfFALSE, then when a value is too large or long, it will be truncated. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
CURRENT_SCHEMA
public static final String CURRENT_SCHEMA
Use the supplied value as the default schema when processing this SQL command.- See Also:
- Constant Field Values
-
-