Convert common Hive external errors to user errors
@@ -26,11 +26,11 @@ public enum HiveErrorCode
{
HIVE_METASTORE_ERROR(0, EXTERNAL),
HIVE_CURSOR_ERROR(1, EXTERNAL),
- HIVE_TABLE_OFFLINE(2, EXTERNAL),
+ HIVE_TABLE_OFFLINE(2, USER_ERROR),
HIVE_CANNOT_OPEN_SPLIT(3, EXTERNAL),
HIVE_FILE_NOT_FOUND(4, EXTERNAL),
HIVE_UNKNOWN_ERROR(5, EXTERNAL),
- HIVE_PARTITION_OFFLINE(6, EXTERNAL),
+ HIVE_PARTITION_OFFLINE(6, USER_ERROR),
HIVE_BAD_DATA(7, EXTERNAL),
HIVE_PARTITION_SCHEMA_MISMATCH(8, EXTERNAL),
HIVE_MISSING_DATA(9, EXTERNAL),
@@ -44,8 +44,8 @@ public enum HiveErrorCode
// code HIVE_WRITER_ERROR(17) is deprecated
HIVE_SERDE_NOT_FOUND(18, EXTERNAL),
HIVE_UNSUPPORTED_FORMAT(19, EXTERNAL),
- HIVE_PARTITION_READ_ONLY(20, EXTERNAL),
- HIVE_TOO_MANY_OPEN_PARTITIONS(21, EXTERNAL),
+ HIVE_PARTITION_READ_ONLY(20, USER_ERROR),
+ HIVE_TOO_MANY_OPEN_PARTITIONS(21, USER_ERROR),
HIVE_CONCURRENT_MODIFICATION_DETECTED(22, EXTERNAL),
HIVE_COLUMN_ORDER_MISMATCH(23, USER_ERROR),
HIVE_FILE_MISSING_COLUMN_NAMES(24, EXTERNAL),
