#
# Autogenerated by Thrift Compiler (0.9.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
#  options string: py:new_style
#

from thrift.Thrift import TType, TMessageType, TException, TApplicationException

from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
  from thrift.protocol import fastbinary
except:
  fastbinary = None


class TErrorCode(object):
  OK = 0
  GENERAL = 1
  CANCELLED = 2
  ANALYSIS_ERROR = 3
  NOT_IMPLEMENTED_ERROR = 4
  RUNTIME_ERROR = 5
  MEM_LIMIT_EXCEEDED = 6
  INTERNAL_ERROR = 7
  RECOVERABLE_ERROR = 8
  PARQUET_MULTIPLE_BLOCKS = 9
  PARQUET_COLUMN_METADATA_INVALID = 10
  PARQUET_HEADER_PAGE_SIZE_EXCEEDED = 11
  PARQUET_HEADER_EOF = 12
  PARQUET_GROUP_ROW_COUNT_ERROR = 13
  PARQUET_GROUP_ROW_COUNT_OVERFLOW = 14
  PARQUET_MISSING_PRECISION = 15
  PARQUET_WRONG_PRECISION = 16
  PARQUET_BAD_CONVERTED_TYPE = 17
  PARQUET_INCOMPATIBLE_DECIMAL = 18
  SEQUENCE_SCANNER_PARSE_ERROR = 19
  SNAPPY_DECOMPRESS_INVALID_BLOCK_SIZE = 20
  SNAPPY_DECOMPRESS_INVALID_COMPRESSED_LENGTH = 21
  SNAPPY_DECOMPRESS_UNCOMPRESSED_LENGTH_FAILED = 22
  SNAPPY_DECOMPRESS_RAW_UNCOMPRESS_FAILED = 23
  SNAPPY_DECOMPRESS_DECOMPRESS_SIZE_INCORRECT = 24
  HDFS_SCAN_NODE_UNKNOWN_DISK = 25
  FRAGMENT_EXECUTOR = 26
  PARTITIONED_HASH_JOIN_MAX_PARTITION_DEPTH = 27
  PARTITIONED_AGG_MAX_PARTITION_DEPTH = 28
  MISSING_BUILTIN = 29
  RPC_GENERAL_ERROR = 30
  RPC_TIMEOUT = 31
  UDF_VERIFY_FAILED = 32
  PARQUET_CORRUPT_VALUE = 33
  AVRO_DECIMAL_RESOLUTION_ERROR = 34
  AVRO_DECIMAL_METADATA_MISMATCH = 35
  AVRO_SCHEMA_RESOLUTION_ERROR = 36
  AVRO_SCHEMA_METADATA_MISMATCH = 37
  AVRO_UNSUPPORTED_DEFAULT_VALUE = 38
  AVRO_MISSING_FIELD = 39
  AVRO_MISSING_DEFAULT = 40
  AVRO_NULLABILITY_MISMATCH = 41
  AVRO_NOT_A_RECORD = 42
  PARQUET_DEF_LEVEL_ERROR = 43
  PARQUET_NUM_COL_VALS_ERROR = 44
  PARQUET_DICT_DECODE_FAILURE = 45
  SSL_PASSWORD_CMD_FAILED = 46
  SSL_CERTIFICATE_PATH_BLANK = 47
  SSL_PRIVATE_KEY_PATH_BLANK = 48
  SSL_CERTIFICATE_NOT_FOUND = 49
  SSL_PRIVATE_KEY_NOT_FOUND = 50
  SSL_SOCKET_CREATION_FAILED = 51
  MEM_ALLOC_FAILED = 52
  PARQUET_REP_LEVEL_ERROR = 53
  PARQUET_UNRECOGNIZED_SCHEMA = 54
  COLLECTION_ALLOC_FAILED = 55
  TMP_DEVICE_BLACKLISTED = 56
  TMP_FILE_BLACKLISTED = 57
  RPC_CLIENT_CONNECT_FAILURE = 58
  STALE_METADATA_FILE_TOO_SHORT = 59
  PARQUET_BAD_VERSION_NUMBER = 60
  SCANNER_INCOMPLETE_READ = 61
  SCANNER_INVALID_READ = 62
  AVRO_BAD_VERSION_HEADER = 63
  IMPALA_2598_KERBEROS_SSL_DISALLOWED = 64

  _VALUES_TO_NAMES = {
    0: "OK",
    1: "GENERAL",
    2: "CANCELLED",
    3: "ANALYSIS_ERROR",
    4: "NOT_IMPLEMENTED_ERROR",
    5: "RUNTIME_ERROR",
    6: "MEM_LIMIT_EXCEEDED",
    7: "INTERNAL_ERROR",
    8: "RECOVERABLE_ERROR",
    9: "PARQUET_MULTIPLE_BLOCKS",
    10: "PARQUET_COLUMN_METADATA_INVALID",
    11: "PARQUET_HEADER_PAGE_SIZE_EXCEEDED",
    12: "PARQUET_HEADER_EOF",
    13: "PARQUET_GROUP_ROW_COUNT_ERROR",
    14: "PARQUET_GROUP_ROW_COUNT_OVERFLOW",
    15: "PARQUET_MISSING_PRECISION",
    16: "PARQUET_WRONG_PRECISION",
    17: "PARQUET_BAD_CONVERTED_TYPE",
    18: "PARQUET_INCOMPATIBLE_DECIMAL",
    19: "SEQUENCE_SCANNER_PARSE_ERROR",
    20: "SNAPPY_DECOMPRESS_INVALID_BLOCK_SIZE",
    21: "SNAPPY_DECOMPRESS_INVALID_COMPRESSED_LENGTH",
    22: "SNAPPY_DECOMPRESS_UNCOMPRESSED_LENGTH_FAILED",
    23: "SNAPPY_DECOMPRESS_RAW_UNCOMPRESS_FAILED",
    24: "SNAPPY_DECOMPRESS_DECOMPRESS_SIZE_INCORRECT",
    25: "HDFS_SCAN_NODE_UNKNOWN_DISK",
    26: "FRAGMENT_EXECUTOR",
    27: "PARTITIONED_HASH_JOIN_MAX_PARTITION_DEPTH",
    28: "PARTITIONED_AGG_MAX_PARTITION_DEPTH",
    29: "MISSING_BUILTIN",
    30: "RPC_GENERAL_ERROR",
    31: "RPC_TIMEOUT",
    32: "UDF_VERIFY_FAILED",
    33: "PARQUET_CORRUPT_VALUE",
    34: "AVRO_DECIMAL_RESOLUTION_ERROR",
    35: "AVRO_DECIMAL_METADATA_MISMATCH",
    36: "AVRO_SCHEMA_RESOLUTION_ERROR",
    37: "AVRO_SCHEMA_METADATA_MISMATCH",
    38: "AVRO_UNSUPPORTED_DEFAULT_VALUE",
    39: "AVRO_MISSING_FIELD",
    40: "AVRO_MISSING_DEFAULT",
    41: "AVRO_NULLABILITY_MISMATCH",
    42: "AVRO_NOT_A_RECORD",
    43: "PARQUET_DEF_LEVEL_ERROR",
    44: "PARQUET_NUM_COL_VALS_ERROR",
    45: "PARQUET_DICT_DECODE_FAILURE",
    46: "SSL_PASSWORD_CMD_FAILED",
    47: "SSL_CERTIFICATE_PATH_BLANK",
    48: "SSL_PRIVATE_KEY_PATH_BLANK",
    49: "SSL_CERTIFICATE_NOT_FOUND",
    50: "SSL_PRIVATE_KEY_NOT_FOUND",
    51: "SSL_SOCKET_CREATION_FAILED",
    52: "MEM_ALLOC_FAILED",
    53: "PARQUET_REP_LEVEL_ERROR",
    54: "PARQUET_UNRECOGNIZED_SCHEMA",
    55: "COLLECTION_ALLOC_FAILED",
    56: "TMP_DEVICE_BLACKLISTED",
    57: "TMP_FILE_BLACKLISTED",
    58: "RPC_CLIENT_CONNECT_FAILURE",
    59: "STALE_METADATA_FILE_TOO_SHORT",
    60: "PARQUET_BAD_VERSION_NUMBER",
    61: "SCANNER_INCOMPLETE_READ",
    62: "SCANNER_INVALID_READ",
    63: "AVRO_BAD_VERSION_HEADER",
    64: "IMPALA_2598_KERBEROS_SSL_DISALLOWED",
  }

  _NAMES_TO_VALUES = {
    "OK": 0,
    "GENERAL": 1,
    "CANCELLED": 2,
    "ANALYSIS_ERROR": 3,
    "NOT_IMPLEMENTED_ERROR": 4,
    "RUNTIME_ERROR": 5,
    "MEM_LIMIT_EXCEEDED": 6,
    "INTERNAL_ERROR": 7,
    "RECOVERABLE_ERROR": 8,
    "PARQUET_MULTIPLE_BLOCKS": 9,
    "PARQUET_COLUMN_METADATA_INVALID": 10,
    "PARQUET_HEADER_PAGE_SIZE_EXCEEDED": 11,
    "PARQUET_HEADER_EOF": 12,
    "PARQUET_GROUP_ROW_COUNT_ERROR": 13,
    "PARQUET_GROUP_ROW_COUNT_OVERFLOW": 14,
    "PARQUET_MISSING_PRECISION": 15,
    "PARQUET_WRONG_PRECISION": 16,
    "PARQUET_BAD_CONVERTED_TYPE": 17,
    "PARQUET_INCOMPATIBLE_DECIMAL": 18,
    "SEQUENCE_SCANNER_PARSE_ERROR": 19,
    "SNAPPY_DECOMPRESS_INVALID_BLOCK_SIZE": 20,
    "SNAPPY_DECOMPRESS_INVALID_COMPRESSED_LENGTH": 21,
    "SNAPPY_DECOMPRESS_UNCOMPRESSED_LENGTH_FAILED": 22,
    "SNAPPY_DECOMPRESS_RAW_UNCOMPRESS_FAILED": 23,
    "SNAPPY_DECOMPRESS_DECOMPRESS_SIZE_INCORRECT": 24,
    "HDFS_SCAN_NODE_UNKNOWN_DISK": 25,
    "FRAGMENT_EXECUTOR": 26,
    "PARTITIONED_HASH_JOIN_MAX_PARTITION_DEPTH": 27,
    "PARTITIONED_AGG_MAX_PARTITION_DEPTH": 28,
    "MISSING_BUILTIN": 29,
    "RPC_GENERAL_ERROR": 30,
    "RPC_TIMEOUT": 31,
    "UDF_VERIFY_FAILED": 32,
    "PARQUET_CORRUPT_VALUE": 33,
    "AVRO_DECIMAL_RESOLUTION_ERROR": 34,
    "AVRO_DECIMAL_METADATA_MISMATCH": 35,
    "AVRO_SCHEMA_RESOLUTION_ERROR": 36,
    "AVRO_SCHEMA_METADATA_MISMATCH": 37,
    "AVRO_UNSUPPORTED_DEFAULT_VALUE": 38,
    "AVRO_MISSING_FIELD": 39,
    "AVRO_MISSING_DEFAULT": 40,
    "AVRO_NULLABILITY_MISMATCH": 41,
    "AVRO_NOT_A_RECORD": 42,
    "PARQUET_DEF_LEVEL_ERROR": 43,
    "PARQUET_NUM_COL_VALS_ERROR": 44,
    "PARQUET_DICT_DECODE_FAILURE": 45,
    "SSL_PASSWORD_CMD_FAILED": 46,
    "SSL_CERTIFICATE_PATH_BLANK": 47,
    "SSL_PRIVATE_KEY_PATH_BLANK": 48,
    "SSL_CERTIFICATE_NOT_FOUND": 49,
    "SSL_PRIVATE_KEY_NOT_FOUND": 50,
    "SSL_SOCKET_CREATION_FAILED": 51,
    "MEM_ALLOC_FAILED": 52,
    "PARQUET_REP_LEVEL_ERROR": 53,
    "PARQUET_UNRECOGNIZED_SCHEMA": 54,
    "COLLECTION_ALLOC_FAILED": 55,
    "TMP_DEVICE_BLACKLISTED": 56,
    "TMP_FILE_BLACKLISTED": 57,
    "RPC_CLIENT_CONNECT_FAILURE": 58,
    "STALE_METADATA_FILE_TOO_SHORT": 59,
    "PARQUET_BAD_VERSION_NUMBER": 60,
    "SCANNER_INCOMPLETE_READ": 61,
    "SCANNER_INVALID_READ": 62,
    "AVRO_BAD_VERSION_HEADER": 63,
    "IMPALA_2598_KERBEROS_SSL_DISALLOWED": 64,
  }

