|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorMsg>
org.apache.hadoop.hive.ql.ErrorMsg
public enum ErrorMsg
List of all error messages. This list contains both compile time and run-time errors.
Method Summary | |
---|---|
static String |
findSQLState(String mesg)
For a given error message string, searches for a ErrorMsg enum
that appears to be a match. |
int |
getErrorCode()
|
String |
getErrorCodedMsg()
|
static Pattern |
getErrorCodePattern()
|
static ErrorMsg |
getErrorMsg(int errorCode)
Given an error code, returns the ErrorMsg object associated with it. |
static ErrorMsg |
getErrorMsg(String mesg)
Given an error message string, returns the ErrorMsg object associated with it. |
String |
getMsg()
|
String |
getMsg(ASTNode tree)
|
String |
getMsg(ASTNode tree,
String reason)
|
String |
getMsg(String reason)
|
String |
getMsg(org.antlr.runtime.tree.Tree tree)
|
String |
getMsg(org.antlr.runtime.tree.Tree tree,
String reason)
|
String |
getSQLState()
|
static String |
getText(ASTNode tree)
|
static void |
renderOrigin(StringBuilder sb,
ASTNodeOrigin origin)
|
static ErrorMsg |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorMsg[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ErrorMsg GENERIC_ERROR
public static final ErrorMsg INVALID_TABLE
public static final ErrorMsg INVALID_COLUMN
public static final ErrorMsg INVALID_INDEX
public static final ErrorMsg INVALID_TABLE_OR_COLUMN
public static final ErrorMsg AMBIGUOUS_TABLE_OR_COLUMN
public static final ErrorMsg INVALID_PARTITION
public static final ErrorMsg AMBIGUOUS_COLUMN
public static final ErrorMsg AMBIGUOUS_TABLE_ALIAS
public static final ErrorMsg INVALID_TABLE_ALIAS
public static final ErrorMsg NO_TABLE_ALIAS
public static final ErrorMsg INVALID_FUNCTION
public static final ErrorMsg INVALID_FUNCTION_SIGNATURE
public static final ErrorMsg INVALID_OPERATOR_SIGNATURE
public static final ErrorMsg INVALID_ARGUMENT
public static final ErrorMsg INVALID_ARGUMENT_LENGTH
public static final ErrorMsg INVALID_ARGUMENT_TYPE
public static final ErrorMsg INVALID_JOIN_CONDITION_1
public static final ErrorMsg INVALID_JOIN_CONDITION_2
public static final ErrorMsg INVALID_JOIN_CONDITION_3
public static final ErrorMsg INVALID_TRANSFORM
public static final ErrorMsg DUPLICATE_GROUPBY_KEY
public static final ErrorMsg UNSUPPORTED_MULTIPLE_DISTINCTS
public static final ErrorMsg NO_SUBQUERY_ALIAS
public static final ErrorMsg NO_INSERT_INSUBQUERY
public static final ErrorMsg NON_KEY_EXPR_IN_GROUPBY
public static final ErrorMsg INVALID_XPATH
public static final ErrorMsg INVALID_PATH
public static final ErrorMsg ILLEGAL_PATH
public static final ErrorMsg INVALID_NUMERICAL_CONSTANT
public static final ErrorMsg INVALID_ARRAYINDEX_CONSTANT
public static final ErrorMsg INVALID_MAPINDEX_CONSTANT
public static final ErrorMsg INVALID_MAPINDEX_TYPE
public static final ErrorMsg NON_COLLECTION_TYPE
public static final ErrorMsg SELECT_DISTINCT_WITH_GROUPBY
public static final ErrorMsg COLUMN_REPEATED_IN_PARTITIONING_COLS
public static final ErrorMsg DUPLICATE_COLUMN_NAMES
public static final ErrorMsg INVALID_BUCKET_NUMBER
public static final ErrorMsg COLUMN_REPEATED_IN_CLUSTER_SORT
public static final ErrorMsg SAMPLE_RESTRICTION
public static final ErrorMsg SAMPLE_COLUMN_NOT_FOUND
public static final ErrorMsg NO_PARTITION_PREDICATE
public static final ErrorMsg INVALID_DOT
public static final ErrorMsg INVALID_TBL_DDL_SERDE
public static final ErrorMsg TARGET_TABLE_COLUMN_MISMATCH
public static final ErrorMsg TABLE_ALIAS_NOT_ALLOWED
public static final ErrorMsg CLUSTERBY_DISTRIBUTEBY_CONFLICT
public static final ErrorMsg ORDERBY_DISTRIBUTEBY_CONFLICT
public static final ErrorMsg CLUSTERBY_SORTBY_CONFLICT
public static final ErrorMsg ORDERBY_SORTBY_CONFLICT
public static final ErrorMsg CLUSTERBY_ORDERBY_CONFLICT
public static final ErrorMsg NO_LIMIT_WITH_ORDERBY
public static final ErrorMsg NO_CARTESIAN_PRODUCT
public static final ErrorMsg UNION_NOTIN_SUBQ
public static final ErrorMsg INVALID_INPUT_FORMAT_TYPE
public static final ErrorMsg INVALID_OUTPUT_FORMAT_TYPE
public static final ErrorMsg NO_VALID_PARTN
public static final ErrorMsg NO_OUTER_MAPJOIN
public static final ErrorMsg INVALID_MAPJOIN_HINT
public static final ErrorMsg INVALID_MAPJOIN_TABLE
public static final ErrorMsg NON_BUCKETED_TABLE
public static final ErrorMsg BUCKETED_NUMERATOR_BIGGER_DENOMINATOR
public static final ErrorMsg NEED_PARTITION_ERROR
public static final ErrorMsg CTAS_CTLT_COEXISTENCE
public static final ErrorMsg LINES_TERMINATED_BY_NON_NEWLINE
public static final ErrorMsg CTAS_COLLST_COEXISTENCE
public static final ErrorMsg CTLT_COLLST_COEXISTENCE
public static final ErrorMsg INVALID_SELECT_SCHEMA
public static final ErrorMsg CTAS_PARCOL_COEXISTENCE
public static final ErrorMsg CTAS_MULTI_LOADFILE
public static final ErrorMsg CTAS_EXTTBL_COEXISTENCE
public static final ErrorMsg INSERT_EXTERNAL_TABLE
public static final ErrorMsg DATABASE_NOT_EXISTS
public static final ErrorMsg TABLE_ALREADY_EXISTS
public static final ErrorMsg COLUMN_ALIAS_ALREADY_EXISTS
public static final ErrorMsg UDTF_MULTIPLE_EXPR
public static final ErrorMsg UDTF_REQUIRE_AS
public static final ErrorMsg UDTF_NO_GROUP_BY
public static final ErrorMsg UDTF_NO_SORT_BY
public static final ErrorMsg UDTF_NO_CLUSTER_BY
public static final ErrorMsg UDTF_NO_DISTRIBUTE_BY
public static final ErrorMsg UDTF_INVALID_LOCATION
public static final ErrorMsg UDTF_LATERAL_VIEW
public static final ErrorMsg UDTF_ALIAS_MISMATCH
public static final ErrorMsg UDF_STATEFUL_INVALID_LOCATION
public static final ErrorMsg LATERAL_VIEW_WITH_JOIN
public static final ErrorMsg LATERAL_VIEW_INVALID_CHILD
public static final ErrorMsg OUTPUT_SPECIFIED_MULTIPLE_TIMES
public static final ErrorMsg INVALID_AS
public static final ErrorMsg VIEW_COL_MISMATCH
public static final ErrorMsg DML_AGAINST_VIEW
public static final ErrorMsg ANALYZE_VIEW
public static final ErrorMsg VIEW_PARTITION_TOTAL
public static final ErrorMsg VIEW_PARTITION_MISMATCH
public static final ErrorMsg PARTITION_DYN_STA_ORDER
public static final ErrorMsg DYNAMIC_PARTITION_DISABLED
public static final ErrorMsg DYNAMIC_PARTITION_STRICT_MODE
public static final ErrorMsg DYNAMIC_PARTITION_MERGE
public static final ErrorMsg NONEXISTPARTCOL
public static final ErrorMsg UNSUPPORTED_TYPE
public static final ErrorMsg CREATE_NON_NATIVE_AS
public static final ErrorMsg LOAD_INTO_NON_NATIVE
public static final ErrorMsg LOCKMGR_NOT_SPECIFIED
public static final ErrorMsg LOCKMGR_NOT_INITIALIZED
public static final ErrorMsg LOCK_CANNOT_BE_ACQUIRED
public static final ErrorMsg ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED
public static final ErrorMsg OVERWRITE_ARCHIVED_PART
public static final ErrorMsg ARCHIVE_METHODS_DISABLED
public static final ErrorMsg ARCHIVE_ON_MULI_PARTS
public static final ErrorMsg UNARCHIVE_ON_MULI_PARTS
public static final ErrorMsg ARCHIVE_ON_TABLE
public static final ErrorMsg RESERVED_PART_VAL
public static final ErrorMsg HOLD_DDLTIME_ON_NONEXIST_PARTITIONS
public static final ErrorMsg OFFLINE_TABLE_OR_PARTITION
public static final ErrorMsg OUTERJOIN_USES_FILTERS
public static final ErrorMsg NEED_PARTITION_SPECIFICATION
public static final ErrorMsg INVALID_METADATA
public static final ErrorMsg NEED_TABLE_SPECIFICATION
public static final ErrorMsg PARTITION_EXISTS
public static final ErrorMsg TABLE_DATA_EXISTS
public static final ErrorMsg INCOMPATIBLE_SCHEMA
public static final ErrorMsg EXIM_FOR_NON_NATIVE
public static final ErrorMsg INSERT_INTO_BUCKETIZED_TABLE
public static final ErrorMsg NO_COMPARE_BIGINT_STRING
public static final ErrorMsg NO_COMPARE_BIGINT_DOUBLE
public static final ErrorMsg PARTSPEC_DIFFER_FROM_SCHEMA
public static final ErrorMsg PARTITION_COLUMN_NON_PRIMITIVE
public static final ErrorMsg INSERT_INTO_DYNAMICPARTITION_IFNOTEXISTS
public static final ErrorMsg UDAF_INVALID_LOCATION
public static final ErrorMsg DROP_PARTITION_NON_STRING_PARTCOLS_NONEQUALITY
public static final ErrorMsg ALTER_COMMAND_FOR_VIEWS
public static final ErrorMsg ALTER_COMMAND_FOR_TABLES
public static final ErrorMsg ALTER_VIEW_DISALLOWED_OP
public static final ErrorMsg ALTER_TABLE_NON_NATIVE
public static final ErrorMsg SORTMERGE_MAPJOIN_FAILED
public static final ErrorMsg BUCKET_MAPJOIN_NOT_POSSIBLE
public static final ErrorMsg BUCKETED_TABLE_METADATA_INCORRECT
public static final ErrorMsg JOINNODE_OUTERJOIN_MORETHAN_8
public static final ErrorMsg INVALID_JDO_FILTER_EXPRESSION
public static final ErrorMsg SHOW_CREATETABLE_INDEX
public static final ErrorMsg LOAD_INTO_STORED_AS_DIR
public static final ErrorMsg ALTER_TBL_STOREDASDIR_NOT_SKEWED
public static final ErrorMsg ALTER_TBL_SKEWED_LOC_NO_LOC
public static final ErrorMsg ALTER_TBL_SKEWED_LOC_NO_MAP
public static final ErrorMsg SUPPORT_DIR_MUST_TRUE_FOR_LIST_BUCKETING
public static final ErrorMsg SKEWED_TABLE_NO_COLUMN_NAME
public static final ErrorMsg SKEWED_TABLE_NO_COLUMN_VALUE
public static final ErrorMsg SKEWED_TABLE_DUPLICATE_COLUMN_NAMES
public static final ErrorMsg SKEWED_TABLE_INVALID_COLUMN
public static final ErrorMsg SKEWED_TABLE_SKEWED_COL_NAME_VALUE_MISMATCH_1
public static final ErrorMsg SKEWED_TABLE_SKEWED_COL_NAME_VALUE_MISMATCH_2
public static final ErrorMsg SKEWED_TABLE_SKEWED_COL_NAME_VALUE_MISMATCH_3
public static final ErrorMsg ALTER_TABLE_NOT_ALLOWED_RENAME_SKEWED_COLUMN
public static final ErrorMsg HIVE_INTERNAL_DDL_LIST_BUCKETING_DISABLED
public static final ErrorMsg HIVE_GROUPING_SETS_AGGR_NOMAPAGGR
public static final ErrorMsg HIVE_GROUPING_SETS_AGGR_EXPRESSION_INVALID
public static final ErrorMsg HIVE_GROUPING_SETS_AGGR_NOFUNC
public static final ErrorMsg HIVE_UNION_REMOVE_OPTIMIZATION_NEEDS_SUBDIRECTORIES
public static final ErrorMsg HIVE_GROUPING_SETS_EXPR_NOT_IN_GROUPBY
public static final ErrorMsg SCRIPT_INIT_ERROR
public static final ErrorMsg SCRIPT_IO_ERROR
public static final ErrorMsg SCRIPT_GENERIC_ERROR
public static final ErrorMsg SCRIPT_CLOSING_ERROR
public static final ErrorMsg STATSPUBLISHER_NOT_OBTAINED
public static final ErrorMsg STATSPUBLISHER_INITIALIZATION_ERROR
public static final ErrorMsg STATSPUBLISHER_CONNECTION_ERROR
public static final ErrorMsg STATSPUBLISHER_PUBLISHING_ERROR
public static final ErrorMsg STATSPUBLISHER_CLOSING_ERROR
public static final ErrorMsg COLUMNSTATSCOLLECTOR_INVALID_PART_KEY
public static final ErrorMsg COLUMNSTATSCOLLECTOR_INCORRECT_NUM_PART_KEY
public static final ErrorMsg COLUMNSTATSCOLLECTOR_INVALID_PARTITION
public static final ErrorMsg COLUMNSTATSCOLLECTOR_INVALID_SYNTAX
public static final ErrorMsg COLUMNSTATSCOLLECTOR_PARSE_ERROR
public static final ErrorMsg COLUMNSTATSCOLLECTOR_IO_ERROR
Method Detail |
---|
public static ErrorMsg[] values()
for (ErrorMsg c : ErrorMsg.values()) System.out.println(c);
public static ErrorMsg valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ErrorMsg getErrorMsg(String mesg)
mesg
- An error message string
public static ErrorMsg getErrorMsg(int errorCode)
errorCode
- An error code
public static String findSQLState(String mesg)
ErrorMsg
enum
that appears to be a match. If an match is found, returns the
SQLState
associated with the ErrorMsg
. If a match
is not found or ErrorMsg
has no SQLState
, returns
the SQLState
bound to the GENERIC_ERROR
ErrorMsg
.
mesg
- An error message string
public static String getText(ASTNode tree)
public String getMsg(ASTNode tree)
public static void renderOrigin(StringBuilder sb, ASTNodeOrigin origin)
public String getMsg(org.antlr.runtime.tree.Tree tree)
public String getMsg(ASTNode tree, String reason)
public String getMsg(org.antlr.runtime.tree.Tree tree, String reason)
public String getMsg(String reason)
public String getErrorCodedMsg()
public static Pattern getErrorCodePattern()
public String getMsg()
public String getSQLState()
public int getErrorCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |