Package org.apache.ignite.lang
Class ErrorGroups.Sql
java.lang.Object
org.apache.ignite.lang.ErrorGroups.Sql
- Enclosing class:
- ErrorGroups
SQL error group.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constraint violation error such as primary key violation.static final int
Statement canceled error.static final int
SQL engine was unable to map query on current cluster topology.static final int
Query without a result set error.static final int
Runtime error.static final int
Schema not found.static final ErrorGroup
SQL error group.static final int
Statement parsing error.static final int
Statement validation error.static final int
Execution of transaction control statement inside an external transaction is forbidden. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SQL_ERR_GROUP
SQL error group. -
QUERY_NO_RESULT_SET_ERR
public static final int QUERY_NO_RESULT_SET_ERRQuery without a result set error. -
SCHEMA_NOT_FOUND_ERR
public static final int SCHEMA_NOT_FOUND_ERRSchema not found. -
STMT_PARSE_ERR
public static final int STMT_PARSE_ERRStatement parsing error. This error is returned when an SQL statement string is not valid according to syntax rules. -
STMT_VALIDATION_ERR
public static final int STMT_VALIDATION_ERRStatement validation error. Although statement is grammatically correct, the semantic is in question. This error may appear in following cases:- the statement refer to relation that doesn't exists.
- the statement describes action that is prohibited by the system, like changing columns belonging to primary keys.
- the statement contains operation that is not defined for given operands' types, like addition of DATE and DECIMAL.
- etc
See message for details.
-
CONSTRAINT_VIOLATION_ERR
public static final int CONSTRAINT_VIOLATION_ERRConstraint violation error such as primary key violation. -
EXECUTION_CANCELLED_ERR
public static final int EXECUTION_CANCELLED_ERRStatement canceled error. Statement is canceled due to timeout, admin action, etc. -
RUNTIME_ERR
public static final int RUNTIME_ERRRuntime error. Errors caused by programming errors in SQL statement itself, such errors happen during statement execution:- Numeric overflow errors.
- Type conversion errors such as
SELECT CAST('abc' AS INTEGER)
. - Function execution errors.
-
MAPPING_ERR
public static final int MAPPING_ERRSQL engine was unable to map query on current cluster topology.This may be due to a variety of reasons, but most probably because of all nodes hosting certain system view or a table partition went offline.
See error message for details.
-
TX_CONTROL_INSIDE_EXTERNAL_TX_ERR
public static final int TX_CONTROL_INSIDE_EXTERNAL_TX_ERRExecution of transaction control statement inside an external transaction is forbidden.
-
-
Constructor Details
-
Sql
public Sql()
-