Class QueryException
- java.lang.Object
-
- org.apache.pinot.common.exception.QueryException
-
public class QueryException extends Object
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description static ProcessingExceptiongetException(ProcessingException processingException, String errorMessage)static ProcessingExceptiongetException(ProcessingException processingException, Throwable t)static StringgetTruncatedStackTrace(Throwable t)static booleanisClientError(int errorCode)Determines if a query-exception-error-code represents an error on the client side.static voidsetMaxLinesOfStackTrace(int maxLinesOfStackTracePerFrame)
-
-
-
Field Detail
-
JSON_PARSING_ERROR_CODE
public static final int JSON_PARSING_ERROR_CODE
- See Also:
- Constant Field Values
-
JSON_COMPILATION_ERROR_CODE
public static final int JSON_COMPILATION_ERROR_CODE
- See Also:
- Constant Field Values
-
SQL_PARSING_ERROR_CODE
public static final int SQL_PARSING_ERROR_CODE
- See Also:
- Constant Field Values
-
SEGMENT_PLAN_EXECUTION_ERROR_CODE
public static final int SEGMENT_PLAN_EXECUTION_ERROR_CODE
- See Also:
- Constant Field Values
-
COMBINE_SEGMENT_PLAN_TIMEOUT_ERROR_CODE
public static final int COMBINE_SEGMENT_PLAN_TIMEOUT_ERROR_CODE
- See Also:
- Constant Field Values
-
ACCESS_DENIED_ERROR_CODE
public static final int ACCESS_DENIED_ERROR_CODE
- See Also:
- Constant Field Values
-
TABLE_DOES_NOT_EXIST_ERROR_CODE
public static final int TABLE_DOES_NOT_EXIST_ERROR_CODE
- See Also:
- Constant Field Values
-
QUERY_EXECUTION_ERROR_CODE
public static final int QUERY_EXECUTION_ERROR_CODE
- See Also:
- Constant Field Values
-
QUERY_CANCELLATION_ERROR_CODE
public static final int QUERY_CANCELLATION_ERROR_CODE
- See Also:
- Constant Field Values
-
SERVER_SHUTTING_DOWN_ERROR_CODE
public static final int SERVER_SHUTTING_DOWN_ERROR_CODE
- See Also:
- Constant Field Values
-
SERVER_OUT_OF_CAPACITY_ERROR_CODE
public static final int SERVER_OUT_OF_CAPACITY_ERROR_CODE
- See Also:
- Constant Field Values
-
SERVER_TABLE_MISSING_ERROR_CODE
public static final int SERVER_TABLE_MISSING_ERROR_CODE
- See Also:
- Constant Field Values
-
SERVER_SEGMENT_MISSING_ERROR_CODE
public static final int SERVER_SEGMENT_MISSING_ERROR_CODE
- See Also:
- Constant Field Values
-
QUERY_SCHEDULING_TIMEOUT_ERROR_CODE
public static final int QUERY_SCHEDULING_TIMEOUT_ERROR_CODE
- See Also:
- Constant Field Values
-
EXECUTION_TIMEOUT_ERROR_CODE
public static final int EXECUTION_TIMEOUT_ERROR_CODE
- See Also:
- Constant Field Values
-
DATA_TABLE_SERIALIZATION_ERROR_CODE
public static final int DATA_TABLE_SERIALIZATION_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_GATHER_ERROR_CODE
public static final int BROKER_GATHER_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_SEGMENT_UNAVAILABLE_ERROR_CODE
public static final int BROKER_SEGMENT_UNAVAILABLE_ERROR_CODE
- See Also:
- Constant Field Values
-
DATA_TABLE_DESERIALIZATION_ERROR_CODE
public static final int DATA_TABLE_DESERIALIZATION_ERROR_CODE
- See Also:
- Constant Field Values
-
FUTURE_CALL_ERROR_CODE
public static final int FUTURE_CALL_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_TIMEOUT_ERROR_CODE
public static final int BROKER_TIMEOUT_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_RESOURCE_MISSING_ERROR_CODE
public static final int BROKER_RESOURCE_MISSING_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_INSTANCE_MISSING_ERROR_CODE
public static final int BROKER_INSTANCE_MISSING_ERROR_CODE
- See Also:
- Constant Field Values
-
BROKER_REQUEST_SEND_ERROR_CODE
public static final int BROKER_REQUEST_SEND_ERROR_CODE
- See Also:
- Constant Field Values
-
SERVER_NOT_RESPONDING_ERROR_CODE
public static final int SERVER_NOT_RESPONDING_ERROR_CODE
- See Also:
- Constant Field Values
-
TOO_MANY_REQUESTS_ERROR_CODE
public static final int TOO_MANY_REQUESTS_ERROR_CODE
- See Also:
- Constant Field Values
-
INTERNAL_ERROR_CODE
public static final int INTERNAL_ERROR_CODE
- See Also:
- Constant Field Values
-
MERGE_RESPONSE_ERROR_CODE
public static final int MERGE_RESPONSE_ERROR_CODE
- See Also:
- Constant Field Values
-
FEDERATED_BROKER_UNAVAILABLE_ERROR_CODE
public static final int FEDERATED_BROKER_UNAVAILABLE_ERROR_CODE
- See Also:
- Constant Field Values
-
COMBINE_GROUP_BY_EXCEPTION_ERROR_CODE
public static final int COMBINE_GROUP_BY_EXCEPTION_ERROR_CODE
- See Also:
- Constant Field Values
-
QUERY_VALIDATION_ERROR_CODE
public static final int QUERY_VALIDATION_ERROR_CODE
- See Also:
- Constant Field Values
-
UNKNOWN_COLUMN_ERROR_CODE
public static final int UNKNOWN_COLUMN_ERROR_CODE
- See Also:
- Constant Field Values
-
UNKNOWN_ERROR_CODE
public static final int UNKNOWN_ERROR_CODE
- See Also:
- Constant Field Values
-
JSON_PARSING_ERROR
public static final ProcessingException JSON_PARSING_ERROR
-
JSON_COMPILATION_ERROR
public static final ProcessingException JSON_COMPILATION_ERROR
-
SQL_PARSING_ERROR
public static final ProcessingException SQL_PARSING_ERROR
-
ACCESS_DENIED_ERROR
public static final ProcessingException ACCESS_DENIED_ERROR
-
SEGMENT_PLAN_EXECUTION_ERROR
public static final ProcessingException SEGMENT_PLAN_EXECUTION_ERROR
-
COMBINE_SEGMENT_PLAN_TIMEOUT_ERROR
public static final ProcessingException COMBINE_SEGMENT_PLAN_TIMEOUT_ERROR
-
TABLE_DOES_NOT_EXIST_ERROR
public static final ProcessingException TABLE_DOES_NOT_EXIST_ERROR
-
QUERY_EXECUTION_ERROR
public static final ProcessingException QUERY_EXECUTION_ERROR
-
QUERY_CANCELLATION_ERROR
public static final ProcessingException QUERY_CANCELLATION_ERROR
-
SERVER_SCHEDULER_DOWN_ERROR
public static final ProcessingException SERVER_SCHEDULER_DOWN_ERROR
-
SERVER_OUT_OF_CAPACITY_ERROR
public static final ProcessingException SERVER_OUT_OF_CAPACITY_ERROR
-
SERVER_TABLE_MISSING_ERROR
public static final ProcessingException SERVER_TABLE_MISSING_ERROR
-
SERVER_SEGMENT_MISSING_ERROR
public static final ProcessingException SERVER_SEGMENT_MISSING_ERROR
-
QUERY_SCHEDULING_TIMEOUT_ERROR
public static final ProcessingException QUERY_SCHEDULING_TIMEOUT_ERROR
-
EXECUTION_TIMEOUT_ERROR
public static final ProcessingException EXECUTION_TIMEOUT_ERROR
-
DATA_TABLE_SERIALIZATION_ERROR
public static final ProcessingException DATA_TABLE_SERIALIZATION_ERROR
-
BROKER_GATHER_ERROR
public static final ProcessingException BROKER_GATHER_ERROR
-
DATA_TABLE_DESERIALIZATION_ERROR
public static final ProcessingException DATA_TABLE_DESERIALIZATION_ERROR
-
FUTURE_CALL_ERROR
public static final ProcessingException FUTURE_CALL_ERROR
-
BROKER_SEGMENT_UNAVAILABLE_ERROR
public static final ProcessingException BROKER_SEGMENT_UNAVAILABLE_ERROR
-
BROKER_TIMEOUT_ERROR
public static final ProcessingException BROKER_TIMEOUT_ERROR
-
BROKER_RESOURCE_MISSING_ERROR
public static final ProcessingException BROKER_RESOURCE_MISSING_ERROR
-
BROKER_INSTANCE_MISSING_ERROR
public static final ProcessingException BROKER_INSTANCE_MISSING_ERROR
-
INTERNAL_ERROR
public static final ProcessingException INTERNAL_ERROR
-
MERGE_RESPONSE_ERROR
public static final ProcessingException MERGE_RESPONSE_ERROR
-
FEDERATED_BROKER_UNAVAILABLE_ERROR
public static final ProcessingException FEDERATED_BROKER_UNAVAILABLE_ERROR
-
COMBINE_GROUP_BY_EXCEPTION_ERROR
public static final ProcessingException COMBINE_GROUP_BY_EXCEPTION_ERROR
-
QUERY_VALIDATION_ERROR
public static final ProcessingException QUERY_VALIDATION_ERROR
-
UNKNOWN_COLUMN_ERROR
public static final ProcessingException UNKNOWN_COLUMN_ERROR
-
UNKNOWN_ERROR
public static final ProcessingException UNKNOWN_ERROR
-
QUOTA_EXCEEDED_ERROR
public static final ProcessingException QUOTA_EXCEEDED_ERROR
-
-
Method Detail
-
setMaxLinesOfStackTrace
public static void setMaxLinesOfStackTrace(int maxLinesOfStackTracePerFrame)
-
getException
public static ProcessingException getException(ProcessingException processingException, Throwable t)
-
getException
public static ProcessingException getException(ProcessingException processingException, String errorMessage)
-
isClientError
public static boolean isClientError(int errorCode)
Determines if a query-exception-error-code represents an error on the client side.- Parameters:
errorCode- the error code from processing the query- Returns:
- whether the code indicates client error or not
-
-