FAQ
Repository: hive
Updated Branches:
   refs/heads/master bc528ba35 -> 251991568


http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote b/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote
old mode 100644
new mode 100755
index 1a5cf83..f580695
--- a/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote
+++ b/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote
@@ -1,6 +1,6 @@
  #!/usr/bin/env python
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #
@@ -12,27 +12,164 @@ import pprint
  from urlparse import urlparse
  from thrift.transport import TTransport
  from thrift.transport import TSocket
+from thrift.transport import TSSLSocket
  from thrift.transport import THttpClient
  from thrift.protocol import TBinaryProtocol

-import ThriftHive
-from ttypes import *
+from hive_service import ThriftHive
+from hive_service.ttypes import *

  if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print ''
- print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
- print ''
- print 'Functions:'
- print ' void execute(string query)'
- print ' string fetchOne()'
- print ' fetchN(i32 numRows)'
- print ' fetchAll()'
- print ' Schema getSchema()'
- print ' Schema getThriftSchema()'
- print ' HiveClusterStatus getClusterStatus()'
- print ' QueryPlan getQueryPlan()'
- print ' void clean()'
- print ''
+ print('')
+ print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]')
+ print('')
+ print('Functions:')
+ print(' void execute(string query)')
+ print(' string fetchOne()')
+ print(' fetchN(i32 numRows)')
+ print(' fetchAll()')
+ print(' Schema getSchema()')
+ print(' Schema getThriftSchema()')
+ print(' HiveClusterStatus getClusterStatus()')
+ print(' QueryPlan getQueryPlan()')
+ print(' void clean()')
+ print(' string getMetaConf(string key)')
+ print(' void setMetaConf(string key, string value)')
+ print(' void create_database(Database database)')
+ print(' Database get_database(string name)')
+ print(' void drop_database(string name, bool deleteData, bool cascade)')
+ print(' get_databases(string pattern)')
+ print(' get_all_databases()')
+ print(' void alter_database(string dbname, Database db)')
+ print(' Type get_type(string name)')
+ print(' bool create_type(Type type)')
+ print(' bool drop_type(string type)')
+ print(' get_type_all(string name)')
+ print(' get_fields(string db_name, string table_name)')
+ print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)')
+ print(' get_schema(string db_name, string table_name)')
+ print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)')
+ print(' void create_table(Table tbl)')
+ print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)')
+ print(' void drop_table(string dbname, string name, bool deleteData)')
+ print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)')
+ print(' get_tables(string db_name, string pattern)')
+ print(' get_all_tables(string db_name)')
+ print(' Table get_table(string dbname, string tbl_name)')
+ print(' get_table_objects_by_name(string dbname, tbl_names)')
+ print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)')
+ print(' void alter_table(string dbname, string tbl_name, Table new_tbl)')
+ print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)')
+ print(' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)')
+ print(' Partition add_partition(Partition new_part)')
+ print(' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)')
+ print(' i32 add_partitions( new_parts)')
+ print(' i32 add_partitions_pspec( new_parts)')
+ print(' Partition append_partition(string db_name, string tbl_name, part_vals)')
+ print(' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)')
+ print(' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)')
+ print(' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)')
+ print(' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)')
+ print(' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)')
+ print(' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)')
+ print(' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)')
+ print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)')
+ print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)')
+ print(' Partition get_partition(string db_name, string tbl_name, part_vals)')
+ print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)')
+ print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)')
+ print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)')
+ print(' get_partitions(string db_name, string tbl_name, i16 max_parts)')
+ print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)')
+ print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)')
+ print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)')
+ print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)')
+ print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)')
+ print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)')
+ print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)')
+ print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)')
+ print(' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)')
+ print(' get_partitions_by_names(string db_name, string tbl_name, names)')
+ print(' void alter_partition(string db_name, string tbl_name, Partition new_part)')
+ print(' void alter_partitions(string db_name, string tbl_name, new_parts)')
+ print(' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)')
+ print(' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)')
+ print(' bool partition_name_has_valid_characters( part_vals, bool throw_exception)')
+ print(' string get_config_value(string name, string defaultValue)')
+ print(' partition_name_to_vals(string part_name)')
+ print(' partition_name_to_spec(string part_name)')
+ print(' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)')
+ print(' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)')
+ print(' Index add_index(Index new_index, Table index_table)')
+ print(' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)')
+ print(' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)')
+ print(' Index get_index_by_name(string db_name, string tbl_name, string index_name)')
+ print(' get_indexes(string db_name, string tbl_name, i16 max_indexes)')
+ print(' get_index_names(string db_name, string tbl_name, i16 max_indexes)')
+ print(' bool update_table_column_statistics(ColumnStatistics stats_obj)')
+ print(' bool update_partition_column_statistics(ColumnStatistics stats_obj)')
+ print(' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)')
+ print(' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)')
+ print(' TableStatsResult get_table_statistics_req(TableStatsRequest request)')
+ print(' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)')
+ print(' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)')
+ print(' bool set_aggr_stats_for(SetPartitionsStatsRequest request)')
+ print(' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)')
+ print(' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)')
+ print(' void create_function(Function func)')
+ print(' void drop_function(string dbName, string funcName)')
+ print(' void alter_function(string dbName, string funcName, Function newFunc)')
+ print(' get_functions(string dbName, string pattern)')
+ print(' Function get_function(string dbName, string funcName)')
+ print(' bool create_role(Role role)')
+ print(' bool drop_role(string role_name)')
+ print(' get_role_names()')
+ print(' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)')
+ print(' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)')
+ print(' list_roles(string principal_name, PrincipalType principal_type)')
+ print(' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)')
+ print(' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)')
+ print(' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)')
+ print(' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)')
+ print(' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)')
+ print(' bool grant_privileges(PrivilegeBag privileges)')
+ print(' bool revoke_privileges(PrivilegeBag privileges)')
+ print(' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)')
+ print(' set_ugi(string user_name, group_names)')
+ print(' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)')
+ print(' i64 renew_delegation_token(string token_str_form)')
+ print(' void cancel_delegation_token(string token_str_form)')
+ print(' GetOpenTxnsResponse get_open_txns()')
+ print(' GetOpenTxnsInfoResponse get_open_txns_info()')
+ print(' OpenTxnsResponse open_txns(OpenTxnRequest rqst)')
+ print(' void abort_txn(AbortTxnRequest rqst)')
+ print(' void commit_txn(CommitTxnRequest rqst)')
+ print(' LockResponse lock(LockRequest rqst)')
+ print(' LockResponse check_lock(CheckLockRequest rqst)')
+ print(' void unlock(UnlockRequest rqst)')
+ print(' ShowLocksResponse show_locks(ShowLocksRequest rqst)')
+ print(' void heartbeat(HeartbeatRequest ids)')
+ print(' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)')
+ print(' void compact(CompactionRequest rqst)')
+ print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)')
+ print(' void add_dynamic_partitions(AddDynamicPartitions rqst)')
+ print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)')
+ print(' CurrentNotificationEventId get_current_notificationEventId()')
+ print(' FireEventResponse fire_listener_event(FireEventRequest rqst)')
+ print(' string getName()')
+ print(' string getVersion()')
+ print(' fb_status getStatus()')
+ print(' string getStatusDetails()')
+ print(' getCounters()')
+ print(' i64 getCounter(string key)')
+ print(' void setOption(string key, string value)')
+ print(' string getOption(string key)')
+ print(' getOptions()')
+ print(' string getCpuProfile(i32 profileDurationInSec)')
+ print(' i64 aliveSince()')
+ print(' void reinitialize()')
+ print(' void shutdown()')
+ print('')
    sys.exit(0)

  pp = pprint.PrettyPrinter(indent = 2)
@@ -40,6 +177,7 @@ host = 'localhost'
  port = 9090
  uri = ''
  framed = False
+ssl = False
  http = False
  argi = 1

@@ -68,13 +206,17 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
    framed = True
    argi += 1

+if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
+ ssl = True
+ argi += 1
+
  cmd = sys.argv[argi]
  args = sys.argv[argi+1:]

  if http:
    transport = THttpClient.THttpClient(host, port, uri)
  else:
- socket = TSocket.TSocket(host, port)
+ socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port)
    if framed:
      transport = TTransport.TFramedTransport(socket)
    else:
@@ -85,60 +227,876 @@ transport.open()

  if cmd == 'execute':
    if len(args) != 1:
- print 'execute requires 1 args'
+ print('execute requires 1 args')
      sys.exit(1)
    pp.pprint(client.execute(args[0],))

  elif cmd == 'fetchOne':
    if len(args) != 0:
- print 'fetchOne requires 0 args'
+ print('fetchOne requires 0 args')
      sys.exit(1)
    pp.pprint(client.fetchOne())

  elif cmd == 'fetchN':
    if len(args) != 1:
- print 'fetchN requires 1 args'
+ print('fetchN requires 1 args')
      sys.exit(1)
    pp.pprint(client.fetchN(eval(args[0]),))

  elif cmd == 'fetchAll':
    if len(args) != 0:
- print 'fetchAll requires 0 args'
+ print('fetchAll requires 0 args')
      sys.exit(1)
    pp.pprint(client.fetchAll())

  elif cmd == 'getSchema':
    if len(args) != 0:
- print 'getSchema requires 0 args'
+ print('getSchema requires 0 args')
      sys.exit(1)
    pp.pprint(client.getSchema())

  elif cmd == 'getThriftSchema':
    if len(args) != 0:
- print 'getThriftSchema requires 0 args'
+ print('getThriftSchema requires 0 args')
      sys.exit(1)
    pp.pprint(client.getThriftSchema())

  elif cmd == 'getClusterStatus':
    if len(args) != 0:
- print 'getClusterStatus requires 0 args'
+ print('getClusterStatus requires 0 args')
      sys.exit(1)
    pp.pprint(client.getClusterStatus())

  elif cmd == 'getQueryPlan':
    if len(args) != 0:
- print 'getQueryPlan requires 0 args'
+ print('getQueryPlan requires 0 args')
      sys.exit(1)
    pp.pprint(client.getQueryPlan())

  elif cmd == 'clean':
    if len(args) != 0:
- print 'clean requires 0 args'
+ print('clean requires 0 args')
      sys.exit(1)
    pp.pprint(client.clean())

+elif cmd == 'getMetaConf':
+ if len(args) != 1:
+ print('getMetaConf requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.getMetaConf(args[0],))
+
+elif cmd == 'setMetaConf':
+ if len(args) != 2:
+ print('setMetaConf requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.setMetaConf(args[0],args[1],))
+
+elif cmd == 'create_database':
+ if len(args) != 1:
+ print('create_database requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.create_database(eval(args[0]),))
+
+elif cmd == 'get_database':
+ if len(args) != 1:
+ print('get_database requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_database(args[0],))
+
+elif cmd == 'drop_database':
+ if len(args) != 3:
+ print('drop_database requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.drop_database(args[0],eval(args[1]),eval(args[2]),))
+
+elif cmd == 'get_databases':
+ if len(args) != 1:
+ print('get_databases requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_databases(args[0],))
+
+elif cmd == 'get_all_databases':
+ if len(args) != 0:
+ print('get_all_databases requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.get_all_databases())
+
+elif cmd == 'alter_database':
+ if len(args) != 2:
+ print('alter_database requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.alter_database(args[0],eval(args[1]),))
+
+elif cmd == 'get_type':
+ if len(args) != 1:
+ print('get_type requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_type(args[0],))
+
+elif cmd == 'create_type':
+ if len(args) != 1:
+ print('create_type requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.create_type(eval(args[0]),))
+
+elif cmd == 'drop_type':
+ if len(args) != 1:
+ print('drop_type requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.drop_type(args[0],))
+
+elif cmd == 'get_type_all':
+ if len(args) != 1:
+ print('get_type_all requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_type_all(args[0],))
+
+elif cmd == 'get_fields':
+ if len(args) != 2:
+ print('get_fields requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_fields(args[0],args[1],))
+
+elif cmd == 'get_fields_with_environment_context':
+ if len(args) != 3:
+ print('get_fields_with_environment_context requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_fields_with_environment_context(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_schema':
+ if len(args) != 2:
+ print('get_schema requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_schema(args[0],args[1],))
+
+elif cmd == 'get_schema_with_environment_context':
+ if len(args) != 3:
+ print('get_schema_with_environment_context requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_schema_with_environment_context(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'create_table':
+ if len(args) != 1:
+ print('create_table requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.create_table(eval(args[0]),))
+
+elif cmd == 'create_table_with_environment_context':
+ if len(args) != 2:
+ print('create_table_with_environment_context requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'drop_table':
+ if len(args) != 3:
+ print('drop_table requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.drop_table(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'drop_table_with_environment_context':
+ if len(args) != 4:
+ print('drop_table_with_environment_context requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.drop_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'get_tables':
+ if len(args) != 2:
+ print('get_tables requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_tables(args[0],args[1],))
+
+elif cmd == 'get_all_tables':
+ if len(args) != 1:
+ print('get_all_tables requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_all_tables(args[0],))
+
+elif cmd == 'get_table':
+ if len(args) != 2:
+ print('get_table requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_table(args[0],args[1],))
+
+elif cmd == 'get_table_objects_by_name':
+ if len(args) != 2:
+ print('get_table_objects_by_name requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_table_objects_by_name(args[0],eval(args[1]),))
+
+elif cmd == 'get_table_names_by_filter':
+ if len(args) != 3:
+ print('get_table_names_by_filter requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_table_names_by_filter(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'alter_table':
+ if len(args) != 3:
+ print('alter_table requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.alter_table(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'alter_table_with_environment_context':
+ if len(args) != 4:
+ print('alter_table_with_environment_context requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.alter_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'alter_table_with_cascade':
+ if len(args) != 4:
+ print('alter_table_with_cascade requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.alter_table_with_cascade(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'add_partition':
+ if len(args) != 1:
+ print('add_partition requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.add_partition(eval(args[0]),))
+
+elif cmd == 'add_partition_with_environment_context':
+ if len(args) != 2:
+ print('add_partition_with_environment_context requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.add_partition_with_environment_context(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'add_partitions':
+ if len(args) != 1:
+ print('add_partitions requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.add_partitions(eval(args[0]),))
+
+elif cmd == 'add_partitions_pspec':
+ if len(args) != 1:
+ print('add_partitions_pspec requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.add_partitions_pspec(eval(args[0]),))
+
+elif cmd == 'append_partition':
+ if len(args) != 3:
+ print('append_partition requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.append_partition(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'add_partitions_req':
+ if len(args) != 1:
+ print('add_partitions_req requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.add_partitions_req(eval(args[0]),))
+
+elif cmd == 'append_partition_with_environment_context':
+ if len(args) != 4:
+ print('append_partition_with_environment_context requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.append_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'append_partition_by_name':
+ if len(args) != 3:
+ print('append_partition_by_name requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.append_partition_by_name(args[0],args[1],args[2],))
+
+elif cmd == 'append_partition_by_name_with_environment_context':
+ if len(args) != 4:
+ print('append_partition_by_name_with_environment_context requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.append_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'drop_partition':
+ if len(args) != 4:
+ print('drop_partition requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.drop_partition(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'drop_partition_with_environment_context':
+ if len(args) != 5:
+ print('drop_partition_with_environment_context requires 5 args')
+ sys.exit(1)
+ pp.pprint(client.drop_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),))
+
+elif cmd == 'drop_partition_by_name':
+ if len(args) != 4:
+ print('drop_partition_by_name requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.drop_partition_by_name(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'drop_partition_by_name_with_environment_context':
+ if len(args) != 5:
+ print('drop_partition_by_name_with_environment_context requires 5 args')
+ sys.exit(1)
+ pp.pprint(client.drop_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),eval(args[4]),))
+
+elif cmd == 'drop_partitions_req':
+ if len(args) != 1:
+ print('drop_partitions_req requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.drop_partitions_req(eval(args[0]),))
+
+elif cmd == 'get_partition':
+ if len(args) != 3:
+ print('get_partition requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'exchange_partition':
+ if len(args) != 5:
+ print('exchange_partition requires 5 args')
+ sys.exit(1)
+ pp.pprint(client.exchange_partition(eval(args[0]),args[1],args[2],args[3],args[4],))
+
+elif cmd == 'get_partition_with_auth':
+ if len(args) != 5:
+ print('get_partition_with_auth requires 5 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),))
+
+elif cmd == 'get_partition_by_name':
+ if len(args) != 3:
+ print('get_partition_by_name requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_by_name(args[0],args[1],args[2],))
+
+elif cmd == 'get_partitions':
+ if len(args) != 3:
+ print('get_partitions requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_partitions_with_auth':
+ if len(args) != 5:
+ print('get_partitions_with_auth requires 5 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),))
+
+elif cmd == 'get_partitions_pspec':
+ if len(args) != 3:
+ print('get_partitions_pspec requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_pspec(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_partition_names':
+ if len(args) != 3:
+ print('get_partition_names requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_partitions_ps':
+ if len(args) != 4:
+ print('get_partitions_ps requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_ps(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'get_partitions_ps_with_auth':
+ if len(args) != 6:
+ print('get_partitions_ps_with_auth requires 6 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_ps_with_auth(args[0],args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),))
+
+elif cmd == 'get_partition_names_ps':
+ if len(args) != 4:
+ print('get_partition_names_ps requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_names_ps(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'get_partitions_by_filter':
+ if len(args) != 4:
+ print('get_partitions_by_filter requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_by_filter(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'get_part_specs_by_filter':
+ if len(args) != 4:
+ print('get_part_specs_by_filter requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.get_part_specs_by_filter(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'get_partitions_by_expr':
+ if len(args) != 1:
+ print('get_partitions_by_expr requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_by_expr(eval(args[0]),))
+
+elif cmd == 'get_partitions_by_names':
+ if len(args) != 3:
+ print('get_partitions_by_names requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_by_names(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'alter_partition':
+ if len(args) != 3:
+ print('alter_partition requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.alter_partition(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'alter_partitions':
+ if len(args) != 3:
+ print('alter_partitions requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.alter_partitions(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'alter_partition_with_environment_context':
+ if len(args) != 4:
+ print('alter_partition_with_environment_context requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.alter_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'rename_partition':
+ if len(args) != 4:
+ print('rename_partition requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.rename_partition(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'partition_name_has_valid_characters':
+ if len(args) != 2:
+ print('partition_name_has_valid_characters requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.partition_name_has_valid_characters(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'get_config_value':
+ if len(args) != 2:
+ print('get_config_value requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_config_value(args[0],args[1],))
+
+elif cmd == 'partition_name_to_vals':
+ if len(args) != 1:
+ print('partition_name_to_vals requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.partition_name_to_vals(args[0],))
+
+elif cmd == 'partition_name_to_spec':
+ if len(args) != 1:
+ print('partition_name_to_spec requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.partition_name_to_spec(args[0],))
+
+elif cmd == 'markPartitionForEvent':
+ if len(args) != 4:
+ print('markPartitionForEvent requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.markPartitionForEvent(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'isPartitionMarkedForEvent':
+ if len(args) != 4:
+ print('isPartitionMarkedForEvent requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.isPartitionMarkedForEvent(args[0],args[1],eval(args[2]),eval(args[3]),))
+
+elif cmd == 'add_index':
+ if len(args) != 2:
+ print('add_index requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.add_index(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'alter_index':
+ if len(args) != 4:
+ print('alter_index requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.alter_index(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'drop_index_by_name':
+ if len(args) != 4:
+ print('drop_index_by_name requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.drop_index_by_name(args[0],args[1],args[2],eval(args[3]),))
+
+elif cmd == 'get_index_by_name':
+ if len(args) != 3:
+ print('get_index_by_name requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_index_by_name(args[0],args[1],args[2],))
+
+elif cmd == 'get_indexes':
+ if len(args) != 3:
+ print('get_indexes requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_indexes(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_index_names':
+ if len(args) != 3:
+ print('get_index_names requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_index_names(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'update_table_column_statistics':
+ if len(args) != 1:
+ print('update_table_column_statistics requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.update_table_column_statistics(eval(args[0]),))
+
+elif cmd == 'update_partition_column_statistics':
+ if len(args) != 1:
+ print('update_partition_column_statistics requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.update_partition_column_statistics(eval(args[0]),))
+
+elif cmd == 'get_table_column_statistics':
+ if len(args) != 3:
+ print('get_table_column_statistics requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_table_column_statistics(args[0],args[1],args[2],))
+
+elif cmd == 'get_partition_column_statistics':
+ if len(args) != 4:
+ print('get_partition_column_statistics requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_column_statistics(args[0],args[1],args[2],args[3],))
+
+elif cmd == 'get_table_statistics_req':
+ if len(args) != 1:
+ print('get_table_statistics_req requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_table_statistics_req(eval(args[0]),))
+
+elif cmd == 'get_partitions_statistics_req':
+ if len(args) != 1:
+ print('get_partitions_statistics_req requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_partitions_statistics_req(eval(args[0]),))
+
+elif cmd == 'get_aggr_stats_for':
+ if len(args) != 1:
+ print('get_aggr_stats_for requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_aggr_stats_for(eval(args[0]),))
+
+elif cmd == 'set_aggr_stats_for':
+ if len(args) != 1:
+ print('set_aggr_stats_for requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.set_aggr_stats_for(eval(args[0]),))
+
+elif cmd == 'delete_partition_column_statistics':
+ if len(args) != 4:
+ print('delete_partition_column_statistics requires 4 args')
+ sys.exit(1)
+ pp.pprint(client.delete_partition_column_statistics(args[0],args[1],args[2],args[3],))
+
+elif cmd == 'delete_table_column_statistics':
+ if len(args) != 3:
+ print('delete_table_column_statistics requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.delete_table_column_statistics(args[0],args[1],args[2],))
+
+elif cmd == 'create_function':
+ if len(args) != 1:
+ print('create_function requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.create_function(eval(args[0]),))
+
+elif cmd == 'drop_function':
+ if len(args) != 2:
+ print('drop_function requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.drop_function(args[0],args[1],))
+
+elif cmd == 'alter_function':
+ if len(args) != 3:
+ print('alter_function requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.alter_function(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'get_functions':
+ if len(args) != 2:
+ print('get_functions requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_functions(args[0],args[1],))
+
+elif cmd == 'get_function':
+ if len(args) != 2:
+ print('get_function requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_function(args[0],args[1],))
+
+elif cmd == 'create_role':
+ if len(args) != 1:
+ print('create_role requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.create_role(eval(args[0]),))
+
+elif cmd == 'drop_role':
+ if len(args) != 1:
+ print('drop_role requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.drop_role(args[0],))
+
+elif cmd == 'get_role_names':
+ if len(args) != 0:
+ print('get_role_names requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.get_role_names())
+
+elif cmd == 'grant_role':
+ if len(args) != 6:
+ print('grant_role requires 6 args')
+ sys.exit(1)
+ pp.pprint(client.grant_role(args[0],args[1],eval(args[2]),args[3],eval(args[4]),eval(args[5]),))
+
+elif cmd == 'revoke_role':
+ if len(args) != 3:
+ print('revoke_role requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.revoke_role(args[0],args[1],eval(args[2]),))
+
+elif cmd == 'list_roles':
+ if len(args) != 2:
+ print('list_roles requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.list_roles(args[0],eval(args[1]),))
+
+elif cmd == 'grant_revoke_role':
+ if len(args) != 1:
+ print('grant_revoke_role requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.grant_revoke_role(eval(args[0]),))
+
+elif cmd == 'get_principals_in_role':
+ if len(args) != 1:
+ print('get_principals_in_role requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_principals_in_role(eval(args[0]),))
+
+elif cmd == 'get_role_grants_for_principal':
+ if len(args) != 1:
+ print('get_role_grants_for_principal requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_role_grants_for_principal(eval(args[0]),))
+
+elif cmd == 'get_privilege_set':
+ if len(args) != 3:
+ print('get_privilege_set requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.get_privilege_set(eval(args[0]),args[1],eval(args[2]),))
+
+elif cmd == 'list_privileges':
+ if len(args) != 3:
+ print('list_privileges requires 3 args')
+ sys.exit(1)
+ pp.pprint(client.list_privileges(args[0],eval(args[1]),eval(args[2]),))
+
+elif cmd == 'grant_privileges':
+ if len(args) != 1:
+ print('grant_privileges requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.grant_privileges(eval(args[0]),))
+
+elif cmd == 'revoke_privileges':
+ if len(args) != 1:
+ print('revoke_privileges requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.revoke_privileges(eval(args[0]),))
+
+elif cmd == 'grant_revoke_privileges':
+ if len(args) != 1:
+ print('grant_revoke_privileges requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.grant_revoke_privileges(eval(args[0]),))
+
+elif cmd == 'set_ugi':
+ if len(args) != 2:
+ print('set_ugi requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.set_ugi(args[0],eval(args[1]),))
+
+elif cmd == 'get_delegation_token':
+ if len(args) != 2:
+ print('get_delegation_token requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.get_delegation_token(args[0],args[1],))
+
+elif cmd == 'renew_delegation_token':
+ if len(args) != 1:
+ print('renew_delegation_token requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.renew_delegation_token(args[0],))
+
+elif cmd == 'cancel_delegation_token':
+ if len(args) != 1:
+ print('cancel_delegation_token requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.cancel_delegation_token(args[0],))
+
+elif cmd == 'get_open_txns':
+ if len(args) != 0:
+ print('get_open_txns requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.get_open_txns())
+
+elif cmd == 'get_open_txns_info':
+ if len(args) != 0:
+ print('get_open_txns_info requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.get_open_txns_info())
+
+elif cmd == 'open_txns':
+ if len(args) != 1:
+ print('open_txns requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.open_txns(eval(args[0]),))
+
+elif cmd == 'abort_txn':
+ if len(args) != 1:
+ print('abort_txn requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.abort_txn(eval(args[0]),))
+
+elif cmd == 'commit_txn':
+ if len(args) != 1:
+ print('commit_txn requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.commit_txn(eval(args[0]),))
+
+elif cmd == 'lock':
+ if len(args) != 1:
+ print('lock requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.lock(eval(args[0]),))
+
+elif cmd == 'check_lock':
+ if len(args) != 1:
+ print('check_lock requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.check_lock(eval(args[0]),))
+
+elif cmd == 'unlock':
+ if len(args) != 1:
+ print('unlock requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.unlock(eval(args[0]),))
+
+elif cmd == 'show_locks':
+ if len(args) != 1:
+ print('show_locks requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.show_locks(eval(args[0]),))
+
+elif cmd == 'heartbeat':
+ if len(args) != 1:
+ print('heartbeat requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.heartbeat(eval(args[0]),))
+
+elif cmd == 'heartbeat_txn_range':
+ if len(args) != 1:
+ print('heartbeat_txn_range requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.heartbeat_txn_range(eval(args[0]),))
+
+elif cmd == 'compact':
+ if len(args) != 1:
+ print('compact requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.compact(eval(args[0]),))
+
+elif cmd == 'show_compact':
+ if len(args) != 1:
+ print('show_compact requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.show_compact(eval(args[0]),))
+
+elif cmd == 'add_dynamic_partitions':
+ if len(args) != 1:
+ print('add_dynamic_partitions requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.add_dynamic_partitions(eval(args[0]),))
+
+elif cmd == 'get_next_notification':
+ if len(args) != 1:
+ print('get_next_notification requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_next_notification(eval(args[0]),))
+
+elif cmd == 'get_current_notificationEventId':
+ if len(args) != 0:
+ print('get_current_notificationEventId requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.get_current_notificationEventId())
+
+elif cmd == 'fire_listener_event':
+ if len(args) != 1:
+ print('fire_listener_event requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.fire_listener_event(eval(args[0]),))
+
+elif cmd == 'getName':
+ if len(args) != 0:
+ print('getName requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getName())
+
+elif cmd == 'getVersion':
+ if len(args) != 0:
+ print('getVersion requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getVersion())
+
+elif cmd == 'getStatus':
+ if len(args) != 0:
+ print('getStatus requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getStatus())
+
+elif cmd == 'getStatusDetails':
+ if len(args) != 0:
+ print('getStatusDetails requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getStatusDetails())
+
+elif cmd == 'getCounters':
+ if len(args) != 0:
+ print('getCounters requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getCounters())
+
+elif cmd == 'getCounter':
+ if len(args) != 1:
+ print('getCounter requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.getCounter(args[0],))
+
+elif cmd == 'setOption':
+ if len(args) != 2:
+ print('setOption requires 2 args')
+ sys.exit(1)
+ pp.pprint(client.setOption(args[0],args[1],))
+
+elif cmd == 'getOption':
+ if len(args) != 1:
+ print('getOption requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.getOption(args[0],))
+
+elif cmd == 'getOptions':
+ if len(args) != 0:
+ print('getOptions requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.getOptions())
+
+elif cmd == 'getCpuProfile':
+ if len(args) != 1:
+ print('getCpuProfile requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.getCpuProfile(eval(args[0]),))
+
+elif cmd == 'aliveSince':
+ if len(args) != 0:
+ print('aliveSince requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.aliveSince())
+
+elif cmd == 'reinitialize':
+ if len(args) != 0:
+ print('reinitialize requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.reinitialize())
+
+elif cmd == 'shutdown':
+ if len(args) != 0:
+ print('shutdown requires 0 args')
+ sys.exit(1)
+ pp.pprint(client.shutdown())
+
  else:
- print 'Unrecognized method %s' % cmd
+ print('Unrecognized method %s' % cmd)
    sys.exit(1)

  transport.close()

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py b/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py
index 33912f9..177531d 100644
--- a/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py
+++ b/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #
@@ -26,7 +26,7 @@ class Iface(hive_metastore.ThriftHiveMetastore.Iface):
      """
      pass

- def fetchOne(self, ):
+ def fetchOne(self):
      pass

    def fetchN(self, numRows):
@@ -36,22 +36,22 @@ class Iface(hive_metastore.ThriftHiveMetastore.Iface):
      """
      pass

- def fetchAll(self, ):
+ def fetchAll(self):
      pass

- def getSchema(self, ):
+ def getSchema(self):
      pass

- def getThriftSchema(self, ):
+ def getThriftSchema(self):
      pass

- def getClusterStatus(self, ):
+ def getClusterStatus(self):
      pass

- def getQueryPlan(self, ):
+ def getQueryPlan(self):
      pass

- def clean(self, ):
+ def clean(self):
      pass


@@ -75,41 +75,43 @@ class Client(hive_metastore.ThriftHiveMetastore.Client, Iface):
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_execute(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_execute(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = execute_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.ex is not None:
        raise result.ex
      return

- def fetchOne(self, ):
+ def fetchOne(self):
      self.send_fetchOne()
      return self.recv_fetchOne()

- def send_fetchOne(self, ):
+ def send_fetchOne(self):
      self._oprot.writeMessageBegin('fetchOne', TMessageType.CALL, self._seqid)
      args = fetchOne_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_fetchOne(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_fetchOne(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = fetchOne_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
@@ -132,178 +134,185 @@ class Client(hive_metastore.ThriftHiveMetastore.Client, Iface):
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_fetchN(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_fetchN(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = fetchN_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchN failed: unknown result");

- def fetchAll(self, ):
+ def fetchAll(self):
      self.send_fetchAll()
      return self.recv_fetchAll()

- def send_fetchAll(self, ):
+ def send_fetchAll(self):
      self._oprot.writeMessageBegin('fetchAll', TMessageType.CALL, self._seqid)
      args = fetchAll_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_fetchAll(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_fetchAll(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = fetchAll_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchAll failed: unknown result");

- def getSchema(self, ):
+ def getSchema(self):
      self.send_getSchema()
      return self.recv_getSchema()

- def send_getSchema(self, ):
+ def send_getSchema(self):
      self._oprot.writeMessageBegin('getSchema', TMessageType.CALL, self._seqid)
      args = getSchema_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_getSchema(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_getSchema(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = getSchema_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "getSchema failed: unknown result");

- def getThriftSchema(self, ):
+ def getThriftSchema(self):
      self.send_getThriftSchema()
      return self.recv_getThriftSchema()

- def send_getThriftSchema(self, ):
+ def send_getThriftSchema(self):
      self._oprot.writeMessageBegin('getThriftSchema', TMessageType.CALL, self._seqid)
      args = getThriftSchema_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_getThriftSchema(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_getThriftSchema(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = getThriftSchema_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "getThriftSchema failed: unknown result");

- def getClusterStatus(self, ):
+ def getClusterStatus(self):
      self.send_getClusterStatus()
      return self.recv_getClusterStatus()

- def send_getClusterStatus(self, ):
+ def send_getClusterStatus(self):
      self._oprot.writeMessageBegin('getClusterStatus', TMessageType.CALL, self._seqid)
      args = getClusterStatus_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_getClusterStatus(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_getClusterStatus(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = getClusterStatus_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "getClusterStatus failed: unknown result");

- def getQueryPlan(self, ):
+ def getQueryPlan(self):
      self.send_getQueryPlan()
      return self.recv_getQueryPlan()

- def send_getQueryPlan(self, ):
+ def send_getQueryPlan(self):
      self._oprot.writeMessageBegin('getQueryPlan', TMessageType.CALL, self._seqid)
      args = getQueryPlan_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_getQueryPlan(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_getQueryPlan(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = getQueryPlan_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      if result.success is not None:
        return result.success
      if result.ex is not None:
        raise result.ex
      raise TApplicationException(TApplicationException.MISSING_RESULT, "getQueryPlan failed: unknown result");

- def clean(self, ):
+ def clean(self):
      self.send_clean()
      self.recv_clean()

- def send_clean(self, ):
+ def send_clean(self):
      self._oprot.writeMessageBegin('clean', TMessageType.CALL, self._seqid)
      args = clean_args()
      args.write(self._oprot)
      self._oprot.writeMessageEnd()
      self._oprot.trans.flush()

- def recv_clean(self, ):
- (fname, mtype, rseqid) = self._iprot.readMessageBegin()
+ def recv_clean(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
      if mtype == TMessageType.EXCEPTION:
        x = TApplicationException()
- x.read(self._iprot)
- self._iprot.readMessageEnd()
+ x.read(iprot)
+ iprot.readMessageEnd()
        raise x
      result = clean_result()
- result.read(self._iprot)
- self._iprot.readMessageEnd()
+ result.read(iprot)
+ iprot.readMessageEnd()
      return


@@ -342,7 +351,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = execute_result()
      try:
        self._handler.execute(args.query)
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("execute", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -356,7 +365,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = fetchOne_result()
      try:
        result.success = self._handler.fetchOne()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("fetchOne", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -370,7 +379,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = fetchN_result()
      try:
        result.success = self._handler.fetchN(args.numRows)
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("fetchN", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -384,7 +393,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = fetchAll_result()
      try:
        result.success = self._handler.fetchAll()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("fetchAll", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -398,7 +407,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = getSchema_result()
      try:
        result.success = self._handler.getSchema()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("getSchema", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -412,7 +421,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = getThriftSchema_result()
      try:
        result.success = self._handler.getThriftSchema()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("getThriftSchema", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -426,7 +435,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = getClusterStatus_result()
      try:
        result.success = self._handler.getClusterStatus()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("getClusterStatus", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -440,7 +449,7 @@ class Processor(hive_metastore.ThriftHiveMetastore.Processor, Iface, TProcessor)
      result = getQueryPlan_result()
      try:
        result.success = self._handler.getQueryPlan()
- except HiveServerException as ex:
+ except HiveServerException, ex:
        result.ex = ex
      oprot.writeMessageBegin("getQueryPlan", TMessageType.REPLY, seqid)
      result.write(oprot)
@@ -510,6 +519,11 @@ class execute_args:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.query)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -571,6 +585,11 @@ class execute_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -613,6 +632,10 @@ class fetchOne_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -685,6 +708,12 @@ class fetchOne_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -745,6 +774,11 @@ class fetchN_args:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.numRows)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -825,6 +859,12 @@ class fetchN_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -867,6 +907,10 @@ class fetchAll_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -947,6 +991,12 @@ class fetchAll_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -989,6 +1039,10 @@ class getSchema_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1062,6 +1116,12 @@ class getSchema_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1104,6 +1164,10 @@ class getThriftSchema_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1177,6 +1241,12 @@ class getThriftSchema_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1219,6 +1289,10 @@ class getClusterStatus_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1292,6 +1366,12 @@ class getClusterStatus_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1334,6 +1414,10 @@ class getQueryPlan_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1407,6 +1491,12 @@ class getQueryPlan_result:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.ex)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1449,6 +1539,10 @@ class clean_args:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -1491,6 +1585,10 @@ class clean_result:
      return


+ def __hash__(self):
+ value = 17
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/hive_service/constants.py
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-py/hive_service/constants.py b/service/src/gen/thrift/gen-py/hive_service/constants.py
index a236326..99717a9 100644
--- a/service/src/gen/thrift/gen-py/hive_service/constants.py
+++ b/service/src/gen/thrift/gen-py/hive_service/constants.py
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/hive_service/ttypes.py
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-py/hive_service/ttypes.py b/service/src/gen/thrift/gen-py/hive_service/ttypes.py
index e5f4095..29eb916 100644
--- a/service/src/gen/thrift/gen-py/hive_service/ttypes.py
+++ b/service/src/gen/thrift/gen-py/hive_service/ttypes.py
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #
@@ -144,6 +144,16 @@ class HiveClusterStatus:
      return


+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.taskTrackers)
+ value = (value * 31) ^ hash(self.mapTasks)
+ value = (value * 31) ^ hash(self.reduceTasks)
+ value = (value * 31) ^ hash(self.maxMapTasks)
+ value = (value * 31) ^ hash(self.maxReduceTasks)
+ value = (value * 31) ^ hash(self.state)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]
@@ -231,6 +241,13 @@ class HiveServerException(TException):
    def __str__(self):
      return repr(self)

+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.message)
+ value = (value * 31) ^ hash(self.errorCode)
+ value = (value * 31) ^ hash(self.SQLState)
+ return value
+
    def __repr__(self):
      L = ['%s=%r' % (key, value)
        for key, value in self.__dict__.iteritems()]

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/hive_service_constants.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/hive_service_constants.rb b/service/src/gen/thrift/gen-rb/hive_service_constants.rb
index 0f908b5..73f4d7b 100644
--- a/service/src/gen/thrift/gen-rb/hive_service_constants.rb
+++ b/service/src/gen/thrift/gen-rb/hive_service_constants.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/hive_service_types.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/hive_service_types.rb b/service/src/gen/thrift/gen-rb/hive_service_types.rb
index e5913bd..f97a6fb 100644
--- a/service/src/gen/thrift/gen-rb/hive_service_types.rb
+++ b/service/src/gen/thrift/gen-rb/hive_service_types.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb
index fd1ca9a..f754d7d 100644
--- a/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb
+++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb
index 4b8ddae..3f72769 100644
--- a/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb
+++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb
index b482533..bfb2b69 100644
--- a/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb
+++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-rb/thrift_hive.rb
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-rb/thrift_hive.rb b/service/src/gen/thrift/gen-rb/thrift_hive.rb
index 8da94bb..6859ceb 100644
--- a/service/src/gen/thrift/gen-rb/thrift_hive.rb
+++ b/service/src/gen/thrift/gen-rb/thrift_hive.rb
@@ -1,5 +1,5 @@
  #
-# Autogenerated by Thrift Compiler (0.9.0)
+# Autogenerated by Thrift Compiler (0.9.2)
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #

Search Discussions

  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java
    index 3dae460..024ed36 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TStringColumn._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TStringColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TStringColumn> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringColumn");

        private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -129,7 +133,7 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt
        {
          this();
          this.values = values;
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        /**
    @@ -137,15 +141,11 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt
         */
        public TStringColumn(TStringColumn other) {
          if (other.isSetValues()) {
    - List<String> __this__values = new ArrayList<String>();
    - for (String other_element : other.values) {
    - __this__values.add(other_element);
    - }
    + List<String> __this__values = new ArrayList<String>(other.values);
            this.values = __this__values;
          }
          if (other.isSetNulls()) {
            this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    -;
          }
        }

    @@ -203,15 +203,15 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt
        }

        public ByteBuffer bufferForNulls() {
    - return nulls;
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void setNulls(byte[] nulls) {
    - setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls));
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
        }

        public void setNulls(ByteBuffer nulls) {
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void unsetNulls() {
    @@ -313,45 +313,45 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_values = true && (isSetValues());
    - builder.append(present_values);
    + list.add(present_values);
          if (present_values)
    - builder.append(values);
    + list.add(values);

          boolean present_nulls = true && (isSetNulls());
    - builder.append(present_nulls);
    + list.add(present_nulls);
          if (present_nulls)
    - builder.append(nulls);
    + list.add(nulls);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TStringColumn other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TStringColumn typedOther = (TStringColumn)other;

    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls());
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -447,11 +447,11 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt
                    {
                      org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
                      struct.values = new ArrayList<String>(_list102.size);
    - for (int _i103 = 0; _i103 < _list102.size; ++_i103)
    + String _elem103;
    + for (int _i104 = 0; _i104 < _list102.size; ++_i104)
                      {
    - String _elem104; // optional
    - _elem104 = iprot.readString();
    - struct.values.add(_elem104);
    + _elem103 = iprot.readString();
    + struct.values.add(_elem103);
                      }
                      iprot.readListEnd();
                    }
    @@ -531,11 +531,11 @@ public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TSt
            {
              org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
              struct.values = new ArrayList<String>(_list107.size);
    - for (int _i108 = 0; _i108 < _list107.size; ++_i108)
    + String _elem108;
    + for (int _i109 = 0; _i109 < _list107.size; ++_i109)
              {
    - String _elem109; // optional
    - _elem109 = iprot.readString();
    - struct.values.add(_elem109);
    + _elem108 = iprot.readString();
    + struct.values.add(_elem108);
              }
            }
            struct.setValuesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java
    index af7a109..bc7f121 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TStringValue implements org.apache.thrift.TBase<TStringValue, TStringValue._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TStringValue implements org.apache.thrift.TBase<TStringValue, TStringValue._Fields>, java.io.Serializable, Cloneable, Comparable<TStringValue> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringValue");

        private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -103,7 +107,7 @@ public class TStringValue implements org.apache.thrift.TBase<TStringValue, TStri
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.VALUE};
    + private static final _Fields optionals[] = {_Fields.VALUE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -219,30 +223,30 @@ public class TStringValue implements org.apache.thrift.TBase<TStringValue, TStri

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_value = true && (isSetValue());
    - builder.append(present_value);
    + list.add(present_value);
          if (present_value)
    - builder.append(value);
    + list.add(value);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TStringValue other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TStringValue typedOther = (TStringValue)other;

    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
    + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java
    index 20f5fb6..ad95cce 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntry, TStructTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntry, TStructTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TStructTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStructTypeEntry");

        private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1);
    @@ -129,7 +133,7 @@ public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntr
         */
        public TStructTypeEntry(TStructTypeEntry other) {
          if (other.isSetNameToTypePtr()) {
    - Map<String,Integer> __this__nameToTypePtr = new HashMap<String,Integer>();
    + Map<String,Integer> __this__nameToTypePtr = new HashMap<String,Integer>(other.nameToTypePtr.size());
            for (Map.Entry<String, Integer> other_element : other.nameToTypePtr.entrySet()) {

              String other_element_key = other_element.getKey();
    @@ -250,30 +254,30 @@ public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntr

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_nameToTypePtr = true && (isSetNameToTypePtr());
    - builder.append(present_nameToTypePtr);
    + list.add(present_nameToTypePtr);
          if (present_nameToTypePtr)
    - builder.append(nameToTypePtr);
    + list.add(nameToTypePtr);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TStructTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TStructTypeEntry typedOther = (TStructTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr());
    + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNameToTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -357,13 +361,13 @@ public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntr
                    {
                      org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
                      struct.nameToTypePtr = new HashMap<String,Integer>(2*_map10.size);
    - for (int _i11 = 0; _i11 < _map10.size; ++_i11)
    + String _key11;
    + int _val12;
    + for (int _i13 = 0; _i13 < _map10.size; ++_i13)
                      {
    - String _key12; // required
    - int _val13; // required
    - _key12 = iprot.readString();
    - _val13 = iprot.readI32();
    - struct.nameToTypePtr.put(_key12, _val13);
    + _key11 = iprot.readString();
    + _val12 = iprot.readI32();
    + struct.nameToTypePtr.put(_key11, _val12);
                      }
                      iprot.readMapEnd();
                    }
    @@ -431,13 +435,13 @@ public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntr
            {
              org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
              struct.nameToTypePtr = new HashMap<String,Integer>(2*_map16.size);
    - for (int _i17 = 0; _i17 < _map16.size; ++_i17)
    + String _key17;
    + int _val18;
    + for (int _i19 = 0; _i19 < _map16.size; ++_i19)
              {
    - String _key18; // required
    - int _val19; // required
    - _key18 = iprot.readString();
    - _val19 = iprot.readI32();
    - struct.nameToTypePtr.put(_key18, _val19);
    + _key17 = iprot.readString();
    + _val18 = iprot.readI32();
    + struct.nameToTypePtr.put(_key17, _val18);
              }
            }
            struct.setNameToTypePtrIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java
    index ff5e54d..4416a07 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTableSchema._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTableSchema._Fields>, java.io.Serializable, Cloneable, Comparable<TTableSchema> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableSchema");

        private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -128,7 +132,7 @@ public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTabl
         */
        public TTableSchema(TTableSchema other) {
          if (other.isSetColumns()) {
    - List<TColumnDesc> __this__columns = new ArrayList<TColumnDesc>();
    + List<TColumnDesc> __this__columns = new ArrayList<TColumnDesc>(other.columns.size());
            for (TColumnDesc other_element : other.columns) {
              __this__columns.add(new TColumnDesc(other_element));
            }
    @@ -245,30 +249,30 @@ public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTabl

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_columns = true && (isSetColumns());
    - builder.append(present_columns);
    + list.add(present_columns);
          if (present_columns)
    - builder.append(columns);
    + list.add(columns);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TTableSchema other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TTableSchema typedOther = (TTableSchema)other;

    - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
    + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetColumns()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -352,12 +356,12 @@ public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTabl
                    {
                      org.apache.thrift.protocol.TList _list38 = iprot.readListBegin();
                      struct.columns = new ArrayList<TColumnDesc>(_list38.size);
    - for (int _i39 = 0; _i39 < _list38.size; ++_i39)
    + TColumnDesc _elem39;
    + for (int _i40 = 0; _i40 < _list38.size; ++_i40)
                      {
    - TColumnDesc _elem40; // optional
    - _elem40 = new TColumnDesc();
    - _elem40.read(iprot);
    - struct.columns.add(_elem40);
    + _elem39 = new TColumnDesc();
    + _elem39.read(iprot);
    + struct.columns.add(_elem39);
                      }
                      iprot.readListEnd();
                    }
    @@ -423,12 +427,12 @@ public class TTableSchema implements org.apache.thrift.TBase<TTableSchema, TTabl
            {
              org.apache.thrift.protocol.TList _list43 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.columns = new ArrayList<TColumnDesc>(_list43.size);
    - for (int _i44 = 0; _i44 < _list43.size; ++_i44)
    + TColumnDesc _elem44;
    + for (int _i45 = 0; _i45 < _list43.size; ++_i45)
              {
    - TColumnDesc _elem45; // optional
    - _elem45 = new TColumnDesc();
    - _elem45.read(iprot);
    - struct.columns.add(_elem45);
    + _elem44 = new TColumnDesc();
    + _elem44.read(iprot);
    + struct.columns.add(_elem44);
              }
            }
            struct.setColumnsIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java
    index 251f86a..a97c9aa 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._Fields>, java.io.Serializable, Cloneable, Comparable<TTypeDesc> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeDesc");

        private static final org.apache.thrift.protocol.TField TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("types", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -128,7 +132,7 @@ public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._
         */
        public TTypeDesc(TTypeDesc other) {
          if (other.isSetTypes()) {
    - List<TTypeEntry> __this__types = new ArrayList<TTypeEntry>();
    + List<TTypeEntry> __this__types = new ArrayList<TTypeEntry>(other.types.size());
            for (TTypeEntry other_element : other.types) {
              __this__types.add(new TTypeEntry(other_element));
            }
    @@ -245,30 +249,30 @@ public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_types = true && (isSetTypes());
    - builder.append(present_types);
    + list.add(present_types);
          if (present_types)
    - builder.append(types);
    + list.add(types);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TTypeDesc other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TTypeDesc typedOther = (TTypeDesc)other;

    - lastComparison = Boolean.valueOf(isSetTypes()).compareTo(typedOther.isSetTypes());
    + lastComparison = Boolean.valueOf(isSetTypes()).compareTo(other.isSetTypes());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTypes()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, typedOther.types);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, other.types);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -352,12 +356,12 @@ public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._
                    {
                      org.apache.thrift.protocol.TList _list30 = iprot.readListBegin();
                      struct.types = new ArrayList<TTypeEntry>(_list30.size);
    - for (int _i31 = 0; _i31 < _list30.size; ++_i31)
    + TTypeEntry _elem31;
    + for (int _i32 = 0; _i32 < _list30.size; ++_i32)
                      {
    - TTypeEntry _elem32; // optional
    - _elem32 = new TTypeEntry();
    - _elem32.read(iprot);
    - struct.types.add(_elem32);
    + _elem31 = new TTypeEntry();
    + _elem31.read(iprot);
    + struct.types.add(_elem31);
                      }
                      iprot.readListEnd();
                    }
    @@ -423,12 +427,12 @@ public class TTypeDesc implements org.apache.thrift.TBase<TTypeDesc, TTypeDesc._
            {
              org.apache.thrift.protocol.TList _list35 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.types = new ArrayList<TTypeEntry>(_list35.size);
    - for (int _i36 = 0; _i36 < _list35.size; ++_i36)
    + TTypeEntry _elem36;
    + for (int _i37 = 0; _i37 < _list35.size; ++_i37)
              {
    - TTypeEntry _elem37; // optional
    - _elem37 = new TTypeEntry();
    - _elem37.read(iprot);
    - struct.types.add(_elem37);
    + _elem36 = new TTypeEntry();
    + _elem36.read(iprot);
    + struct.types.add(_elem36);
              }
            }
            struct.setTypesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java
    index af7c0b4..203d3b9 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,11 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
      public class TTypeEntry extends org.apache.thrift.TUnion<TTypeEntry, TTypeEntry._Fields> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeEntry");
        private static final org.apache.thrift.protocol.TField PRIMITIVE_ENTRY_FIELD_DESC = new org.apache.thrift.protocol.TField("primitiveEntry", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -291,6 +294,7 @@ public class TTypeEntry extends org.apache.thrift.TUnion<TTypeEntry, TTypeEntry.
                throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
            }
          } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
            return null;
          }
        }
    @@ -575,19 +579,19 @@ public class TTypeEntry extends org.apache.thrift.TUnion<TTypeEntry, TTypeEntry.

        @Override
        public int hashCode() {
    - HashCodeBuilder hcb = new HashCodeBuilder();
    - hcb.append(this.getClass().getName());
    + List<Object> list = new ArrayList<Object>();
    + list.add(this.getClass().getName());
          org.apache.thrift.TFieldIdEnum setField = getSetField();
          if (setField != null) {
    - hcb.append(setField.getThriftFieldId());
    + list.add(setField.getThriftFieldId());
            Object value = getFieldValue();
            if (value instanceof org.apache.thrift.TEnum) {
    - hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    + list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
            } else {
    - hcb.append(value);
    + list.add(value);
            }
          }
    - return hcb.toHashCode();
    + return list.hashCode();
        }
        private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
          try {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java
    index 40f0589..e6f2336 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java
    index 8c40687..54df6dc 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,11 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
      public class TTypeQualifierValue extends org.apache.thrift.TUnion<TTypeQualifierValue, TTypeQualifierValue._Fields> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifierValue");
        private static final org.apache.thrift.protocol.TField I32_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("i32Value", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -181,6 +184,7 @@ public class TTypeQualifierValue extends org.apache.thrift.TUnion<TTypeQualifier
                throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
            }
          } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
            return null;
          }
        }
    @@ -326,19 +330,19 @@ public class TTypeQualifierValue extends org.apache.thrift.TUnion<TTypeQualifier

        @Override
        public int hashCode() {
    - HashCodeBuilder hcb = new HashCodeBuilder();
    - hcb.append(this.getClass().getName());
    + List<Object> list = new ArrayList<Object>();
    + list.add(this.getClass().getName());
          org.apache.thrift.TFieldIdEnum setField = getSetField();
          if (setField != null) {
    - hcb.append(setField.getThriftFieldId());
    + list.add(setField.getThriftFieldId());
            Object value = getFieldValue();
            if (value instanceof org.apache.thrift.TEnum) {
    - hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    + list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
            } else {
    - hcb.append(value);
    + list.add(value);
            }
          }
    - return hcb.toHashCode();
    + return list.hashCode();
        }
        private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
          try {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java
    index 3935555..7f5b1b3 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers, TTypeQualifiers._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers, TTypeQualifiers._Fields>, java.io.Serializable, Cloneable, Comparable<TTypeQualifiers> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifiers");

        private static final org.apache.thrift.protocol.TField QUALIFIERS_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifiers", org.apache.thrift.protocol.TType.MAP, (short)1);
    @@ -129,7 +133,7 @@ public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers,
         */
        public TTypeQualifiers(TTypeQualifiers other) {
          if (other.isSetQualifiers()) {
    - Map<String,TTypeQualifierValue> __this__qualifiers = new HashMap<String,TTypeQualifierValue>();
    + Map<String,TTypeQualifierValue> __this__qualifiers = new HashMap<String,TTypeQualifierValue>(other.qualifiers.size());
            for (Map.Entry<String, TTypeQualifierValue> other_element : other.qualifiers.entrySet()) {

              String other_element_key = other_element.getKey();
    @@ -250,30 +254,30 @@ public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_qualifiers = true && (isSetQualifiers());
    - builder.append(present_qualifiers);
    + list.add(present_qualifiers);
          if (present_qualifiers)
    - builder.append(qualifiers);
    + list.add(qualifiers);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TTypeQualifiers other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TTypeQualifiers typedOther = (TTypeQualifiers)other;

    - lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(typedOther.isSetQualifiers());
    + lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(other.isSetQualifiers());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetQualifiers()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, typedOther.qualifiers);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, other.qualifiers);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -357,14 +361,14 @@ public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers,
                    {
                      org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
                      struct.qualifiers = new HashMap<String,TTypeQualifierValue>(2*_map0.size);
    - for (int _i1 = 0; _i1 < _map0.size; ++_i1)
    + String _key1;
    + TTypeQualifierValue _val2;
    + for (int _i3 = 0; _i3 < _map0.size; ++_i3)
                      {
    - String _key2; // required
    - TTypeQualifierValue _val3; // required
    - _key2 = iprot.readString();
    - _val3 = new TTypeQualifierValue();
    - _val3.read(iprot);
    - struct.qualifiers.put(_key2, _val3);
    + _key1 = iprot.readString();
    + _val2 = new TTypeQualifierValue();
    + _val2.read(iprot);
    + struct.qualifiers.put(_key1, _val2);
                      }
                      iprot.readMapEnd();
                    }
    @@ -432,14 +436,14 @@ public class TTypeQualifiers implements org.apache.thrift.TBase<TTypeQualifiers,
            {
              org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.qualifiers = new HashMap<String,TTypeQualifierValue>(2*_map6.size);
    - for (int _i7 = 0; _i7 < _map6.size; ++_i7)
    + String _key7;
    + TTypeQualifierValue _val8;
    + for (int _i9 = 0; _i9 < _map6.size; ++_i9)
              {
    - String _key8; // required
    - TTypeQualifierValue _val9; // required
    - _key8 = iprot.readString();
    - _val9 = new TTypeQualifierValue();
    - _val9.read(iprot);
    - struct.qualifiers.put(_key8, _val9);
    + _key7 = iprot.readString();
    + _val8 = new TTypeQualifierValue();
    + _val8.read(iprot);
    + struct.qualifiers.put(_key7, _val8);
              }
            }
            struct.setQualifiersIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java
    index 73dd45d..243b307 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry, TUnionTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry, TUnionTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TUnionTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUnionTypeEntry");

        private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1);
    @@ -129,7 +133,7 @@ public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry,
         */
        public TUnionTypeEntry(TUnionTypeEntry other) {
          if (other.isSetNameToTypePtr()) {
    - Map<String,Integer> __this__nameToTypePtr = new HashMap<String,Integer>();
    + Map<String,Integer> __this__nameToTypePtr = new HashMap<String,Integer>(other.nameToTypePtr.size());
            for (Map.Entry<String, Integer> other_element : other.nameToTypePtr.entrySet()) {

              String other_element_key = other_element.getKey();
    @@ -250,30 +254,30 @@ public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_nameToTypePtr = true && (isSetNameToTypePtr());
    - builder.append(present_nameToTypePtr);
    + list.add(present_nameToTypePtr);
          if (present_nameToTypePtr)
    - builder.append(nameToTypePtr);
    + list.add(nameToTypePtr);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TUnionTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TUnionTypeEntry typedOther = (TUnionTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr());
    + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNameToTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -357,13 +361,13 @@ public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry,
                    {
                      org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin();
                      struct.nameToTypePtr = new HashMap<String,Integer>(2*_map20.size);
    - for (int _i21 = 0; _i21 < _map20.size; ++_i21)
    + String _key21;
    + int _val22;
    + for (int _i23 = 0; _i23 < _map20.size; ++_i23)
                      {
    - String _key22; // required
    - int _val23; // required
    - _key22 = iprot.readString();
    - _val23 = iprot.readI32();
    - struct.nameToTypePtr.put(_key22, _val23);
    + _key21 = iprot.readString();
    + _val22 = iprot.readI32();
    + struct.nameToTypePtr.put(_key21, _val22);
                      }
                      iprot.readMapEnd();
                    }
    @@ -431,13 +435,13 @@ public class TUnionTypeEntry implements org.apache.thrift.TBase<TUnionTypeEntry,
            {
              org.apache.thrift.protocol.TMap _map26 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
              struct.nameToTypePtr = new HashMap<String,Integer>(2*_map26.size);
    - for (int _i27 = 0; _i27 < _map26.size; ++_i27)
    + String _key27;
    + int _val28;
    + for (int _i29 = 0; _i29 < _map26.size; ++_i29)
              {
    - String _key28; // required
    - int _val29; // required
    - _key28 = iprot.readString();
    - _val29 = iprot.readI32();
    - struct.nameToTypePtr.put(_key28, _val29);
    + _key27 = iprot.readString();
    + _val28 = iprot.readI32();
    + struct.nameToTypePtr.put(_key27, _val28);
              }
            }
            struct.setNameToTypePtrIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java
    index 3a111a2..107962e 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TUserDefinedTypeEntry implements org.apache.thrift.TBase<TUserDefinedTypeEntry, TUserDefinedTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TUserDefinedTypeEntry implements org.apache.thrift.TBase<TUserDefinedTypeEntry, TUserDefinedTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TUserDefinedTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUserDefinedTypeEntry");

        private static final org.apache.thrift.protocol.TField TYPE_CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("typeClassName", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -225,30 +229,30 @@ public class TUserDefinedTypeEntry implements org.apache.thrift.TBase<TUserDefin

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_typeClassName = true && (isSetTypeClassName());
    - builder.append(present_typeClassName);
    + list.add(present_typeClassName);
          if (present_typeClassName)
    - builder.append(typeClassName);
    + list.add(typeClassName);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TUserDefinedTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TUserDefinedTypeEntry typedOther = (TUserDefinedTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(typedOther.isSetTypeClassName());
    + lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(other.isSetTypeClassName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTypeClassName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, typedOther.typeClassName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, other.typeClassName);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-php/TCLIService.php
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-php/TCLIService.php b/service/src/gen/thrift/gen-php/TCLIService.php
    index d246296..f5dd904 100644
    --- a/service/src/gen/thrift/gen-php/TCLIService.php
    +++ b/service/src/gen/thrift/gen-php/TCLIService.php
    @@ -1,7 +1,7 @@
      <?php
      namespace ;
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
    @@ -12,28 +12,105 @@ use Thrift\Type\TMessageType;
      use Thrift\Exception\TException;
      use Thrift\Exception\TProtocolException;
      use Thrift\Protocol\TProtocol;
    +use Thrift\Protocol\TBinaryProtocolAccelerated;
      use Thrift\Exception\TApplicationException;


      interface TCLIServiceIf {
    + /**
    + * @param \TOpenSessionReq $req
    + * @return \TOpenSessionResp
    + */
        public function OpenSession(\TOpenSessionReq $req);
    + /**
    + * @param \TCloseSessionReq $req
    + * @return \TCloseSessionResp
    + */
        public function CloseSession(\TCloseSessionReq $req);
    + /**
    + * @param \TGetInfoReq $req
    + * @return \TGetInfoResp
    + */
        public function GetInfo(\TGetInfoReq $req);
    + /**
    + * @param \TExecuteStatementReq $req
    + * @return \TExecuteStatementResp
    + */
        public function ExecuteStatement(\TExecuteStatementReq $req);
    + /**
    + * @param \TGetTypeInfoReq $req
    + * @return \TGetTypeInfoResp
    + */
        public function GetTypeInfo(\TGetTypeInfoReq $req);
    + /**
    + * @param \TGetCatalogsReq $req
    + * @return \TGetCatalogsResp
    + */
        public function GetCatalogs(\TGetCatalogsReq $req);
    + /**
    + * @param \TGetSchemasReq $req
    + * @return \TGetSchemasResp
    + */
        public function GetSchemas(\TGetSchemasReq $req);
    + /**
    + * @param \TGetTablesReq $req
    + * @return \TGetTablesResp
    + */
        public function GetTables(\TGetTablesReq $req);
    + /**
    + * @param \TGetTableTypesReq $req
    + * @return \TGetTableTypesResp
    + */
        public function GetTableTypes(\TGetTableTypesReq $req);
    + /**
    + * @param \TGetColumnsReq $req
    + * @return \TGetColumnsResp
    + */
        public function GetColumns(\TGetColumnsReq $req);
    + /**
    + * @param \TGetFunctionsReq $req
    + * @return \TGetFunctionsResp
    + */
        public function GetFunctions(\TGetFunctionsReq $req);
    + /**
    + * @param \TGetOperationStatusReq $req
    + * @return \TGetOperationStatusResp
    + */
        public function GetOperationStatus(\TGetOperationStatusReq $req);
    + /**
    + * @param \TCancelOperationReq $req
    + * @return \TCancelOperationResp
    + */
        public function CancelOperation(\TCancelOperationReq $req);
    + /**
    + * @param \TCloseOperationReq $req
    + * @return \TCloseOperationResp
    + */
        public function CloseOperation(\TCloseOperationReq $req);
    + /**
    + * @param \TGetResultSetMetadataReq $req
    + * @return \TGetResultSetMetadataResp
    + */
        public function GetResultSetMetadata(\TGetResultSetMetadataReq $req);
    + /**
    + * @param \TFetchResultsReq $req
    + * @return \TFetchResultsResp
    + */
        public function FetchResults(\TFetchResultsReq $req);
    + /**
    + * @param \TGetDelegationTokenReq $req
    + * @return \TGetDelegationTokenResp
    + */
        public function GetDelegationToken(\TGetDelegationTokenReq $req);
    + /**
    + * @param \TCancelDelegationTokenReq $req
    + * @return \TCancelDelegationTokenResp
    + */
        public function CancelDelegationToken(\TCancelDelegationTokenReq $req);
    + /**
    + * @param \TRenewDelegationTokenReq $req
    + * @return \TRenewDelegationTokenResp
    + */
        public function RenewDelegationToken(\TRenewDelegationTokenReq $req);
      }

    @@ -58,7 +135,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_OpenSession_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'OpenSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -74,7 +151,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_OpenSession()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_OpenSession_result', $this->input_->isStrictRead());
          else
          {
    @@ -109,7 +186,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_CloseSession_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'CloseSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -125,7 +202,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_CloseSession()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseSession_result', $this->input_->isStrictRead());
          else
          {
    @@ -160,7 +237,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetInfo_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -176,7 +253,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetInfo()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetInfo_result', $this->input_->isStrictRead());
          else
          {
    @@ -211,7 +288,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_ExecuteStatement_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'ExecuteStatement', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -227,7 +304,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_ExecuteStatement()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_ExecuteStatement_result', $this->input_->isStrictRead());
          else
          {
    @@ -262,7 +339,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetTypeInfo_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetTypeInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -278,7 +355,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetTypeInfo()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTypeInfo_result', $this->input_->isStrictRead());
          else
          {
    @@ -313,7 +390,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetCatalogs_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetCatalogs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -329,7 +406,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetCatalogs()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetCatalogs_result', $this->input_->isStrictRead());
          else
          {
    @@ -364,7 +441,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetSchemas_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetSchemas', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -380,7 +457,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetSchemas()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetSchemas_result', $this->input_->isStrictRead());
          else
          {
    @@ -415,7 +492,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetTables_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetTables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -431,7 +508,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetTables()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTables_result', $this->input_->isStrictRead());
          else
          {
    @@ -466,7 +543,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetTableTypes_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetTableTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -482,7 +559,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetTableTypes()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTableTypes_result', $this->input_->isStrictRead());
          else
          {
    @@ -517,7 +594,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetColumns_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetColumns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -533,7 +610,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetColumns()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetColumns_result', $this->input_->isStrictRead());
          else
          {
    @@ -568,7 +645,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetFunctions_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetFunctions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -584,7 +661,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetFunctions()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetFunctions_result', $this->input_->isStrictRead());
          else
          {
    @@ -619,7 +696,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetOperationStatus_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetOperationStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -635,7 +712,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetOperationStatus()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetOperationStatus_result', $this->input_->isStrictRead());
          else
          {
    @@ -670,7 +747,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_CancelOperation_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'CancelOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -686,7 +763,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_CancelOperation()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelOperation_result', $this->input_->isStrictRead());
          else
          {
    @@ -721,7 +798,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_CloseOperation_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'CloseOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -737,7 +814,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_CloseOperation()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseOperation_result', $this->input_->isStrictRead());
          else
          {
    @@ -772,7 +849,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetResultSetMetadata_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetResultSetMetadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -788,7 +865,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetResultSetMetadata()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetResultSetMetadata_result', $this->input_->isStrictRead());
          else
          {
    @@ -823,7 +900,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_FetchResults_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'FetchResults', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -839,7 +916,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_FetchResults()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_FetchResults_result', $this->input_->isStrictRead());
          else
          {
    @@ -874,7 +951,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_GetDelegationToken_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'GetDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -890,7 +967,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_GetDelegationToken()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetDelegationToken_result', $this->input_->isStrictRead());
          else
          {
    @@ -925,7 +1002,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_CancelDelegationToken_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'CancelDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -941,7 +1018,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_CancelDelegationToken()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelDelegationToken_result', $this->input_->isStrictRead());
          else
          {
    @@ -976,7 +1053,7 @@ class TCLIServiceClient implements \TCLIServiceIf {
        {
          $args = new \TCLIService_RenewDelegationToken_args();
          $args->req = $req;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'RenewDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -992,7 +1069,7 @@ class TCLIServiceClient implements \TCLIServiceIf {

        public function recv_RenewDelegationToken()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_RenewDelegationToken_result', $this->input_->isStrictRead());
          else
          {
    @@ -1024,6 +1101,9 @@ class TCLIServiceClient implements \TCLIServiceIf {
      class TCLIService_OpenSession_args {
        static $_TSPEC;

    + /**
    + * @var \TOpenSessionReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1101,6 +1181,9 @@ class TCLIService_OpenSession_args {
      class TCLIService_OpenSession_result {
        static $_TSPEC;

    + /**
    + * @var \TOpenSessionResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1178,6 +1261,9 @@ class TCLIService_OpenSession_result {
      class TCLIService_CloseSession_args {
        static $_TSPEC;

    + /**
    + * @var \TCloseSessionReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1255,6 +1341,9 @@ class TCLIService_CloseSession_args {
      class TCLIService_CloseSession_result {
        static $_TSPEC;

    + /**
    + * @var \TCloseSessionResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1332,6 +1421,9 @@ class TCLIService_CloseSession_result {
      class TCLIService_GetInfo_args {
        static $_TSPEC;

    + /**
    + * @var \TGetInfoReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1409,6 +1501,9 @@ class TCLIService_GetInfo_args {
      class TCLIService_GetInfo_result {
        static $_TSPEC;

    + /**
    + * @var \TGetInfoResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1486,6 +1581,9 @@ class TCLIService_GetInfo_result {
      class TCLIService_ExecuteStatement_args {
        static $_TSPEC;

    + /**
    + * @var \TExecuteStatementReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1563,6 +1661,9 @@ class TCLIService_ExecuteStatement_args {
      class TCLIService_ExecuteStatement_result {
        static $_TSPEC;

    + /**
    + * @var \TExecuteStatementResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1640,6 +1741,9 @@ class TCLIService_ExecuteStatement_result {
      class TCLIService_GetTypeInfo_args {
        static $_TSPEC;

    + /**
    + * @var \TGetTypeInfoReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1717,6 +1821,9 @@ class TCLIService_GetTypeInfo_args {
      class TCLIService_GetTypeInfo_result {
        static $_TSPEC;

    + /**
    + * @var \TGetTypeInfoResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1794,6 +1901,9 @@ class TCLIService_GetTypeInfo_result {
      class TCLIService_GetCatalogs_args {
        static $_TSPEC;

    + /**
    + * @var \TGetCatalogsReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -1871,6 +1981,9 @@ class TCLIService_GetCatalogs_args {
      class TCLIService_GetCatalogs_result {
        static $_TSPEC;

    + /**
    + * @var \TGetCatalogsResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -1948,6 +2061,9 @@ class TCLIService_GetCatalogs_result {
      class TCLIService_GetSchemas_args {
        static $_TSPEC;

    + /**
    + * @var \TGetSchemasReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2025,6 +2141,9 @@ class TCLIService_GetSchemas_args {
      class TCLIService_GetSchemas_result {
        static $_TSPEC;

    + /**
    + * @var \TGetSchemasResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2102,6 +2221,9 @@ class TCLIService_GetSchemas_result {
      class TCLIService_GetTables_args {
        static $_TSPEC;

    + /**
    + * @var \TGetTablesReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2179,6 +2301,9 @@ class TCLIService_GetTables_args {
      class TCLIService_GetTables_result {
        static $_TSPEC;

    + /**
    + * @var \TGetTablesResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2256,6 +2381,9 @@ class TCLIService_GetTables_result {
      class TCLIService_GetTableTypes_args {
        static $_TSPEC;

    + /**
    + * @var \TGetTableTypesReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2333,6 +2461,9 @@ class TCLIService_GetTableTypes_args {
      class TCLIService_GetTableTypes_result {
        static $_TSPEC;

    + /**
    + * @var \TGetTableTypesResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2410,6 +2541,9 @@ class TCLIService_GetTableTypes_result {
      class TCLIService_GetColumns_args {
        static $_TSPEC;

    + /**
    + * @var \TGetColumnsReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2487,6 +2621,9 @@ class TCLIService_GetColumns_args {
      class TCLIService_GetColumns_result {
        static $_TSPEC;

    + /**
    + * @var \TGetColumnsResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2564,6 +2701,9 @@ class TCLIService_GetColumns_result {
      class TCLIService_GetFunctions_args {
        static $_TSPEC;

    + /**
    + * @var \TGetFunctionsReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2641,6 +2781,9 @@ class TCLIService_GetFunctions_args {
      class TCLIService_GetFunctions_result {
        static $_TSPEC;

    + /**
    + * @var \TGetFunctionsResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2718,6 +2861,9 @@ class TCLIService_GetFunctions_result {
      class TCLIService_GetOperationStatus_args {
        static $_TSPEC;

    + /**
    + * @var \TGetOperationStatusReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2795,6 +2941,9 @@ class TCLIService_GetOperationStatus_args {
      class TCLIService_GetOperationStatus_result {
        static $_TSPEC;

    + /**
    + * @var \TGetOperationStatusResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -2872,6 +3021,9 @@ class TCLIService_GetOperationStatus_result {
      class TCLIService_CancelOperation_args {
        static $_TSPEC;

    + /**
    + * @var \TCancelOperationReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -2949,6 +3101,9 @@ class TCLIService_CancelOperation_args {
      class TCLIService_CancelOperation_result {
        static $_TSPEC;

    + /**
    + * @var \TCancelOperationResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3026,6 +3181,9 @@ class TCLIService_CancelOperation_result {
      class TCLIService_CloseOperation_args {
        static $_TSPEC;

    + /**
    + * @var \TCloseOperationReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3103,6 +3261,9 @@ class TCLIService_CloseOperation_args {
      class TCLIService_CloseOperation_result {
        static $_TSPEC;

    + /**
    + * @var \TCloseOperationResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3180,6 +3341,9 @@ class TCLIService_CloseOperation_result {
      class TCLIService_GetResultSetMetadata_args {
        static $_TSPEC;

    + /**
    + * @var \TGetResultSetMetadataReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3257,6 +3421,9 @@ class TCLIService_GetResultSetMetadata_args {
      class TCLIService_GetResultSetMetadata_result {
        static $_TSPEC;

    + /**
    + * @var \TGetResultSetMetadataResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3334,6 +3501,9 @@ class TCLIService_GetResultSetMetadata_result {
      class TCLIService_FetchResults_args {
        static $_TSPEC;

    + /**
    + * @var \TFetchResultsReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3411,6 +3581,9 @@ class TCLIService_FetchResults_args {
      class TCLIService_FetchResults_result {
        static $_TSPEC;

    + /**
    + * @var \TFetchResultsResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3488,6 +3661,9 @@ class TCLIService_FetchResults_result {
      class TCLIService_GetDelegationToken_args {
        static $_TSPEC;

    + /**
    + * @var \TGetDelegationTokenReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3565,6 +3741,9 @@ class TCLIService_GetDelegationToken_args {
      class TCLIService_GetDelegationToken_result {
        static $_TSPEC;

    + /**
    + * @var \TGetDelegationTokenResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3642,6 +3821,9 @@ class TCLIService_GetDelegationToken_result {
      class TCLIService_CancelDelegationToken_args {
        static $_TSPEC;

    + /**
    + * @var \TCancelDelegationTokenReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3719,6 +3901,9 @@ class TCLIService_CancelDelegationToken_args {
      class TCLIService_CancelDelegationToken_result {
        static $_TSPEC;

    + /**
    + * @var \TCancelDelegationTokenResp
    + */
        public $success = null;

        public function __construct($vals=null) {
    @@ -3796,6 +3981,9 @@ class TCLIService_CancelDelegationToken_result {
      class TCLIService_RenewDelegationToken_args {
        static $_TSPEC;

    + /**
    + * @var \TRenewDelegationTokenReq
    + */
        public $req = null;

        public function __construct($vals=null) {
    @@ -3873,6 +4061,9 @@ class TCLIService_RenewDelegationToken_args {
      class TCLIService_RenewDelegationToken_result {
        static $_TSPEC;

    + /**
    + * @var \TRenewDelegationTokenResp
    + */
        public $success = null;

        public function __construct($vals=null) {
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-php/ThriftHive.php
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-php/ThriftHive.php b/service/src/gen/thrift/gen-php/ThriftHive.php
    index 8fc3ff4..2c783b6 100644
    --- a/service/src/gen/thrift/gen-php/ThriftHive.php
    +++ b/service/src/gen/thrift/gen-php/ThriftHive.php
    @@ -1,7 +1,7 @@
      <?php
      namespace ;
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
    @@ -12,18 +12,54 @@ use Thrift\Type\TMessageType;
      use Thrift\Exception\TException;
      use Thrift\Exception\TProtocolException;
      use Thrift\Protocol\TProtocol;
    +use Thrift\Protocol\TBinaryProtocolAccelerated;
      use Thrift\Exception\TApplicationException;


      interface ThriftHiveIf extends \metastore\ThriftHiveMetastoreIf {
    + /**
    + * @param string $query
    + * @throws \HiveServerException
    + */
        public function execute($query);
    + /**
    + * @return string
    + * @throws \HiveServerException
    + */
        public function fetchOne();
    + /**
    + * @param int $numRows
    + * @return string[]
    + * @throws \HiveServerException
    + */
        public function fetchN($numRows);
    + /**
    + * @return string[]
    + * @throws \HiveServerException
    + */
        public function fetchAll();
    + /**
    + * @return \metastore\Schema
    + * @throws \HiveServerException
    + */
        public function getSchema();
    + /**
    + * @return \metastore\Schema
    + * @throws \HiveServerException
    + */
        public function getThriftSchema();
    + /**
    + * @return \HiveClusterStatus
    + * @throws \HiveServerException
    + */
        public function getClusterStatus();
    + /**
    + * @return \QueryPlan
    + * @throws \HiveServerException
    + */
        public function getQueryPlan();
    + /**
    + */
        public function clean();
      }

    @@ -42,7 +78,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        {
          $args = new \ThriftHive_execute_args();
          $args->query = $query;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'execute', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -58,7 +94,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_execute()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_execute_result', $this->input_->isStrictRead());
          else
          {
    @@ -92,7 +128,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_fetchOne()
        {
          $args = new \ThriftHive_fetchOne_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'fetchOne', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -108,7 +144,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_fetchOne()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchOne_result', $this->input_->isStrictRead());
          else
          {
    @@ -146,7 +182,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        {
          $args = new \ThriftHive_fetchN_args();
          $args->numRows = $numRows;
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'fetchN', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -162,7 +198,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_fetchN()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchN_result', $this->input_->isStrictRead());
          else
          {
    @@ -199,7 +235,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_fetchAll()
        {
          $args = new \ThriftHive_fetchAll_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'fetchAll', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -215,7 +251,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_fetchAll()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchAll_result', $this->input_->isStrictRead());
          else
          {
    @@ -252,7 +288,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_getSchema()
        {
          $args = new \ThriftHive_getSchema_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'getSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -268,7 +304,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_getSchema()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getSchema_result', $this->input_->isStrictRead());
          else
          {
    @@ -305,7 +341,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_getThriftSchema()
        {
          $args = new \ThriftHive_getThriftSchema_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'getThriftSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -321,7 +357,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_getThriftSchema()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getThriftSchema_result', $this->input_->isStrictRead());
          else
          {
    @@ -358,7 +394,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_getClusterStatus()
        {
          $args = new \ThriftHive_getClusterStatus_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'getClusterStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -374,7 +410,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_getClusterStatus()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getClusterStatus_result', $this->input_->isStrictRead());
          else
          {
    @@ -411,7 +447,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_getQueryPlan()
        {
          $args = new \ThriftHive_getQueryPlan_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'getQueryPlan', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -427,7 +463,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_getQueryPlan()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getQueryPlan_result', $this->input_->isStrictRead());
          else
          {
    @@ -464,7 +500,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
        public function send_clean()
        {
          $args = new \ThriftHive_clean_args();
    - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
          if ($bin_accel)
          {
            thrift_protocol_write_binary($this->output_, 'clean', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    @@ -480,7 +516,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \

        public function recv_clean()
        {
    - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
          if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_clean_result', $this->input_->isStrictRead());
          else
          {
    @@ -509,6 +545,9 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \
      class ThriftHive_execute_args {
        static $_TSPEC;

    + /**
    + * @var string
    + */
        public $query = null;

        public function __construct($vals=null) {
    @@ -581,6 +620,9 @@ class ThriftHive_execute_args {
      class ThriftHive_execute_result {
        static $_TSPEC;

    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -705,7 +747,13 @@ class ThriftHive_fetchOne_args {
      class ThriftHive_fetchOne_result {
        static $_TSPEC;

    + /**
    + * @var string
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -799,6 +847,9 @@ class ThriftHive_fetchOne_result {
      class ThriftHive_fetchN_args {
        static $_TSPEC;

    + /**
    + * @var int
    + */
        public $numRows = null;

        public function __construct($vals=null) {
    @@ -871,7 +922,13 @@ class ThriftHive_fetchN_args {
      class ThriftHive_fetchN_result {
        static $_TSPEC;

    + /**
    + * @var string[]
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -1041,7 +1098,13 @@ class ThriftHive_fetchAll_args {
      class ThriftHive_fetchAll_result {
        static $_TSPEC;

    + /**
    + * @var string[]
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -1211,7 +1274,13 @@ class ThriftHive_getSchema_args {
      class ThriftHive_getSchema_result {
        static $_TSPEC;

    + /**
    + * @var \metastore\Schema
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -1360,7 +1429,13 @@ class ThriftHive_getThriftSchema_args {
      class ThriftHive_getThriftSchema_result {
        static $_TSPEC;

    + /**
    + * @var \metastore\Schema
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -1509,7 +1584,13 @@ class ThriftHive_getClusterStatus_args {
      class ThriftHive_getClusterStatus_result {
        static $_TSPEC;

    + /**
    + * @var \HiveClusterStatus
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {
    @@ -1658,7 +1739,13 @@ class ThriftHive_getQueryPlan_args {
      class ThriftHive_getQueryPlan_result {
        static $_TSPEC;

    + /**
    + * @var \QueryPlan
    + */
        public $success = null;
    + /**
    + * @var \HiveServerException
    + */
        public $ex = null;

        public function __construct($vals=null) {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-php/Types.php
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-php/Types.php b/service/src/gen/thrift/gen-php/Types.php
    index f4225ad..d8f3c5b 100644
    --- a/service/src/gen/thrift/gen-php/Types.php
    +++ b/service/src/gen/thrift/gen-php/Types.php
    @@ -2,7 +2,7 @@
      namespace ;

      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
    @@ -13,6 +13,7 @@ use Thrift\Type\TMessageType;
      use Thrift\Exception\TException;
      use Thrift\Exception\TProtocolException;
      use Thrift\Protocol\TProtocol;
    +use Thrift\Protocol\TBinaryProtocolAccelerated;
      use Thrift\Exception\TApplicationException;


    @@ -28,11 +29,29 @@ final class JobTrackerState {
      class HiveClusterStatus {
        static $_TSPEC;

    + /**
    + * @var int
    + */
        public $taskTrackers = null;
    + /**
    + * @var int
    + */
        public $mapTasks = null;
    + /**
    + * @var int
    + */
        public $reduceTasks = null;
    + /**
    + * @var int
    + */
        public $maxMapTasks = null;
    + /**
    + * @var int
    + */
        public $maxReduceTasks = null;
    + /**
    + * @var int
    + */
        public $state = null;

        public function __construct($vals=null) {
    @@ -200,8 +219,17 @@ class HiveClusterStatus {
      class HiveServerException extends TException {
        static $_TSPEC;

    + /**
    + * @var string
    + */
        public $message = null;
    + /**
    + * @var int
    + */
        public $errorCode = null;
    + /**
    + * @var string
    + */
        public $SQLState = null;

        public function __construct($vals=null) {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote b/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote
    old mode 100644
    new mode 100755
    index f6ff43f..2bfca56
    --- a/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote
    +++ b/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote
    @@ -1,6 +1,6 @@
      #!/usr/bin/env python
      #
    -# Autogenerated by Thrift Compiler (0.9.0)
    +# Autogenerated by Thrift Compiler (0.9.2)
      #
      # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
      #
    @@ -12,37 +12,38 @@ import pprint
      from urlparse import urlparse
      from thrift.transport import TTransport
      from thrift.transport import TSocket
    +from thrift.transport import TSSLSocket
      from thrift.transport import THttpClient
      from thrift.protocol import TBinaryProtocol

    -import TCLIService
    -from ttypes import *
    +from TCLIService import TCLIService
    +from TCLIService.ttypes import *

      if len(sys.argv) <= 1 or sys.argv[1] == '--help':
    - print ''
    - print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
    - print ''
    - print 'Functions:'
    - print ' TOpenSessionResp OpenSession(TOpenSessionReq req)'
    - print ' TCloseSessionResp CloseSession(TCloseSessionReq req)'
    - print ' TGetInfoResp GetInfo(TGetInfoReq req)'
    - print ' TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)'
    - print ' TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req)'
    - print ' TGetCatalogsResp GetCatalogs(TGetCatalogsReq req)'
    - print ' TGetSchemasResp GetSchemas(TGetSchemasReq req)'
    - print ' TGetTablesResp GetTables(TGetTablesReq req)'
    - print ' TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)'
    - print ' TGetColumnsResp GetColumns(TGetColumnsReq req)'
    - print ' TGetFunctionsResp GetFunctions(TGetFunctionsReq req)'
    - print ' TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)'
    - print ' TCancelOperationResp CancelOperation(TCancelOperationReq req)'
    - print ' TCloseOperationResp CloseOperation(TCloseOperationReq req)'
    - print ' TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)'
    - print ' TFetchResultsResp FetchResults(TFetchResultsReq req)'
    - print ' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)'
    - print ' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)'
    - print ' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)'
    - print ''
    + print('')
    + print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]')
    + print('')
    + print('Functions:')
    + print(' TOpenSessionResp OpenSession(TOpenSessionReq req)')
    + print(' TCloseSessionResp CloseSession(TCloseSessionReq req)')
    + print(' TGetInfoResp GetInfo(TGetInfoReq req)')
    + print(' TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)')
    + print(' TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req)')
    + print(' TGetCatalogsResp GetCatalogs(TGetCatalogsReq req)')
    + print(' TGetSchemasResp GetSchemas(TGetSchemasReq req)')
    + print(' TGetTablesResp GetTables(TGetTablesReq req)')
    + print(' TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)')
    + print(' TGetColumnsResp GetColumns(TGetColumnsReq req)')
    + print(' TGetFunctionsResp GetFunctions(TGetFunctionsReq req)')
    + print(' TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)')
    + print(' TCancelOperationResp CancelOperation(TCancelOperationReq req)')
    + print(' TCloseOperationResp CloseOperation(TCloseOperationReq req)')
    + print(' TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)')
    + print(' TFetchResultsResp FetchResults(TFetchResultsReq req)')
    + print(' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)')
    + print(' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)')
    + print(' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)')
    + print('')
        sys.exit(0)

      pp = pprint.PrettyPrinter(indent = 2)
    @@ -50,6 +51,7 @@ host = 'localhost'
      port = 9090
      uri = ''
      framed = False
    +ssl = False
      http = False
      argi = 1

    @@ -78,13 +80,17 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
        framed = True
        argi += 1

    +if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
    + ssl = True
    + argi += 1
    +
      cmd = sys.argv[argi]
      args = sys.argv[argi+1:]

      if http:
        transport = THttpClient.THttpClient(host, port, uri)
      else:
    - socket = TSocket.TSocket(host, port)
    + socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port)
        if framed:
          transport = TTransport.TFramedTransport(socket)
        else:
    @@ -95,120 +101,120 @@ transport.open()

      if cmd == 'OpenSession':
        if len(args) != 1:
    - print 'OpenSession requires 1 args'
    + print('OpenSession requires 1 args')
          sys.exit(1)
        pp.pprint(client.OpenSession(eval(args[0]),))

      elif cmd == 'CloseSession':
        if len(args) != 1:
    - print 'CloseSession requires 1 args'
    + print('CloseSession requires 1 args')
          sys.exit(1)
        pp.pprint(client.CloseSession(eval(args[0]),))

      elif cmd == 'GetInfo':
        if len(args) != 1:
    - print 'GetInfo requires 1 args'
    + print('GetInfo requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetInfo(eval(args[0]),))

      elif cmd == 'ExecuteStatement':
        if len(args) != 1:
    - print 'ExecuteStatement requires 1 args'
    + print('ExecuteStatement requires 1 args')
          sys.exit(1)
        pp.pprint(client.ExecuteStatement(eval(args[0]),))

      elif cmd == 'GetTypeInfo':
        if len(args) != 1:
    - print 'GetTypeInfo requires 1 args'
    + print('GetTypeInfo requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetTypeInfo(eval(args[0]),))

      elif cmd == 'GetCatalogs':
        if len(args) != 1:
    - print 'GetCatalogs requires 1 args'
    + print('GetCatalogs requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetCatalogs(eval(args[0]),))

      elif cmd == 'GetSchemas':
        if len(args) != 1:
    - print 'GetSchemas requires 1 args'
    + print('GetSchemas requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetSchemas(eval(args[0]),))

      elif cmd == 'GetTables':
        if len(args) != 1:
    - print 'GetTables requires 1 args'
    + print('GetTables requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetTables(eval(args[0]),))

      elif cmd == 'GetTableTypes':
        if len(args) != 1:
    - print 'GetTableTypes requires 1 args'
    + print('GetTableTypes requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetTableTypes(eval(args[0]),))

      elif cmd == 'GetColumns':
        if len(args) != 1:
    - print 'GetColumns requires 1 args'
    + print('GetColumns requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetColumns(eval(args[0]),))

      elif cmd == 'GetFunctions':
        if len(args) != 1:
    - print 'GetFunctions requires 1 args'
    + print('GetFunctions requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetFunctions(eval(args[0]),))

      elif cmd == 'GetOperationStatus':
        if len(args) != 1:
    - print 'GetOperationStatus requires 1 args'
    + print('GetOperationStatus requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetOperationStatus(eval(args[0]),))

      elif cmd == 'CancelOperation':
        if len(args) != 1:
    - print 'CancelOperation requires 1 args'
    + print('CancelOperation requires 1 args')
          sys.exit(1)
        pp.pprint(client.CancelOperation(eval(args[0]),))

      elif cmd == 'CloseOperation':
        if len(args) != 1:
    - print 'CloseOperation requires 1 args'
    + print('CloseOperation requires 1 args')
          sys.exit(1)
        pp.pprint(client.CloseOperation(eval(args[0]),))

      elif cmd == 'GetResultSetMetadata':
        if len(args) != 1:
    - print 'GetResultSetMetadata requires 1 args'
    + print('GetResultSetMetadata requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetResultSetMetadata(eval(args[0]),))

      elif cmd == 'FetchResults':
        if len(args) != 1:
    - print 'FetchResults requires 1 args'
    + print('FetchResults requires 1 args')
          sys.exit(1)
        pp.pprint(client.FetchResults(eval(args[0]),))

      elif cmd == 'GetDelegationToken':
        if len(args) != 1:
    - print 'GetDelegationToken requires 1 args'
    + print('GetDelegationToken requires 1 args')
          sys.exit(1)
        pp.pprint(client.GetDelegationToken(eval(args[0]),))

      elif cmd == 'CancelDelegationToken':
        if len(args) != 1:
    - print 'CancelDelegationToken requires 1 args'
    + print('CancelDelegationToken requires 1 args')
          sys.exit(1)
        pp.pprint(client.CancelDelegationToken(eval(args[0]),))

      elif cmd == 'RenewDelegationToken':
        if len(args) != 1:
    - print 'RenewDelegationToken requires 1 args'
    + print('RenewDelegationToken requires 1 args')
          sys.exit(1)
        pp.pprint(client.RenewDelegationToken(eval(args[0]),))

      else:
    - print 'Unrecognized method %s' % cmd
    + print('Unrecognized method %s' % cmd)
        sys.exit(1)

      transport.close()

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py b/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py
    index ebc6574..0067195 100644
    --- a/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py
    +++ b/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py
    @@ -1,5 +1,5 @@
      #
    -# Autogenerated by Thrift Compiler (0.9.0)
    +# Autogenerated by Thrift Compiler (0.9.2)
      #
      # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
      #
    @@ -175,16 +175,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_OpenSession(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_OpenSession(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = OpenSession_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result");
    @@ -205,16 +206,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_CloseSession(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_CloseSession(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = CloseSession_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result");
    @@ -235,16 +237,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetInfo(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetInfo(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetInfo_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result");
    @@ -265,16 +268,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_ExecuteStatement(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_ExecuteStatement(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = ExecuteStatement_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result");
    @@ -295,16 +299,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetTypeInfo(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetTypeInfo(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetTypeInfo_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result");
    @@ -325,16 +330,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetCatalogs(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetCatalogs(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetCatalogs_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result");
    @@ -355,16 +361,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetSchemas(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetSchemas(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetSchemas_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result");
    @@ -385,16 +392,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetTables(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetTables(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetTables_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTables failed: unknown result");
    @@ -415,16 +423,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetTableTypes(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetTableTypes(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetTableTypes_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result");
    @@ -445,16 +454,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetColumns(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetColumns(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetColumns_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result");
    @@ -475,16 +485,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetFunctions(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetFunctions(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetFunctions_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result");
    @@ -505,16 +516,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetOperationStatus(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetOperationStatus(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetOperationStatus_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result");
    @@ -535,16 +547,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_CancelOperation(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_CancelOperation(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = CancelOperation_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result");
    @@ -565,16 +578,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_CloseOperation(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_CloseOperation(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = CloseOperation_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result");
    @@ -595,16 +609,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetResultSetMetadata(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetResultSetMetadata(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetResultSetMetadata_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
    @@ -625,16 +640,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_FetchResults(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_FetchResults(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = FetchResults_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result");
    @@ -655,16 +671,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_GetDelegationToken(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_GetDelegationToken(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = GetDelegationToken_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result");
    @@ -685,16 +702,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_CancelDelegationToken(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_CancelDelegationToken(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = CancelDelegationToken_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result");
    @@ -715,16 +733,17 @@ class Client(Iface):
          self._oprot.writeMessageEnd()
          self._oprot.trans.flush()

    - def recv_RenewDelegationToken(self, ):
    - (fname, mtype, rseqid) = self._iprot.readMessageBegin()
    + def recv_RenewDelegationToken(self):
    + iprot = self._iprot
    + (fname, mtype, rseqid) = iprot.readMessageBegin()
          if mtype == TMessageType.EXCEPTION:
            x = TApplicationException()
    - x.read(self._iprot)
    - self._iprot.readMessageEnd()
    + x.read(iprot)
    + iprot.readMessageEnd()
            raise x
          result = RenewDelegationToken_result()
    - result.read(self._iprot)
    - self._iprot.readMessageEnd()
    + result.read(iprot)
    + iprot.readMessageEnd()
          if result.success is not None:
            return result.success
          raise TApplicationException(TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result");
    @@ -1031,6 +1050,11 @@ class OpenSession_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1091,6 +1115,11 @@ class OpenSession_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1152,6 +1181,11 @@ class CloseSession_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1212,6 +1246,11 @@ class CloseSession_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1273,6 +1312,11 @@ class GetInfo_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1333,6 +1377,11 @@ class GetInfo_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1394,6 +1443,11 @@ class ExecuteStatement_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1454,6 +1508,11 @@ class ExecuteStatement_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1515,6 +1574,11 @@ class GetTypeInfo_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1575,6 +1639,11 @@ class GetTypeInfo_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1636,6 +1705,11 @@ class GetCatalogs_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1696,6 +1770,11 @@ class GetCatalogs_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1757,6 +1836,11 @@ class GetSchemas_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1817,6 +1901,11 @@ class GetSchemas_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1878,6 +1967,11 @@ class GetTables_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1938,6 +2032,11 @@ class GetTables_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1999,6 +2098,11 @@ class GetTableTypes_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2059,6 +2163,11 @@ class GetTableTypes_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2120,6 +2229,11 @@ class GetColumns_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2180,6 +2294,11 @@ class GetColumns_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2241,6 +2360,11 @@ class GetFunctions_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2301,6 +2425,11 @@ class GetFunctions_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2362,6 +2491,11 @@ class GetOperationStatus_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2422,6 +2556,11 @@ class GetOperationStatus_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2483,6 +2622,11 @@ class CancelOperation_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2543,6 +2687,11 @@ class CancelOperation_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2604,6 +2753,11 @@ class CloseOperation_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2664,6 +2818,11 @@ class CloseOperation_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2725,6 +2884,11 @@ class GetResultSetMetadata_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2785,6 +2949,11 @@ class GetResultSetMetadata_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2846,6 +3015,11 @@ class FetchResults_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2906,6 +3080,11 @@ class FetchResults_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2967,6 +3146,11 @@ class GetDelegationToken_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3027,6 +3211,11 @@ class GetDelegationToken_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3088,6 +3277,11 @@ class CancelDelegationToken_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3148,6 +3342,11 @@ class CancelDelegationToken_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3209,6 +3408,11 @@ class RenewDelegationToken_args:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.req)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3269,6 +3473,11 @@ class RenewDelegationToken_result:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.success)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/TCLIService/constants.py
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-py/TCLIService/constants.py b/service/src/gen/thrift/gen-py/TCLIService/constants.py
    index eafcb05..9fb1a86 100644
    --- a/service/src/gen/thrift/gen-py/TCLIService/constants.py
    +++ b/service/src/gen/thrift/gen-py/TCLIService/constants.py
    @@ -1,5 +1,5 @@
      #
    -# Autogenerated by Thrift Compiler (0.9.0)
    +# Autogenerated by Thrift Compiler (0.9.2)
      #
      # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
      #

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-py/TCLIService/ttypes.py b/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
    index 068727c..efee8ef 100644
    --- a/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
    +++ b/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
    @@ -1,5 +1,5 @@
      #
    -# Autogenerated by Thrift Compiler (0.9.0)
    +# Autogenerated by Thrift Compiler (0.9.2)
      #
      # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
      #
    @@ -449,6 +449,12 @@ class TTypeQualifierValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.i32Value)
    + value = (value * 31) ^ hash(self.stringValue)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -486,7 +492,7 @@ class TTypeQualifiers:
            if fid == 1:
              if ftype == TType.MAP:
                self.qualifiers = {}
    - (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin()
    + (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin()
                for _i4 in xrange(_size0):
                  _key5 = iprot.readString();
                  _val6 = TTypeQualifierValue()
    @@ -522,6 +528,11 @@ class TTypeQualifiers:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.qualifiers)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -597,6 +608,12 @@ class TPrimitiveTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.type)
    + value = (value * 31) ^ hash(self.typeQualifiers)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -659,6 +676,11 @@ class TArrayTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.objectTypePtr)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -735,6 +757,12 @@ class TMapTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.keyTypePtr)
    + value = (value * 31) ^ hash(self.valueTypePtr)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -772,7 +800,7 @@ class TStructTypeEntry:
            if fid == 1:
              if ftype == TType.MAP:
                self.nameToTypePtr = {}
    - (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin()
    + (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin()
                for _i13 in xrange(_size9):
                  _key14 = iprot.readString();
                  _val15 = iprot.readI32();
    @@ -807,6 +835,11 @@ class TStructTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.nameToTypePtr)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -844,7 +877,7 @@ class TUnionTypeEntry:
            if fid == 1:
              if ftype == TType.MAP:
                self.nameToTypePtr = {}
    - (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin()
    + (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin()
                for _i22 in xrange(_size18):
                  _key23 = iprot.readString();
                  _val24 = iprot.readI32();
    @@ -879,6 +912,11 @@ class TUnionTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.nameToTypePtr)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -941,6 +979,11 @@ class TUserDefinedTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.typeClassName)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1067,6 +1110,16 @@ class TTypeEntry:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.primitiveEntry)
    + value = (value * 31) ^ hash(self.arrayEntry)
    + value = (value * 31) ^ hash(self.mapEntry)
    + value = (value * 31) ^ hash(self.structEntry)
    + value = (value * 31) ^ hash(self.unionEntry)
    + value = (value * 31) ^ hash(self.userDefinedTypeEntry)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1138,6 +1191,11 @@ class TTypeDesc:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.types)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1241,6 +1299,14 @@ class TColumnDesc:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.columnName)
    + value = (value * 31) ^ hash(self.typeDesc)
    + value = (value * 31) ^ hash(self.position)
    + value = (value * 31) ^ hash(self.comment)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1312,6 +1378,11 @@ class TTableSchema:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.columns)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1372,6 +1443,11 @@ class TBoolValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1432,6 +1508,11 @@ class TByteValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1492,6 +1573,11 @@ class TI16Value:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1552,6 +1638,11 @@ class TI32Value:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1612,6 +1703,11 @@ class TI64Value:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1672,6 +1768,11 @@ class TDoubleValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1732,6 +1833,11 @@ class TStringValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1871,6 +1977,17 @@ class TColumnValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.boolVal)
    + value = (value * 31) ^ hash(self.byteVal)
    + value = (value * 31) ^ hash(self.i16Val)
    + value = (value * 31) ^ hash(self.i32Val)
    + value = (value * 31) ^ hash(self.i64Val)
    + value = (value * 31) ^ hash(self.doubleVal)
    + value = (value * 31) ^ hash(self.stringVal)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -1942,6 +2059,11 @@ class TRow:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.colVals)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2026,6 +2148,12 @@ class TBoolColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2110,6 +2238,12 @@ class TByteColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2194,6 +2328,12 @@ class TI16Column:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2278,6 +2418,12 @@ class TI32Column:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2362,6 +2508,12 @@ class TI64Column:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2446,6 +2598,12 @@ class TDoubleColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2530,6 +2688,12 @@ class TStringColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2614,6 +2778,12 @@ class TBinaryColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2766,6 +2936,18 @@ class TColumn:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.boolVal)
    + value = (value * 31) ^ hash(self.byteVal)
    + value = (value * 31) ^ hash(self.i16Val)
    + value = (value * 31) ^ hash(self.i32Val)
    + value = (value * 31) ^ hash(self.i64Val)
    + value = (value * 31) ^ hash(self.doubleVal)
    + value = (value * 31) ^ hash(self.stringVal)
    + value = (value * 31) ^ hash(self.binaryVal)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2872,6 +3054,13 @@ class TRowSet:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.startRowOffset)
    + value = (value * 31) ^ hash(self.rows)
    + value = (value * 31) ^ hash(self.columns)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -2990,6 +3179,15 @@ class TStatus:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.statusCode)
    + value = (value * 31) ^ hash(self.infoMessages)
    + value = (value * 31) ^ hash(self.sqlState)
    + value = (value * 31) ^ hash(self.errorCode)
    + value = (value * 31) ^ hash(self.errorMessage)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3066,6 +3264,12 @@ class THandleIdentifier:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.guid)
    + value = (value * 31) ^ hash(self.secret)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3129,6 +3333,11 @@ class TSessionHandle:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionId)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3232,6 +3441,14 @@ class TOperationHandle:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationId)
    + value = (value * 31) ^ hash(self.operationType)
    + value = (value * 31) ^ hash(self.hasResultSet)
    + value = (value * 31) ^ hash(self.modifiedRowCount)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3293,7 +3510,7 @@ class TOpenSessionReq:
            elif fid == 4:
              if ftype == TType.MAP:
                self.configuration = {}
    - (_ktype126, _vtype127, _size125 ) = iprot.readMapBegin()
    + (_ktype126, _vtype127, _size125 ) = iprot.readMapBegin()
                for _i129 in xrange(_size125):
                  _key130 = iprot.readString();
                  _val131 = iprot.readString();
    @@ -3340,6 +3557,14 @@ class TOpenSessionReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.client_protocol)
    + value = (value * 31) ^ hash(self.username)
    + value = (value * 31) ^ hash(self.password)
    + value = (value * 31) ^ hash(self.configuration)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3403,7 +3628,7 @@ class TOpenSessionResp:
            elif fid == 4:
              if ftype == TType.MAP:
                self.configuration = {}
    - (_ktype135, _vtype136, _size134 ) = iprot.readMapBegin()
    + (_ktype135, _vtype136, _size134 ) = iprot.readMapBegin()
                for _i138 in xrange(_size134):
                  _key139 = iprot.readString();
                  _val140 = iprot.readString();
    @@ -3452,6 +3677,14 @@ class TOpenSessionResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.serverProtocolVersion)
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.configuration)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3515,6 +3748,11 @@ class TCloseSessionReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3578,6 +3816,11 @@ class TCloseSessionResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3698,6 +3941,16 @@ class TGetInfoValue:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.stringValue)
    + value = (value * 31) ^ hash(self.smallIntValue)
    + value = (value * 31) ^ hash(self.integerBitmask)
    + value = (value * 31) ^ hash(self.integerFlag)
    + value = (value * 31) ^ hash(self.binaryValue)
    + value = (value * 31) ^ hash(self.lenValue)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3775,6 +4028,12 @@ class TGetInfoReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.infoType)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3853,6 +4112,12 @@ class TGetInfoResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.infoValue)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -3910,7 +4175,7 @@ class TExecuteStatementReq:
            elif fid == 3:
              if ftype == TType.MAP:
                self.confOverlay = {}
    - (_ktype144, _vtype145, _size143 ) = iprot.readMapBegin()
    + (_ktype144, _vtype145, _size143 ) = iprot.readMapBegin()
                for _i147 in xrange(_size143):
                  _key148 = iprot.readString();
                  _val149 = iprot.readString();
    @@ -3964,6 +4229,14 @@ class TExecuteStatementReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.statement)
    + value = (value * 31) ^ hash(self.confOverlay)
    + value = (value * 31) ^ hash(self.runAsync)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4040,6 +4313,12 @@ class TExecuteStatementResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4103,6 +4382,11 @@ class TGetTypeInfoReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4179,6 +4463,12 @@ class TGetTypeInfoResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4242,6 +4532,11 @@ class TGetCatalogsReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4318,6 +4613,12 @@ class TGetCatalogsResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4405,6 +4706,13 @@ class TGetSchemasReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.catalogName)
    + value = (value * 31) ^ hash(self.schemaName)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4481,6 +4789,12 @@ class TGetSchemasResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4600,6 +4914,15 @@ class TGetTablesReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.catalogName)
    + value = (value * 31) ^ hash(self.schemaName)
    + value = (value * 31) ^ hash(self.tableName)
    + value = (value * 31) ^ hash(self.tableTypes)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4676,6 +4999,12 @@ class TGetTablesResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4739,6 +5068,11 @@ class TGetTableTypesReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4815,6 +5149,12 @@ class TGetTableTypesResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -4926,6 +5266,15 @@ class TGetColumnsReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.catalogName)
    + value = (value * 31) ^ hash(self.schemaName)
    + value = (value * 31) ^ hash(self.tableName)
    + value = (value * 31) ^ hash(self.columnName)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5002,6 +5351,12 @@ class TGetColumnsResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5103,6 +5458,14 @@ class TGetFunctionsReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.catalogName)
    + value = (value * 31) ^ hash(self.schemaName)
    + value = (value * 31) ^ hash(self.functionName)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5179,6 +5542,12 @@ class TGetFunctionsResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5242,6 +5611,11 @@ class TGetOperationStatusReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5353,6 +5727,15 @@ class TGetOperationStatusResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.operationState)
    + value = (value * 31) ^ hash(self.sqlState)
    + value = (value * 31) ^ hash(self.errorCode)
    + value = (value * 31) ^ hash(self.errorMessage)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5416,6 +5799,11 @@ class TCancelOperationReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5479,6 +5867,11 @@ class TCancelOperationResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5542,6 +5935,11 @@ class TCloseOperationReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5605,6 +6003,11 @@ class TCloseOperationResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5668,6 +6071,11 @@ class TGetResultSetMetadataReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationHandle)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5744,6 +6152,12 @@ class TGetResultSetMetadataResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.schema)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5847,6 +6261,14 @@ class TFetchResultsReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.operationHandle)
    + value = (value * 31) ^ hash(self.orientation)
    + value = (value * 31) ^ hash(self.maxRows)
    + value = (value * 31) ^ hash(self.fetchType)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -5935,6 +6357,13 @@ class TFetchResultsResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.hasMoreRows)
    + value = (value * 31) ^ hash(self.results)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6026,6 +6455,13 @@ class TGetDelegationTokenReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.owner)
    + value = (value * 31) ^ hash(self.renewer)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6101,6 +6537,12 @@ class TGetDelegationTokenResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + value = (value * 31) ^ hash(self.delegationToken)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6178,6 +6620,12 @@ class TCancelDelegationTokenReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.delegationToken)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6241,6 +6689,11 @@ class TCancelDelegationTokenResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6318,6 +6771,12 @@ class TRenewDelegationTokenReq:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.sessionHandle)
    + value = (value * 31) ^ hash(self.delegationToken)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
    @@ -6381,6 +6840,11 @@ class TRenewDelegationTokenResp:
          return


    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.status)
    + return value
    +
        def __repr__(self):
          L = ['%s=%r' % (key, value)
            for key, value in self.__dict__.iteritems()]
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java
    index 425603c..3361982 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TMapTypeEntry implements org.apache.thrift.TBase<TMapTypeEntry, TMapTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TMapTypeEntry implements org.apache.thrift.TBase<TMapTypeEntry, TMapTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TMapTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMapTypeEntry");

        private static final org.apache.thrift.protocol.TField KEY_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("keyTypePtr", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -285,45 +289,45 @@ public class TMapTypeEntry implements org.apache.thrift.TBase<TMapTypeEntry, TMa

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_keyTypePtr = true;
    - builder.append(present_keyTypePtr);
    + list.add(present_keyTypePtr);
          if (present_keyTypePtr)
    - builder.append(keyTypePtr);
    + list.add(keyTypePtr);

          boolean present_valueTypePtr = true;
    - builder.append(present_valueTypePtr);
    + list.add(present_valueTypePtr);
          if (present_valueTypePtr)
    - builder.append(valueTypePtr);
    + list.add(valueTypePtr);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TMapTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TMapTypeEntry typedOther = (TMapTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(typedOther.isSetKeyTypePtr());
    + lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(other.isSetKeyTypePtr());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetKeyTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, typedOther.keyTypePtr);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, other.keyTypePtr);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(typedOther.isSetValueTypePtr());
    + lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(other.isSetValueTypePtr());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValueTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, typedOther.valueTypePtr);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, other.valueTypePtr);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
    index c048161..ff5d48b 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq, TOpenSessionReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq, TOpenSessionReq._Fields>, java.io.Serializable, Cloneable, Comparable<TOpenSessionReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionReq");

        private static final org.apache.thrift.protocol.TField CLIENT_PROTOCOL_FIELD_DESC = new org.apache.thrift.protocol.TField("client_protocol", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -122,7 +126,7 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION};
    + private static final _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -166,18 +170,7 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
            this.password = other.password;
          }
          if (other.isSetConfiguration()) {
    - Map<String,String> __this__configuration = new HashMap<String,String>();
    - for (Map.Entry<String, String> other_element : other.configuration.entrySet()) {
    -
    - String other_element_key = other_element.getKey();
    - String other_element_value = other_element.getValue();
    -
    - String __this__configuration_copy_key = other_element_key;
    -
    - String __this__configuration_copy_value = other_element_value;
    -
    - __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value);
    - }
    + Map<String,String> __this__configuration = new HashMap<String,String>(other.configuration);
            this.configuration = __this__configuration;
          }
        }
    @@ -434,75 +427,75 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_client_protocol = true && (isSetClient_protocol());
    - builder.append(present_client_protocol);
    + list.add(present_client_protocol);
          if (present_client_protocol)
    - builder.append(client_protocol.getValue());
    + list.add(client_protocol.getValue());

          boolean present_username = true && (isSetUsername());
    - builder.append(present_username);
    + list.add(present_username);
          if (present_username)
    - builder.append(username);
    + list.add(username);

          boolean present_password = true && (isSetPassword());
    - builder.append(present_password);
    + list.add(present_password);
          if (present_password)
    - builder.append(password);
    + list.add(password);

          boolean present_configuration = true && (isSetConfiguration());
    - builder.append(present_configuration);
    + list.add(present_configuration);
          if (present_configuration)
    - builder.append(configuration);
    + list.add(configuration);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TOpenSessionReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TOpenSessionReq typedOther = (TOpenSessionReq)other;

    - lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(typedOther.isSetClient_protocol());
    + lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(other.isSetClient_protocol());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetClient_protocol()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, typedOther.client_protocol);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, other.client_protocol);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
    + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetUsername()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
    + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetPassword()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration());
    + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetConfiguration()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -613,7 +606,7 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
              switch (schemeField.id) {
                case 1: // CLIENT_PROTOCOL
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32());
    + struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32());
                    struct.setClient_protocolIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -640,13 +633,13 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
                    {
                      org.apache.thrift.protocol.TMap _map142 = iprot.readMapBegin();
                      struct.configuration = new HashMap<String,String>(2*_map142.size);
    - for (int _i143 = 0; _i143 < _map142.size; ++_i143)
    + String _key143;
    + String _val144;
    + for (int _i145 = 0; _i145 < _map142.size; ++_i145)
                      {
    - String _key144; // required
    - String _val145; // required
    - _key144 = iprot.readString();
    - _val145 = iprot.readString();
    - struct.configuration.put(_key144, _val145);
    + _key143 = iprot.readString();
    + _val144 = iprot.readString();
    + struct.configuration.put(_key143, _val144);
                      }
                      iprot.readMapEnd();
                    }
    @@ -752,7 +745,7 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
          @Override
          public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq struct) throws org.apache.thrift.TException {
            TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32());
    + struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32());
            struct.setClient_protocolIsSet(true);
            BitSet incoming = iprot.readBitSet(3);
            if (incoming.get(0)) {
    @@ -767,13 +760,13 @@ public class TOpenSessionReq implements org.apache.thrift.TBase<TOpenSessionReq,
              {
                org.apache.thrift.protocol.TMap _map148 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                struct.configuration = new HashMap<String,String>(2*_map148.size);
    - for (int _i149 = 0; _i149 < _map148.size; ++_i149)
    + String _key149;
    + String _val150;
    + for (int _i151 = 0; _i151 < _map148.size; ++_i151)
                {
    - String _key150; // required
    - String _val151; // required
    - _key150 = iprot.readString();
    - _val151 = iprot.readString();
    - struct.configuration.put(_key150, _val151);
    + _key149 = iprot.readString();
    + _val150 = iprot.readString();
    + struct.configuration.put(_key149, _val150);
                }
              }
              struct.setConfigurationIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
    index 351f78b..6753b63 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionResp, TOpenSessionResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionResp, TOpenSessionResp._Fields>, java.io.Serializable, Cloneable, Comparable<TOpenSessionResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -122,7 +126,7 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION};
    + private static final _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -168,18 +172,7 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
            this.sessionHandle = new TSessionHandle(other.sessionHandle);
          }
          if (other.isSetConfiguration()) {
    - Map<String,String> __this__configuration = new HashMap<String,String>();
    - for (Map.Entry<String, String> other_element : other.configuration.entrySet()) {
    -
    - String other_element_key = other_element.getKey();
    - String other_element_value = other_element.getValue();
    -
    - String __this__configuration_copy_key = other_element_key;
    -
    - String __this__configuration_copy_value = other_element_value;
    -
    - __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value);
    - }
    + Map<String,String> __this__configuration = new HashMap<String,String>(other.configuration);
            this.configuration = __this__configuration;
          }
        }
    @@ -436,75 +429,75 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_serverProtocolVersion = true && (isSetServerProtocolVersion());
    - builder.append(present_serverProtocolVersion);
    + list.add(present_serverProtocolVersion);
          if (present_serverProtocolVersion)
    - builder.append(serverProtocolVersion.getValue());
    + list.add(serverProtocolVersion.getValue());

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_configuration = true && (isSetConfiguration());
    - builder.append(present_configuration);
    + list.add(present_configuration);
          if (present_configuration)
    - builder.append(configuration);
    + list.add(configuration);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TOpenSessionResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TOpenSessionResp typedOther = (TOpenSessionResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(typedOther.isSetServerProtocolVersion());
    + lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(other.isSetServerProtocolVersion());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetServerProtocolVersion()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, typedOther.serverProtocolVersion);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, other.serverProtocolVersion);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration());
    + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetConfiguration()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -632,7 +625,7 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
                  break;
                case 2: // SERVER_PROTOCOL_VERSION
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32());
    + struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32());
                    struct.setServerProtocolVersionIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -652,13 +645,13 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
                    {
                      org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin();
                      struct.configuration = new HashMap<String,String>(2*_map152.size);
    - for (int _i153 = 0; _i153 < _map152.size; ++_i153)
    + String _key153;
    + String _val154;
    + for (int _i155 = 0; _i155 < _map152.size; ++_i155)
                      {
    - String _key154; // required
    - String _val155; // required
    - _key154 = iprot.readString();
    - _val155 = iprot.readString();
    - struct.configuration.put(_key154, _val155);
    + _key153 = iprot.readString();
    + _val154 = iprot.readString();
    + struct.configuration.put(_key153, _val154);
                      }
                      iprot.readMapEnd();
                    }
    @@ -760,7 +753,7 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
            struct.status = new TStatus();
            struct.status.read(iprot);
            struct.setStatusIsSet(true);
    - struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32());
    + struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32());
            struct.setServerProtocolVersionIsSet(true);
            BitSet incoming = iprot.readBitSet(2);
            if (incoming.get(0)) {
    @@ -772,13 +765,13 @@ public class TOpenSessionResp implements org.apache.thrift.TBase<TOpenSessionRes
              {
                org.apache.thrift.protocol.TMap _map158 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                struct.configuration = new HashMap<String,String>(2*_map158.size);
    - for (int _i159 = 0; _i159 < _map158.size; ++_i159)
    + String _key159;
    + String _val160;
    + for (int _i161 = 0; _i161 < _map158.size; ++_i161)
                {
    - String _key160; // required
    - String _val161; // required
    - _key160 = iprot.readString();
    - _val161 = iprot.readString();
    - struct.configuration.put(_key160, _val161);
    + _key159 = iprot.readString();
    + _val160 = iprot.readString();
    + struct.configuration.put(_key159, _val160);
                }
              }
              struct.setConfigurationIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java
    index 8fbd875..effc801 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandle, TOperationHandle._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandle, TOperationHandle._Fields>, java.io.Serializable, Cloneable, Comparable<TOperationHandle> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOperationHandle");

        private static final org.apache.thrift.protocol.TField OPERATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operationId", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -125,7 +129,7 @@ public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandl
        private static final int __HASRESULTSET_ISSET_ID = 0;
        private static final int __MODIFIEDROWCOUNT_ISSET_ID = 1;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT};
    + private static final _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -411,75 +415,75 @@ public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandl

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_operationId = true && (isSetOperationId());
    - builder.append(present_operationId);
    + list.add(present_operationId);
          if (present_operationId)
    - builder.append(operationId);
    + list.add(operationId);

          boolean present_operationType = true && (isSetOperationType());
    - builder.append(present_operationType);
    + list.add(present_operationType);
          if (present_operationType)
    - builder.append(operationType.getValue());
    + list.add(operationType.getValue());

          boolean present_hasResultSet = true;
    - builder.append(present_hasResultSet);
    + list.add(present_hasResultSet);
          if (present_hasResultSet)
    - builder.append(hasResultSet);
    + list.add(hasResultSet);

          boolean present_modifiedRowCount = true && (isSetModifiedRowCount());
    - builder.append(present_modifiedRowCount);
    + list.add(present_modifiedRowCount);
          if (present_modifiedRowCount)
    - builder.append(modifiedRowCount);
    + list.add(modifiedRowCount);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TOperationHandle other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TOperationHandle typedOther = (TOperationHandle)other;

    - lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(typedOther.isSetOperationId());
    + lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(other.isSetOperationId());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationId()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, typedOther.operationId);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, other.operationId);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(typedOther.isSetOperationType());
    + lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(other.isSetOperationType());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationType()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, typedOther.operationType);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, other.operationType);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(typedOther.isSetHasResultSet());
    + lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(other.isSetHasResultSet());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetHasResultSet()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, typedOther.hasResultSet);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, other.hasResultSet);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(typedOther.isSetModifiedRowCount());
    + lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(other.isSetModifiedRowCount());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetModifiedRowCount()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, typedOther.modifiedRowCount);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, other.modifiedRowCount);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -600,7 +604,7 @@ public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandl
                  break;
                case 2: // OPERATION_TYPE
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.operationType = TOperationType.findByValue(iprot.readI32());
    + struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32());
                    struct.setOperationTypeIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -689,7 +693,7 @@ public class TOperationHandle implements org.apache.thrift.TBase<TOperationHandl
            struct.operationId = new THandleIdentifier();
            struct.operationId.read(iprot);
            struct.setOperationIdIsSet(true);
    - struct.operationType = TOperationType.findByValue(iprot.readI32());
    + struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32());
            struct.setOperationTypeIsSet(true);
            struct.hasResultSet = iprot.readBool();
            struct.setHasResultSetIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java
    index 2198662..2dfde1c 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java
    index b6d4b2f..6927740 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java
    index 9d2abf2..d40d9ee 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTypeEntry, TPrimitiveTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTypeEntry, TPrimitiveTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TPrimitiveTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPrimitiveTypeEntry");

        private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -112,7 +116,7 @@ public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTy
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.TYPE_QUALIFIERS};
    + private static final _Fields optionals[] = {_Fields.TYPE_QUALIFIERS};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -294,45 +298,45 @@ public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTy

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_type = true && (isSetType());
    - builder.append(present_type);
    + list.add(present_type);
          if (present_type)
    - builder.append(type.getValue());
    + list.add(type.getValue());

          boolean present_typeQualifiers = true && (isSetTypeQualifiers());
    - builder.append(present_typeQualifiers);
    + list.add(present_typeQualifiers);
          if (present_typeQualifiers)
    - builder.append(typeQualifiers);
    + list.add(typeQualifiers);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TPrimitiveTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TPrimitiveTypeEntry typedOther = (TPrimitiveTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
    + lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetType()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(typedOther.isSetTypeQualifiers());
    + lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(other.isSetTypeQualifiers());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTypeQualifiers()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, typedOther.typeQualifiers);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, other.typeQualifiers);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -426,7 +430,7 @@ public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTy
              switch (schemeField.id) {
                case 1: // TYPE
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.type = TTypeId.findByValue(iprot.readI32());
    + struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32());
                    struct.setTypeIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -497,7 +501,7 @@ public class TPrimitiveTypeEntry implements org.apache.thrift.TBase<TPrimitiveTy
          @Override
          public void read(org.apache.thrift.protocol.TProtocol prot, TPrimitiveTypeEntry struct) throws org.apache.thrift.TException {
            TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.type = TTypeId.findByValue(iprot.readI32());
    + struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32());
            struct.setTypeIsSet(true);
            BitSet incoming = iprot.readBitSet(1);
            if (incoming.get(0)) {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java
    index a4279d2..6e714c6 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java
    index a3e39c8..70b1cbe 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TRenewDelegationTokenReq implements org.apache.thrift.TBase<TRenewDelegationTokenReq, TRenewDelegationTokenReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TRenewDelegationTokenReq implements org.apache.thrift.TBase<TRenewDelegationTokenReq, TRenewDelegationTokenReq._Fields>, java.io.Serializable, Cloneable, Comparable<TRenewDelegationTokenReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -283,45 +287,45 @@ public class TRenewDelegationTokenReq implements org.apache.thrift.TBase<TRenewD

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_delegationToken = true && (isSetDelegationToken());
    - builder.append(present_delegationToken);
    + list.add(present_delegationToken);
          if (present_delegationToken)
    - builder.append(delegationToken);
    + list.add(delegationToken);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TRenewDelegationTokenReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TRenewDelegationTokenReq typedOther = (TRenewDelegationTokenReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken());
    + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetDelegationToken()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java
    index 5f3eb6c..1bd76c9 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TRenewDelegationTokenResp implements org.apache.thrift.TBase<TRenewDelegationTokenResp, TRenewDelegationTokenResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TRenewDelegationTokenResp implements org.apache.thrift.TBase<TRenewDelegationTokenResp, TRenewDelegationTokenResp._Fields>, java.io.Serializable, Cloneable, Comparable<TRenewDelegationTokenResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TRenewDelegationTokenResp implements org.apache.thrift.TBase<TRenew

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TRenewDelegationTokenResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TRenewDelegationTokenResp typedOther = (TRenewDelegationTokenResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java
    index a44cfb0..a1ba634 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.io.Serializable, Cloneable, Comparable<TRow> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRow");

        private static final org.apache.thrift.protocol.TField COL_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("colVals", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -128,7 +132,7 @@ public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.i
         */
        public TRow(TRow other) {
          if (other.isSetColVals()) {
    - List<TColumnValue> __this__colVals = new ArrayList<TColumnValue>();
    + List<TColumnValue> __this__colVals = new ArrayList<TColumnValue>(other.colVals.size());
            for (TColumnValue other_element : other.colVals) {
              __this__colVals.add(new TColumnValue(other_element));
            }
    @@ -245,30 +249,30 @@ public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.i

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_colVals = true && (isSetColVals());
    - builder.append(present_colVals);
    + list.add(present_colVals);
          if (present_colVals)
    - builder.append(colVals);
    + list.add(colVals);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TRow other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TRow typedOther = (TRow)other;

    - lastComparison = Boolean.valueOf(isSetColVals()).compareTo(typedOther.isSetColVals());
    + lastComparison = Boolean.valueOf(isSetColVals()).compareTo(other.isSetColVals());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetColVals()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, typedOther.colVals);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, other.colVals);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -352,12 +356,12 @@ public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.i
                    {
                      org.apache.thrift.protocol.TList _list46 = iprot.readListBegin();
                      struct.colVals = new ArrayList<TColumnValue>(_list46.size);
    - for (int _i47 = 0; _i47 < _list46.size; ++_i47)
    + TColumnValue _elem47;
    + for (int _i48 = 0; _i48 < _list46.size; ++_i48)
                      {
    - TColumnValue _elem48; // optional
    - _elem48 = new TColumnValue();
    - _elem48.read(iprot);
    - struct.colVals.add(_elem48);
    + _elem47 = new TColumnValue();
    + _elem47.read(iprot);
    + struct.colVals.add(_elem47);
                      }
                      iprot.readListEnd();
                    }
    @@ -423,12 +427,12 @@ public class TRow implements org.apache.thrift.TBase<TRow, TRow._Fields>, java.i
            {
              org.apache.thrift.protocol.TList _list51 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.colVals = new ArrayList<TColumnValue>(_list51.size);
    - for (int _i52 = 0; _i52 < _list51.size; ++_i52)
    + TColumnValue _elem52;
    + for (int _i53 = 0; _i53 < _list51.size; ++_i53)
              {
    - TColumnValue _elem53; // optional
    - _elem53 = new TColumnValue();
    - _elem53.read(iprot);
    - struct.colVals.add(_elem53);
    + _elem52 = new TColumnValue();
    + _elem52.read(iprot);
    + struct.colVals.add(_elem52);
              }
            }
            struct.setColValsIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java
    index d16c8a4..2124862 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields>, java.io.Serializable, Cloneable, Comparable<TRowSet> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowSet");

        private static final org.apache.thrift.protocol.TField START_ROW_OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("startRowOffset", org.apache.thrift.protocol.TType.I64, (short)1);
    @@ -115,7 +119,7 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
        // isset id assignments
        private static final int __STARTROWOFFSET_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.COLUMNS};
    + private static final _Fields optionals[] = {_Fields.COLUMNS};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -151,14 +155,14 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
          __isset_bitfield = other.__isset_bitfield;
          this.startRowOffset = other.startRowOffset;
          if (other.isSetRows()) {
    - List<TRow> __this__rows = new ArrayList<TRow>();
    + List<TRow> __this__rows = new ArrayList<TRow>(other.rows.size());
            for (TRow other_element : other.rows) {
              __this__rows.add(new TRow(other_element));
            }
            this.rows = __this__rows;
          }
          if (other.isSetColumns()) {
    - List<TColumn> __this__columns = new ArrayList<TColumn>();
    + List<TColumn> __this__columns = new ArrayList<TColumn>(other.columns.size());
            for (TColumn other_element : other.columns) {
              __this__columns.add(new TColumn(other_element));
            }
    @@ -382,60 +386,60 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_startRowOffset = true;
    - builder.append(present_startRowOffset);
    + list.add(present_startRowOffset);
          if (present_startRowOffset)
    - builder.append(startRowOffset);
    + list.add(startRowOffset);

          boolean present_rows = true && (isSetRows());
    - builder.append(present_rows);
    + list.add(present_rows);
          if (present_rows)
    - builder.append(rows);
    + list.add(rows);

          boolean present_columns = true && (isSetColumns());
    - builder.append(present_columns);
    + list.add(present_columns);
          if (present_columns)
    - builder.append(columns);
    + list.add(columns);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TRowSet other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TRowSet typedOther = (TRowSet)other;

    - lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(typedOther.isSetStartRowOffset());
    + lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(other.isSetStartRowOffset());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStartRowOffset()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, typedOther.startRowOffset);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, other.startRowOffset);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
    + lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetRows()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
    + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetColumns()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -547,12 +551,12 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
                    {
                      org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
                      struct.rows = new ArrayList<TRow>(_list118.size);
    - for (int _i119 = 0; _i119 < _list118.size; ++_i119)
    + TRow _elem119;
    + for (int _i120 = 0; _i120 < _list118.size; ++_i120)
                      {
    - TRow _elem120; // optional
    - _elem120 = new TRow();
    - _elem120.read(iprot);
    - struct.rows.add(_elem120);
    + _elem119 = new TRow();
    + _elem119.read(iprot);
    + struct.rows.add(_elem119);
                      }
                      iprot.readListEnd();
                    }
    @@ -566,12 +570,12 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
                    {
                      org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
                      struct.columns = new ArrayList<TColumn>(_list121.size);
    - for (int _i122 = 0; _i122 < _list121.size; ++_i122)
    + TColumn _elem122;
    + for (int _i123 = 0; _i123 < _list121.size; ++_i123)
                      {
    - TColumn _elem123; // optional
    - _elem123 = new TColumn();
    - _elem123.read(iprot);
    - struct.columns.add(_elem123);
    + _elem122 = new TColumn();
    + _elem122.read(iprot);
    + struct.columns.add(_elem122);
                      }
                      iprot.readListEnd();
                    }
    @@ -671,12 +675,12 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
            {
              org.apache.thrift.protocol.TList _list128 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.rows = new ArrayList<TRow>(_list128.size);
    - for (int _i129 = 0; _i129 < _list128.size; ++_i129)
    + TRow _elem129;
    + for (int _i130 = 0; _i130 < _list128.size; ++_i130)
              {
    - TRow _elem130; // optional
    - _elem130 = new TRow();
    - _elem130.read(iprot);
    - struct.rows.add(_elem130);
    + _elem129 = new TRow();
    + _elem129.read(iprot);
    + struct.rows.add(_elem129);
              }
            }
            struct.setRowsIsSet(true);
    @@ -685,12 +689,12 @@ public class TRowSet implements org.apache.thrift.TBase<TRowSet, TRowSet._Fields
              {
                org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
                struct.columns = new ArrayList<TColumn>(_list131.size);
    - for (int _i132 = 0; _i132 < _list131.size; ++_i132)
    + TColumn _elem132;
    + for (int _i133 = 0; _i133 < _list131.size; ++_i133)
                {
    - TColumn _elem133; // optional
    - _elem133 = new TColumn();
    - _elem133.read(iprot);
    - struct.columns.add(_elem133);
    + _elem132 = new TColumn();
    + _elem132.read(iprot);
    + struct.columns.add(_elem132);
                }
              }
              struct.setColumnsIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java
    index 82c00dd..2ce1286 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TSessionHandle implements org.apache.thrift.TBase<TSessionHandle, TSessionHandle._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TSessionHandle implements org.apache.thrift.TBase<TSessionHandle, TSessionHandle._Fields>, java.io.Serializable, Cloneable, Comparable<TSessionHandle> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSessionHandle");

        private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TSessionHandle implements org.apache.thrift.TBase<TSessionHandle, T

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionId = true && (isSetSessionId());
    - builder.append(present_sessionId);
    + list.add(present_sessionId);
          if (present_sessionId)
    - builder.append(sessionId);
    + list.add(sessionId);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TSessionHandle other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TSessionHandle typedOther = (TSessionHandle)other;

    - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
    + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionId()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java
    index 24a746e..0e37511 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields>, java.io.Serializable, Cloneable, Comparable<TStatus> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStatus");

        private static final org.apache.thrift.protocol.TField STATUS_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("statusCode", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -129,7 +133,7 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields
        // isset id assignments
        private static final int __ERRORCODE_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE};
    + private static final _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -167,10 +171,7 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields
            this.statusCode = other.statusCode;
          }
          if (other.isSetInfoMessages()) {
    - List<String> __this__infoMessages = new ArrayList<String>();
    - for (String other_element : other.infoMessages) {
    - __this__infoMessages.add(other_element);
    - }
    + List<String> __this__infoMessages = new ArrayList<String>(other.infoMessages);
            this.infoMessages = __this__infoMessages;
          }
          if (other.isSetSqlState()) {
    @@ -483,90 +484,90 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_statusCode = true && (isSetStatusCode());
    - builder.append(present_statusCode);
    + list.add(present_statusCode);
          if (present_statusCode)
    - builder.append(statusCode.getValue());
    + list.add(statusCode.getValue());

          boolean present_infoMessages = true && (isSetInfoMessages());
    - builder.append(present_infoMessages);
    + list.add(present_infoMessages);
          if (present_infoMessages)
    - builder.append(infoMessages);
    + list.add(infoMessages);

          boolean present_sqlState = true && (isSetSqlState());
    - builder.append(present_sqlState);
    + list.add(present_sqlState);
          if (present_sqlState)
    - builder.append(sqlState);
    + list.add(sqlState);

          boolean present_errorCode = true && (isSetErrorCode());
    - builder.append(present_errorCode);
    + list.add(present_errorCode);
          if (present_errorCode)
    - builder.append(errorCode);
    + list.add(errorCode);

          boolean present_errorMessage = true && (isSetErrorMessage());
    - builder.append(present_errorMessage);
    + list.add(present_errorMessage);
          if (present_errorMessage)
    - builder.append(errorMessage);
    + list.add(errorMessage);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TStatus other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TStatus typedOther = (TStatus)other;

    - lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(typedOther.isSetStatusCode());
    + lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(other.isSetStatusCode());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatusCode()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, typedOther.statusCode);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, other.statusCode);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(typedOther.isSetInfoMessages());
    + lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(other.isSetInfoMessages());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetInfoMessages()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, typedOther.infoMessages);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, other.infoMessages);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState());
    + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSqlState()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
    + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetErrorCode()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage());
    + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetErrorMessage()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -685,7 +686,7 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields
              switch (schemeField.id) {
                case 1: // STATUS_CODE
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.statusCode = TStatusCode.findByValue(iprot.readI32());
    + struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32());
                    struct.setStatusCodeIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -696,11 +697,11 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields
                    {
                      org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
                      struct.infoMessages = new ArrayList<String>(_list134.size);
    - for (int _i135 = 0; _i135 < _list134.size; ++_i135)
    + String _elem135;
    + for (int _i136 = 0; _i136 < _list134.size; ++_i136)
                      {
    - String _elem136; // optional
    - _elem136 = iprot.readString();
    - struct.infoMessages.add(_elem136);
    + _elem135 = iprot.readString();
    + struct.infoMessages.add(_elem135);
                      }
                      iprot.readListEnd();
                    }
    @@ -839,18 +840,18 @@ public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields
          @Override
          public void read(org.apache.thrift.protocol.TProtocol prot, TStatus struct) throws org.apache.thrift.TException {
            TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.statusCode = TStatusCode.findByValue(iprot.readI32());
    + struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32());
            struct.setStatusCodeIsSet(true);
            BitSet incoming = iprot.readBitSet(4);
            if (incoming.get(0)) {
              {
                org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                struct.infoMessages = new ArrayList<String>(_list139.size);
    - for (int _i140 = 0; _i140 < _list139.size; ++_i140)
    + String _elem140;
    + for (int _i141 = 0; _i141 < _list139.size; ++_i141)
                {
    - String _elem141; // optional
    - _elem141 = iprot.readString();
    - struct.infoMessages.add(_elem141);
    + _elem140 = iprot.readString();
    + struct.infoMessages.add(_elem140);
                }
              }
              struct.setInfoMessagesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java
    index e7fde45..91d1a97 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    index 1c44789..e4ecd28 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hadoop.hive.service;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,12 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
      public class ThriftHive {

        public interface Iface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface {
    @@ -57,23 +61,23 @@ public class ThriftHive {

        public interface AsyncIface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore .AsyncIface {

    - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.execute_call> resultHandler) throws org.apache.thrift.TException;
    + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchOne_call> resultHandler) throws org.apache.thrift.TException;
    + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchN_call> resultHandler) throws org.apache.thrift.TException;
    + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchAll_call> resultHandler) throws org.apache.thrift.TException;
    + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void getSchema(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSchema_call> resultHandler) throws org.apache.thrift.TException;
    + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getThriftSchema_call> resultHandler) throws org.apache.thrift.TException;
    + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClusterStatus_call> resultHandler) throws org.apache.thrift.TException;
    + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQueryPlan_call> resultHandler) throws org.apache.thrift.TException;
    + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void clean(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clean_call> resultHandler) throws org.apache.thrift.TException;
    + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

        }

    @@ -333,7 +337,7 @@ public class ThriftHive {
            super(protocolFactory, clientManager, transport);
          }

    - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback<execute_call> resultHandler) throws org.apache.thrift.TException {
    + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            execute_call method_call = new execute_call(query, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -342,7 +346,7 @@ public class ThriftHive {

          public static class execute_call extends org.apache.thrift.async.TAsyncMethodCall {
            private String query;
    - public execute_call(String query, org.apache.thrift.async.AsyncMethodCallback<execute_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public execute_call(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.query = query;
            }
    @@ -365,7 +369,7 @@ public class ThriftHive {
            }
          }

    - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback<fetchOne_call> resultHandler) throws org.apache.thrift.TException {
    + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            fetchOne_call method_call = new fetchOne_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -373,7 +377,7 @@ public class ThriftHive {
          }

          public static class fetchOne_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public fetchOne_call(org.apache.thrift.async.AsyncMethodCallback<fetchOne_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public fetchOne_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -394,7 +398,7 @@ public class ThriftHive {
            }
          }

    - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback<fetchN_call> resultHandler) throws org.apache.thrift.TException {
    + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -403,7 +407,7 @@ public class ThriftHive {

          public static class fetchN_call extends org.apache.thrift.async.TAsyncMethodCall {
            private int numRows;
    - public fetchN_call(int numRows, org.apache.thrift.async.AsyncMethodCallback<fetchN_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public fetchN_call(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.numRows = numRows;
            }
    @@ -426,7 +430,7 @@ public class ThriftHive {
            }
          }

    - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback<fetchAll_call> resultHandler) throws org.apache.thrift.TException {
    + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            fetchAll_call method_call = new fetchAll_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -434,7 +438,7 @@ public class ThriftHive {
          }

          public static class fetchAll_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public fetchAll_call(org.apache.thrift.async.AsyncMethodCallback<fetchAll_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public fetchAll_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -455,7 +459,7 @@ public class ThriftHive {
            }
          }

    - public void getSchema(org.apache.thrift.async.AsyncMethodCallback<getSchema_call> resultHandler) throws org.apache.thrift.TException {
    + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            getSchema_call method_call = new getSchema_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -463,7 +467,7 @@ public class ThriftHive {
          }

          public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getSchema_call(org.apache.thrift.async.AsyncMethodCallback<getSchema_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public getSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -484,7 +488,7 @@ public class ThriftHive {
            }
          }

    - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback<getThriftSchema_call> resultHandler) throws org.apache.thrift.TException {
    + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -492,7 +496,7 @@ public class ThriftHive {
          }

          public static class getThriftSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getThriftSchema_call(org.apache.thrift.async.AsyncMethodCallback<getThriftSchema_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public getThriftSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -513,7 +517,7 @@ public class ThriftHive {
            }
          }

    - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback<getClusterStatus_call> resultHandler) throws org.apache.thrift.TException {
    + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -521,7 +525,7 @@ public class ThriftHive {
          }

          public static class getClusterStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getClusterStatus_call(org.apache.thrift.async.AsyncMethodCallback<getClusterStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public getClusterStatus_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -542,7 +546,7 @@ public class ThriftHive {
            }
          }

    - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback<getQueryPlan_call> resultHandler) throws org.apache.thrift.TException {
    + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -550,7 +554,7 @@ public class ThriftHive {
          }

          public static class getQueryPlan_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getQueryPlan_call(org.apache.thrift.async.AsyncMethodCallback<getQueryPlan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public getQueryPlan_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -571,7 +575,7 @@ public class ThriftHive {
            }
          }

    - public void clean(org.apache.thrift.async.AsyncMethodCallback<clean_call> resultHandler) throws org.apache.thrift.TException {
    + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            clean_call method_call = new clean_call(resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -579,7 +583,7 @@ public class ThriftHive {
          }

          public static class clean_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public clean_call(org.apache.thrift.async.AsyncMethodCallback<clean_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public clean_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
            }

    @@ -839,7 +843,537 @@ public class ThriftHive {

        }

    - public static class execute_args implements org.apache.thrift.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable {
    + public static class AsyncProcessor<I extends AsyncIface> extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncProcessor<I> {
    + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
    + public AsyncProcessor(I iface) {
    + super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    + }
    +
    + protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    + super(iface, getProcessMap(processMap));
    + }
    +
    + private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    + processMap.put("execute", new execute());
    + processMap.put("fetchOne", new fetchOne());
    + processMap.put("fetchN", new fetchN());
    + processMap.put("fetchAll", new fetchAll());
    + processMap.put("getSchema", new getSchema());
    + processMap.put("getThriftSchema", new getThriftSchema());
    + processMap.put("getClusterStatus", new getClusterStatus());
    + processMap.put("getQueryPlan", new getQueryPlan());
    + processMap.put("clean", new clean());
    + return processMap;
    + }
    +
    + public static class execute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, execute_args, Void> {
    + public execute() {
    + super("execute");
    + }
    +
    + public execute_args getEmptyArgsInstance() {
    + return new execute_args();
    + }
    +
    + public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<Void>() {
    + public void onComplete(Void o) {
    + execute_result result = new execute_result();
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + execute_result result = new execute_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, execute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
    + iface.execute(args.query,resultHandler);
    + }
    + }
    +
    + public static class fetchOne<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchOne_args, String> {
    + public fetchOne() {
    + super("fetchOne");
    + }
    +
    + public fetchOne_args getEmptyArgsInstance() {
    + return new fetchOne_args();
    + }
    +
    + public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<String>() {
    + public void onComplete(String o) {
    + fetchOne_result result = new fetchOne_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + fetchOne_result result = new fetchOne_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, fetchOne_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
    + iface.fetchOne(resultHandler);
    + }
    + }
    +
    + public static class fetchN<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchN_args, List<String>> {
    + public fetchN() {
    + super("fetchN");
    + }
    +
    + public fetchN_args getEmptyArgsInstance() {
    + return new fetchN_args();
    + }
    +
    + public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<List<String>>() {
    + public void onComplete(List<String> o) {
    + fetchN_result result = new fetchN_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + fetchN_result result = new fetchN_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, fetchN_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
    + iface.fetchN(args.numRows,resultHandler);
    + }
    + }
    +
    + public static class fetchAll<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchAll_args, List<String>> {
    + public fetchAll() {
    + super("fetchAll");
    + }
    +
    + public fetchAll_args getEmptyArgsInstance() {
    + return new fetchAll_args();
    + }
    +
    + public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<List<String>>() {
    + public void onComplete(List<String> o) {
    + fetchAll_result result = new fetchAll_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + fetchAll_result result = new fetchAll_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, fetchAll_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
    + iface.fetchAll(resultHandler);
    + }
    + }
    +
    + public static class getSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSchema_args, org.apache.hadoop.hive.metastore.api.Schema> {
    + public getSchema() {
    + super("getSchema");
    + }
    +
    + public getSchema_args getEmptyArgsInstance() {
    + return new getSchema_args();
    + }
    +
    + public AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema>() {
    + public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) {
    + getSchema_result result = new getSchema_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + getSchema_result result = new getSchema_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> resultHandler) throws TException {
    + iface.getSchema(resultHandler);
    + }
    + }
    +
    + public static class getThriftSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getThriftSchema_args, org.apache.hadoop.hive.metastore.api.Schema> {
    + public getThriftSchema() {
    + super("getThriftSchema");
    + }
    +
    + public getThriftSchema_args getEmptyArgsInstance() {
    + return new getThriftSchema_args();
    + }
    +
    + public AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema>() {
    + public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) {
    + getThriftSchema_result result = new getThriftSchema_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + getThriftSchema_result result = new getThriftSchema_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, getThriftSchema_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> resultHandler) throws TException {
    + iface.getThriftSchema(resultHandler);
    + }
    + }
    +
    + public static class getClusterStatus<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getClusterStatus_args, HiveClusterStatus> {
    + public getClusterStatus() {
    + super("getClusterStatus");
    + }
    +
    + public getClusterStatus_args getEmptyArgsInstance() {
    + return new getClusterStatus_args();
    + }
    +
    + public AsyncMethodCallback<HiveClusterStatus> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<HiveClusterStatus>() {
    + public void onComplete(HiveClusterStatus o) {
    + getClusterStatus_result result = new getClusterStatus_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + getClusterStatus_result result = new getClusterStatus_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, getClusterStatus_args args, org.apache.thrift.async.AsyncMethodCallback<HiveClusterStatus> resultHandler) throws TException {
    + iface.getClusterStatus(resultHandler);
    + }
    + }
    +
    + public static class getQueryPlan<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getQueryPlan_args, org.apache.hadoop.hive.ql.plan.api.QueryPlan> {
    + public getQueryPlan() {
    + super("getQueryPlan");
    + }
    +
    + public getQueryPlan_args getEmptyArgsInstance() {
    + return new getQueryPlan_args();
    + }
    +
    + public AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan>() {
    + public void onComplete(org.apache.hadoop.hive.ql.plan.api.QueryPlan o) {
    + getQueryPlan_result result = new getQueryPlan_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + getQueryPlan_result result = new getQueryPlan_result();
    + if (e instanceof HiveServerException) {
    + result.ex = (HiveServerException) e;
    + result.setExIsSet(true);
    + msg = result;
    + }
    + else
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, getQueryPlan_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan> resultHandler) throws TException {
    + iface.getQueryPlan(resultHandler);
    + }
    + }
    +
    + public static class clean<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clean_args, Void> {
    + public clean() {
    + super("clean");
    + }
    +
    + public clean_args getEmptyArgsInstance() {
    + return new clean_args();
    + }
    +
    + public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<Void>() {
    + public void onComplete(Void o) {
    + clean_result result = new clean_result();
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + clean_result result = new clean_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, clean_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
    + iface.clean(resultHandler);
    + }
    + }
    +
    + }
    +
    + public static class execute_args implements org.apache.thrift.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable, Comparable<execute_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args");

          private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -1033,30 +1567,30 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_query = true && (isSetQuery());
    - builder.append(present_query);
    + list.add(present_query);
            if (present_query)
    - builder.append(query);
    + list.add(query);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(execute_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - execute_args typedOther = (execute_args)other;

    - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
    + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetQuery()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -1197,7 +1731,7 @@ public class ThriftHive {

        }

    - public static class execute_result implements org.apache.thrift.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable {
    + public static class execute_result implements org.apache.thrift.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable, Comparable<execute_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result");

          private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -1391,30 +1925,30 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(execute_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - execute_result typedOther = (execute_result)other;

    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -1557,7 +2091,7 @@ public class ThriftHive {

        }

    - public static class fetchOne_args implements org.apache.thrift.TBase<fetchOne_args, fetchOne_args._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchOne_args implements org.apache.thrift.TBase<fetchOne_args, fetchOne_args._Fields>, java.io.Serializable, Cloneable, Comparable<fetchOne_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_args");


    @@ -1687,18 +2221,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchOne_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchOne_args typedOther = (fetchOne_args)other;

            return 0;
          }
    @@ -1803,7 +2337,7 @@ public class ThriftHive {

        }

    - public static class fetchOne_result implements org.apache.thrift.TBase<fetchOne_result, fetchOne_result._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchOne_result implements org.apache.thrift.TBase<fetchOne_result, fetchOne_result._Fields>, java.io.Serializable, Cloneable, Comparable<fetchOne_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
    @@ -2055,45 +2589,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchOne_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchOne_result typedOther = (fetchOne_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -2267,7 +2801,7 @@ public class ThriftHive {

        }

    - public static class fetchN_args implements org.apache.thrift.TBase<fetchN_args, fetchN_args._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchN_args implements org.apache.thrift.TBase<fetchN_args, fetchN_args._Fields>, java.io.Serializable, Cloneable, Comparable<fetchN_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_args");

          private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -2463,30 +2997,30 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_numRows = true;
    - builder.append(present_numRows);
    + list.add(present_numRows);
            if (present_numRows)
    - builder.append(numRows);
    + list.add(numRows);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchN_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchN_args typedOther = (fetchN_args)other;

    - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(typedOther.isSetNumRows());
    + lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetNumRows()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -2623,7 +3157,7 @@ public class ThriftHive {

        }

    - public static class fetchN_result implements org.apache.thrift.TBase<fetchN_result, fetchN_result._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchN_result implements org.apache.thrift.TBase<fetchN_result, fetchN_result._Fields>, java.io.Serializable, Cloneable, Comparable<fetchN_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
    @@ -2729,10 +3263,7 @@ public class ThriftHive {
           */
          public fetchN_result(fetchN_result other) {
            if (other.isSetSuccess()) {
    - List<String> __this__success = new ArrayList<String>();
    - for (String other_element : other.success) {
    - __this__success.add(other_element);
    - }
    + List<String> __this__success = new ArrayList<String>(other.success);
              this.success = __this__success;
            }
            if (other.isSetEx()) {
    @@ -2895,45 +3426,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchN_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchN_result typedOther = (fetchN_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -3021,11 +3552,11 @@ public class ThriftHive {
                      {
                        org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                        struct.success = new ArrayList<String>(_list0.size);
    - for (int _i1 = 0; _i1 < _list0.size; ++_i1)
    + String _elem1;
    + for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                        {
    - String _elem2; // optional
    - _elem2 = iprot.readString();
    - struct.success.add(_elem2);
    + _elem1 = iprot.readString();
    + struct.success.add(_elem1);
                        }
                        iprot.readListEnd();
                      }
    @@ -3120,11 +3651,11 @@ public class ThriftHive {
                {
                  org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                  struct.success = new ArrayList<String>(_list5.size);
    - for (int _i6 = 0; _i6 < _list5.size; ++_i6)
    + String _elem6;
    + for (int _i7 = 0; _i7 < _list5.size; ++_i7)
                  {
    - String _elem7; // optional
    - _elem7 = iprot.readString();
    - struct.success.add(_elem7);
    + _elem6 = iprot.readString();
    + struct.success.add(_elem6);
                  }
                }
                struct.setSuccessIsSet(true);
    @@ -3139,7 +3670,7 @@ public class ThriftHive {

        }

    - public static class fetchAll_args implements org.apache.thrift.TBase<fetchAll_args, fetchAll_args._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchAll_args implements org.apache.thrift.TBase<fetchAll_args, fetchAll_args._Fields>, java.io.Serializable, Cloneable, Comparable<fetchAll_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_args");


    @@ -3269,18 +3800,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchAll_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchAll_args typedOther = (fetchAll_args)other;

            return 0;
          }
    @@ -3385,7 +3916,7 @@ public class ThriftHive {

        }

    - public static class fetchAll_result implements org.apache.thrift.TBase<fetchAll_result, fetchAll_result._Fields>, java.io.Serializable, Cloneable {
    + public static class fetchAll_result implements org.apache.thrift.TBase<fetchAll_result, fetchAll_result._Fields>, java.io.Serializable, Cloneable, Comparable<fetchAll_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
    @@ -3491,10 +4022,7 @@ public class ThriftHive {
           */
          public fetchAll_result(fetchAll_result other) {
            if (other.isSetSuccess()) {
    - List<String> __this__success = new ArrayList<String>();
    - for (String other_element : other.success) {
    - __this__success.add(other_element);
    - }
    + List<String> __this__success = new ArrayList<String>(other.success);
              this.success = __this__success;
            }
            if (other.isSetEx()) {
    @@ -3657,45 +4185,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(fetchAll_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - fetchAll_result typedOther = (fetchAll_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -3783,11 +4311,11 @@ public class ThriftHive {
                      {
                        org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
                        struct.success = new ArrayList<String>(_list8.size);
    - for (int _i9 = 0; _i9 < _list8.size; ++_i9)
    + String _elem9;
    + for (int _i10 = 0; _i10 < _list8.size; ++_i10)
                        {
    - String _elem10; // optional
    - _elem10 = iprot.readString();
    - struct.success.add(_elem10);
    + _elem9 = iprot.readString();
    + struct.success.add(_elem9);
                        }
                        iprot.readListEnd();
                      }
    @@ -3882,11 +4410,11 @@ public class ThriftHive {
                {
                  org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                  struct.success = new ArrayList<String>(_list13.size);
    - for (int _i14 = 0; _i14 < _list13.size; ++_i14)
    + String _elem14;
    + for (int _i15 = 0; _i15 < _list13.size; ++_i15)
                  {
    - String _elem15; // optional
    - _elem15 = iprot.readString();
    - struct.success.add(_elem15);
    + _elem14 = iprot.readString();
    + struct.success.add(_elem14);
                  }
                }
                struct.setSuccessIsSet(true);
    @@ -3901,7 +4429,7 @@ public class ThriftHive {

        }

    - public static class getSchema_args implements org.apache.thrift.TBase<getSchema_args, getSchema_args._Fields>, java.io.Serializable, Cloneable {
    + public static class getSchema_args implements org.apache.thrift.TBase<getSchema_args, getSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args");


    @@ -4031,18 +4559,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getSchema_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getSchema_args typedOther = (getSchema_args)other;

            return 0;
          }
    @@ -4147,7 +4675,7 @@ public class ThriftHive {

        }

    - public static class getSchema_result implements org.apache.thrift.TBase<getSchema_result, getSchema_result._Fields>, java.io.Serializable, Cloneable {
    + public static class getSchema_result implements org.apache.thrift.TBase<getSchema_result, getSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -4399,45 +4927,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getSchema_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getSchema_result typedOther = (getSchema_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -4616,7 +5144,7 @@ public class ThriftHive {

        }

    - public static class getThriftSchema_args implements org.apache.thrift.TBase<getThriftSchema_args, getThriftSchema_args._Fields>, java.io.Serializable, Cloneable {
    + public static class getThriftSchema_args implements org.apache.thrift.TBase<getThriftSchema_args, getThriftSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<getThriftSchema_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_args");


    @@ -4746,18 +5274,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getThriftSchema_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getThriftSchema_args typedOther = (getThriftSchema_args)other;

            return 0;
          }
    @@ -4862,7 +5390,7 @@ public class ThriftHive {

        }

    - public static class getThriftSchema_result implements org.apache.thrift.TBase<getThriftSchema_result, getThriftSchema_result._Fields>, java.io.Serializable, Cloneable {
    + public static class getThriftSchema_result implements org.apache.thrift.TBase<getThriftSchema_result, getThriftSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<getThriftSchema_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -5114,45 +5642,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getThriftSchema_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getThriftSchema_result typedOther = (getThriftSchema_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -5331,7 +5859,7 @@ public class ThriftHive {

        }

    - public static class getClusterStatus_args implements org.apache.thrift.TBase<getClusterStatus_args, getClusterStatus_args._Fields>, java.io.Serializable, Cloneable {
    + public static class getClusterStatus_args implements org.apache.thrift.TBase<getClusterStatus_args, getClusterStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getClusterStatus_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_args");


    @@ -5461,18 +5989,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getClusterStatus_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getClusterStatus_args typedOther = (getClusterStatus_args)other;

            return 0;
          }
    @@ -5577,7 +6105,7 @@ public class ThriftHive {

        }

    - public static class getClusterStatus_result implements org.apache.thrift.TBase<getClusterStatus_result, getClusterStatus_result._Fields>, java.io.Serializable, Cloneable {
    + public static class getClusterStatus_result implements org.apache.thrift.TBase<getClusterStatus_result, getClusterStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<getClusterStatus_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -5829,45 +6357,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getClusterStatus_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getClusterStatus_result typedOther = (getClusterStatus_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -6046,7 +6574,7 @@ public class ThriftHive {

        }

    - public static class getQueryPlan_args implements org.apache.thrift.TBase<getQueryPlan_args, getQueryPlan_args._Fields>, java.io.Serializable, Cloneable {
    + public static class getQueryPlan_args implements org.apache.thrift.TBase<getQueryPlan_args, getQueryPlan_args._Fields>, java.io.Serializable, Cloneable, Comparable<getQueryPlan_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_args");


    @@ -6176,18 +6704,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getQueryPlan_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getQueryPlan_args typedOther = (getQueryPlan_args)other;

            return 0;
          }
    @@ -6292,7 +6820,7 @@ public class ThriftHive {

        }

    - public static class getQueryPlan_result implements org.apache.thrift.TBase<getQueryPlan_result, getQueryPlan_result._Fields>, java.io.Serializable, Cloneable {
    + public static class getQueryPlan_result implements org.apache.thrift.TBase<getQueryPlan_result, getQueryPlan_result._Fields>, java.io.Serializable, Cloneable, Comparable<getQueryPlan_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -6544,45 +7072,45 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

            boolean present_ex = true && (isSetEx());
    - builder.append(present_ex);
    + list.add(present_ex);
            if (present_ex)
    - builder.append(ex);
    + list.add(ex);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(getQueryPlan_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - getQueryPlan_result typedOther = (getQueryPlan_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
            }
    - lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetEx()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -6761,7 +7289,7 @@ public class ThriftHive {

        }

    - public static class clean_args implements org.apache.thrift.TBase<clean_args, clean_args._Fields>, java.io.Serializable, Cloneable {
    + public static class clean_args implements org.apache.thrift.TBase<clean_args, clean_args._Fields>, java.io.Serializable, Cloneable, Comparable<clean_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_args");


    @@ -6891,18 +7419,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(clean_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - clean_args typedOther = (clean_args)other;

            return 0;
          }
    @@ -7007,7 +7535,7 @@ public class ThriftHive {

        }

    - public static class clean_result implements org.apache.thrift.TBase<clean_result, clean_result._Fields>, java.io.Serializable, Cloneable {
    + public static class clean_result implements org.apache.thrift.TBase<clean_result, clean_result._Fields>, java.io.Serializable, Cloneable, Comparable<clean_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_result");


    @@ -7137,18 +7665,18 @@ public class ThriftHive {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(clean_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - clean_result typedOther = (clean_result)other;

            return 0;
          }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    index 6323d34..8d18125 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TArrayTypeEntry implements org.apache.thrift.TBase<TArrayTypeEntry, TArrayTypeEntry._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TArrayTypeEntry implements org.apache.thrift.TBase<TArrayTypeEntry, TArrayTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TArrayTypeEntry> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TArrayTypeEntry");

        private static final org.apache.thrift.protocol.TField OBJECT_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("objectTypePtr", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -227,30 +231,30 @@ public class TArrayTypeEntry implements org.apache.thrift.TBase<TArrayTypeEntry,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_objectTypePtr = true;
    - builder.append(present_objectTypePtr);
    + list.add(present_objectTypePtr);
          if (present_objectTypePtr)
    - builder.append(objectTypePtr);
    + list.add(objectTypePtr);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TArrayTypeEntry other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TArrayTypeEntry typedOther = (TArrayTypeEntry)other;

    - lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(typedOther.isSetObjectTypePtr());
    + lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(other.isSetObjectTypePtr());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetObjectTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, typedOther.objectTypePtr);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, other.objectTypePtr);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    index 6b1b054..255726a 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBinaryColumn._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBinaryColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TBinaryColumn> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBinaryColumn");

        private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -129,7 +133,7 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi
        {
          this();
          this.values = values;
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        /**
    @@ -137,17 +141,11 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi
         */
        public TBinaryColumn(TBinaryColumn other) {
          if (other.isSetValues()) {
    - List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>();
    - for (ByteBuffer other_element : other.values) {
    - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element);
    -;
    - __this__values.add(temp_binary_element);
    - }
    + List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>(other.values);
            this.values = __this__values;
          }
          if (other.isSetNulls()) {
            this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    -;
          }
        }

    @@ -205,15 +203,15 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi
        }

        public ByteBuffer bufferForNulls() {
    - return nulls;
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void setNulls(byte[] nulls) {
    - setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls));
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
        }

        public void setNulls(ByteBuffer nulls) {
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void unsetNulls() {
    @@ -315,45 +313,45 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_values = true && (isSetValues());
    - builder.append(present_values);
    + list.add(present_values);
          if (present_values)
    - builder.append(values);
    + list.add(values);

          boolean present_nulls = true && (isSetNulls());
    - builder.append(present_nulls);
    + list.add(present_nulls);
          if (present_nulls)
    - builder.append(nulls);
    + list.add(nulls);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TBinaryColumn other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TBinaryColumn typedOther = (TBinaryColumn)other;

    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls());
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -449,11 +447,11 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi
                    {
                      org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
                      struct.values = new ArrayList<ByteBuffer>(_list110.size);
    - for (int _i111 = 0; _i111 < _list110.size; ++_i111)
    + ByteBuffer _elem111;
    + for (int _i112 = 0; _i112 < _list110.size; ++_i112)
                      {
    - ByteBuffer _elem112; // optional
    - _elem112 = iprot.readBinary();
    - struct.values.add(_elem112);
    + _elem111 = iprot.readBinary();
    + struct.values.add(_elem111);
                      }
                      iprot.readListEnd();
                    }
    @@ -533,11 +531,11 @@ public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBi
            {
              org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
              struct.values = new ArrayList<ByteBuffer>(_list115.size);
    - for (int _i116 = 0; _i116 < _list115.size; ++_i116)
    + ByteBuffer _elem116;
    + for (int _i117 = 0; _i117 < _list115.size; ++_i117)
              {
    - ByteBuffer _elem117; // optional
    - _elem117 = iprot.readBinary();
    - struct.values.add(_elem117);
    + _elem116 = iprot.readBinary();
    + struct.values.add(_elem116);
              }
            }
            struct.setValuesIsSet(true);
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java
    index c2aadaa..babe3cd 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetSchemasReq implements org.apache.thrift.TBase<TGetSchemasReq, TGetSchemasReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetSchemasReq implements org.apache.thrift.TBase<TGetSchemasReq, TGetSchemasReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetSchemasReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -113,7 +117,7 @@ public class TGetSchemasReq implements org.apache.thrift.TBase<TGetSchemasReq, T
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME};
    + private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -338,60 +342,60 @@ public class TGetSchemasReq implements org.apache.thrift.TBase<TGetSchemasReq, T

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_catalogName = true && (isSetCatalogName());
    - builder.append(present_catalogName);
    + list.add(present_catalogName);
          if (present_catalogName)
    - builder.append(catalogName);
    + list.add(catalogName);

          boolean present_schemaName = true && (isSetSchemaName());
    - builder.append(present_schemaName);
    + list.add(present_schemaName);
          if (present_schemaName)
    - builder.append(schemaName);
    + list.add(schemaName);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetSchemasReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetSchemasReq typedOther = (TGetSchemasReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName());
    + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetCatalogName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName());
    + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSchemaName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java
    index ac1ea3e..68b5d78 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetSchemasResp implements org.apache.thrift.TBase<TGetSchemasResp, TGetSchemasResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetSchemasResp implements org.apache.thrift.TBase<TGetSchemasResp, TGetSchemasResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetSchemasResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetSchemasResp implements org.apache.thrift.TBase<TGetSchemasResp,
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetSchemasResp implements org.apache.thrift.TBase<TGetSchemasResp,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetSchemasResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetSchemasResp typedOther = (TGetSchemasResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java
    index 6f2c713..57ed257 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTableTypesReq implements org.apache.thrift.TBase<TGetTableTypesReq, TGetTableTypesReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTableTypesReq implements org.apache.thrift.TBase<TGetTableTypesReq, TGetTableTypesReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTableTypesReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TGetTableTypesReq implements org.apache.thrift.TBase<TGetTableTypes

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTableTypesReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTableTypesReq typedOther = (TGetTableTypesReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java
    index 6f33fbc..0baeb80 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTableTypesResp implements org.apache.thrift.TBase<TGetTableTypesResp, TGetTableTypesResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTableTypesResp implements org.apache.thrift.TBase<TGetTableTypesResp, TGetTableTypesResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTableTypesResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetTableTypesResp implements org.apache.thrift.TBase<TGetTableType
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetTableTypesResp implements org.apache.thrift.TBase<TGetTableType

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTableTypesResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTableTypesResp typedOther = (TGetTableTypesResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java
    index c973fcc..ed8cf35 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGetTablesReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGetTablesReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTablesReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -123,7 +127,7 @@ public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGe
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES};
    + private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -169,10 +173,7 @@ public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGe
            this.tableName = other.tableName;
          }
          if (other.isSetTableTypes()) {
    - List<String> __this__tableTypes = new ArrayList<String>();
    - for (String other_element : other.tableTypes) {
    - __this__tableTypes.add(other_element);
    - }
    + List<String> __this__tableTypes = new ArrayList<String>(other.tableTypes);
            this.tableTypes = __this__tableTypes;
          }
        }
    @@ -470,90 +471,90 @@ public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGe

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_catalogName = true && (isSetCatalogName());
    - builder.append(present_catalogName);
    + list.add(present_catalogName);
          if (present_catalogName)
    - builder.append(catalogName);
    + list.add(catalogName);

          boolean present_schemaName = true && (isSetSchemaName());
    - builder.append(present_schemaName);
    + list.add(present_schemaName);
          if (present_schemaName)
    - builder.append(schemaName);
    + list.add(schemaName);

          boolean present_tableName = true && (isSetTableName());
    - builder.append(present_tableName);
    + list.add(present_tableName);
          if (present_tableName)
    - builder.append(tableName);
    + list.add(tableName);

          boolean present_tableTypes = true && (isSetTableTypes());
    - builder.append(present_tableTypes);
    + list.add(present_tableTypes);
          if (present_tableTypes)
    - builder.append(tableTypes);
    + list.add(tableTypes);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTablesReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTablesReq typedOther = (TGetTablesReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName());
    + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetCatalogName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName());
    + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSchemaName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
    + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTableName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(typedOther.isSetTableTypes());
    + lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(other.isSetTableTypes());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTableTypes()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, typedOther.tableTypes);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, other.tableTypes);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -713,11 +714,11 @@ public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGe
                    {
                      org.apache.thrift.protocol.TList _list172 = iprot.readListBegin();
                      struct.tableTypes = new ArrayList<String>(_list172.size);
    - for (int _i173 = 0; _i173 < _list172.size; ++_i173)
    + String _elem173;
    + for (int _i174 = 0; _i174 < _list172.size; ++_i174)
                      {
    - String _elem174; // optional
    - _elem174 = iprot.readString();
    - struct.tableTypes.add(_elem174);
    + _elem173 = iprot.readString();
    + struct.tableTypes.add(_elem173);
                      }
                      iprot.readListEnd();
                    }
    @@ -854,11 +855,11 @@ public class TGetTablesReq implements org.apache.thrift.TBase<TGetTablesReq, TGe
              {
                org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
                struct.tableTypes = new ArrayList<String>(_list177.size);
    - for (int _i178 = 0; _i178 < _list177.size; ++_i178)
    + String _elem178;
    + for (int _i179 = 0; _i179 < _list177.size; ++_i179)
                {
    - String _elem179; // optional
    - _elem179 = iprot.readString();
    - struct.tableTypes.add(_elem179);
    + _elem178 = iprot.readString();
    + struct.tableTypes.add(_elem178);
                }
              }
              struct.setTableTypesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java
    index d526f44..c61bfb1 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTablesResp implements org.apache.thrift.TBase<TGetTablesResp, TGetTablesResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTablesResp implements org.apache.thrift.TBase<TGetTablesResp, TGetTablesResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTablesResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetTablesResp implements org.apache.thrift.TBase<TGetTablesResp, T
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetTablesResp implements org.apache.thrift.TBase<TGetTablesResp, T

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTablesResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTablesResp typedOther = (TGetTablesResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java
    index d40115e..aef8909 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTypeInfoReq implements org.apache.thrift.TBase<TGetTypeInfoReq, TGetTypeInfoReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTypeInfoReq implements org.apache.thrift.TBase<TGetTypeInfoReq, TGetTypeInfoReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTypeInfoReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TGetTypeInfoReq implements org.apache.thrift.TBase<TGetTypeInfoReq,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTypeInfoReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTypeInfoReq typedOther = (TGetTypeInfoReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java
    index 59be1a3..2221002 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetTypeInfoResp implements org.apache.thrift.TBase<TGetTypeInfoResp, TGetTypeInfoResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetTypeInfoResp implements org.apache.thrift.TBase<TGetTypeInfoResp, TGetTypeInfoResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTypeInfoResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetTypeInfoResp implements org.apache.thrift.TBase<TGetTypeInfoRes
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetTypeInfoResp implements org.apache.thrift.TBase<TGetTypeInfoRes

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetTypeInfoResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetTypeInfoResp typedOther = (TGetTypeInfoResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java
    index 368273c..f6a81f9 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentifier, THandleIdentifier._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentifier, THandleIdentifier._Fields>, java.io.Serializable, Cloneable, Comparable<THandleIdentifier> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THandleIdentifier");

        private static final org.apache.thrift.protocol.TField GUID_FIELD_DESC = new org.apache.thrift.protocol.TField("guid", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -127,8 +131,8 @@ public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentif
          ByteBuffer secret)
        {
          this();
    - this.guid = guid;
    - this.secret = secret;
    + this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid);
    + this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret);
        }

        /**
    @@ -137,11 +141,9 @@ public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentif
        public THandleIdentifier(THandleIdentifier other) {
          if (other.isSetGuid()) {
            this.guid = org.apache.thrift.TBaseHelper.copyBinary(other.guid);
    -;
          }
          if (other.isSetSecret()) {
            this.secret = org.apache.thrift.TBaseHelper.copyBinary(other.secret);
    -;
          }
        }

    @@ -161,15 +163,15 @@ public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentif
        }

        public ByteBuffer bufferForGuid() {
    - return guid;
    + return org.apache.thrift.TBaseHelper.copyBinary(guid);
        }

        public void setGuid(byte[] guid) {
    - setGuid(guid == null ? (ByteBuffer)null : ByteBuffer.wrap(guid));
    + this.guid = guid == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(guid, guid.length));
        }

        public void setGuid(ByteBuffer guid) {
    - this.guid = guid;
    + this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid);
        }

        public void unsetGuid() {
    @@ -193,15 +195,15 @@ public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentif
        }

        public ByteBuffer bufferForSecret() {
    - return secret;
    + return org.apache.thrift.TBaseHelper.copyBinary(secret);
        }

        public void setSecret(byte[] secret) {
    - setSecret(secret == null ? (ByteBuffer)null : ByteBuffer.wrap(secret));
    + this.secret = secret == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(secret, secret.length));
        }

        public void setSecret(ByteBuffer secret) {
    - this.secret = secret;
    + this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret);
        }

        public void unsetSecret() {
    @@ -303,45 +305,45 @@ public class THandleIdentifier implements org.apache.thrift.TBase<THandleIdentif

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_guid = true && (isSetGuid());
    - builder.append(present_guid);
    + list.add(present_guid);
          if (present_guid)
    - builder.append(guid);
    + list.add(guid);

          boolean present_secret = true && (isSetSecret());
    - builder.append(present_secret);
    + list.add(present_secret);
          if (present_secret)
    - builder.append(secret);
    + list.add(secret);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(THandleIdentifier other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - THandleIdentifier typedOther = (THandleIdentifier)other;

    - lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
    + lastComparison = Boolean.valueOf(isSetGuid()).compareTo(other.isSetGuid());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetGuid()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, typedOther.guid);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, other.guid);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSecret()).compareTo(typedOther.isSetSecret());
    + lastComparison = Boolean.valueOf(isSetSecret()).compareTo(other.isSetSecret());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSecret()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, typedOther.secret);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, other.secret);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java
    index c836630..c23a619 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Column._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Column._Fields>, java.io.Serializable, Cloneable, Comparable<TI16Column> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Column");

        private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -129,7 +133,7 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum
        {
          this();
          this.values = values;
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        /**
    @@ -137,15 +141,11 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum
         */
        public TI16Column(TI16Column other) {
          if (other.isSetValues()) {
    - List<Short> __this__values = new ArrayList<Short>();
    - for (Short other_element : other.values) {
    - __this__values.add(other_element);
    - }
    + List<Short> __this__values = new ArrayList<Short>(other.values);
            this.values = __this__values;
          }
          if (other.isSetNulls()) {
            this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    -;
          }
        }

    @@ -203,15 +203,15 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum
        }

        public ByteBuffer bufferForNulls() {
    - return nulls;
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void setNulls(byte[] nulls) {
    - setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls));
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
        }

        public void setNulls(ByteBuffer nulls) {
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void unsetNulls() {
    @@ -313,45 +313,45 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_values = true && (isSetValues());
    - builder.append(present_values);
    + list.add(present_values);
          if (present_values)
    - builder.append(values);
    + list.add(values);

          boolean present_nulls = true && (isSetNulls());
    - builder.append(present_nulls);
    + list.add(present_nulls);
          if (present_nulls)
    - builder.append(nulls);
    + list.add(nulls);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI16Column other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI16Column typedOther = (TI16Column)other;

    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls());
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -447,11 +447,11 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum
                    {
                      org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
                      struct.values = new ArrayList<Short>(_list70.size);
    - for (int _i71 = 0; _i71 < _list70.size; ++_i71)
    + short _elem71;
    + for (int _i72 = 0; _i72 < _list70.size; ++_i72)
                      {
    - short _elem72; // optional
    - _elem72 = iprot.readI16();
    - struct.values.add(_elem72);
    + _elem71 = iprot.readI16();
    + struct.values.add(_elem71);
                      }
                      iprot.readListEnd();
                    }
    @@ -531,11 +531,11 @@ public class TI16Column implements org.apache.thrift.TBase<TI16Column, TI16Colum
            {
              org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I16, iprot.readI32());
              struct.values = new ArrayList<Short>(_list75.size);
    - for (int _i76 = 0; _i76 < _list75.size; ++_i76)
    + short _elem76;
    + for (int _i77 = 0; _i77 < _list75.size; ++_i77)
              {
    - short _elem77; // optional
    - _elem77 = iprot.readI16();
    - struct.values.add(_elem77);
    + _elem76 = iprot.readI16();
    + struct.values.add(_elem76);
              }
            }
            struct.setValuesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java
    index bb5ae96..c8c262f 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI16Value implements org.apache.thrift.TBase<TI16Value, TI16Value._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI16Value implements org.apache.thrift.TBase<TI16Value, TI16Value._Fields>, java.io.Serializable, Cloneable, Comparable<TI16Value> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Value");

        private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I16, (short)1);
    @@ -105,7 +109,7 @@ public class TI16Value implements org.apache.thrift.TBase<TI16Value, TI16Value._
        // isset id assignments
        private static final int __VALUE_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.VALUE};
    + private static final _Fields optionals[] = {_Fields.VALUE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -220,30 +224,30 @@ public class TI16Value implements org.apache.thrift.TBase<TI16Value, TI16Value._

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_value = true && (isSetValue());
    - builder.append(present_value);
    + list.add(present_value);
          if (present_value)
    - builder.append(value);
    + list.add(value);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI16Value other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI16Value typedOther = (TI16Value)other;

    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
    + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java
    index 6c6c5f3..90e2136 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Column._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Column._Fields>, java.io.Serializable, Cloneable, Comparable<TI32Column> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Column");

        private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -129,7 +133,7 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum
        {
          this();
          this.values = values;
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        /**
    @@ -137,15 +141,11 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum
         */
        public TI32Column(TI32Column other) {
          if (other.isSetValues()) {
    - List<Integer> __this__values = new ArrayList<Integer>();
    - for (Integer other_element : other.values) {
    - __this__values.add(other_element);
    - }
    + List<Integer> __this__values = new ArrayList<Integer>(other.values);
            this.values = __this__values;
          }
          if (other.isSetNulls()) {
            this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    -;
          }
        }

    @@ -203,15 +203,15 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum
        }

        public ByteBuffer bufferForNulls() {
    - return nulls;
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void setNulls(byte[] nulls) {
    - setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls));
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
        }

        public void setNulls(ByteBuffer nulls) {
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void unsetNulls() {
    @@ -313,45 +313,45 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_values = true && (isSetValues());
    - builder.append(present_values);
    + list.add(present_values);
          if (present_values)
    - builder.append(values);
    + list.add(values);

          boolean present_nulls = true && (isSetNulls());
    - builder.append(present_nulls);
    + list.add(present_nulls);
          if (present_nulls)
    - builder.append(nulls);
    + list.add(nulls);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI32Column other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI32Column typedOther = (TI32Column)other;

    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls());
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -447,11 +447,11 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum
                    {
                      org.apache.thrift.protocol.TList _list78 = iprot.readListBegin();
                      struct.values = new ArrayList<Integer>(_list78.size);
    - for (int _i79 = 0; _i79 < _list78.size; ++_i79)
    + int _elem79;
    + for (int _i80 = 0; _i80 < _list78.size; ++_i80)
                      {
    - int _elem80; // optional
    - _elem80 = iprot.readI32();
    - struct.values.add(_elem80);
    + _elem79 = iprot.readI32();
    + struct.values.add(_elem79);
                      }
                      iprot.readListEnd();
                    }
    @@ -531,11 +531,11 @@ public class TI32Column implements org.apache.thrift.TBase<TI32Column, TI32Colum
            {
              org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
              struct.values = new ArrayList<Integer>(_list83.size);
    - for (int _i84 = 0; _i84 < _list83.size; ++_i84)
    + int _elem84;
    + for (int _i85 = 0; _i85 < _list83.size; ++_i85)
              {
    - int _elem85; // optional
    - _elem85 = iprot.readI32();
    - struct.values.add(_elem85);
    + _elem84 = iprot.readI32();
    + struct.values.add(_elem84);
              }
            }
            struct.setValuesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java
    index 059408b..02ffc1b 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI32Value implements org.apache.thrift.TBase<TI32Value, TI32Value._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI32Value implements org.apache.thrift.TBase<TI32Value, TI32Value._Fields>, java.io.Serializable, Cloneable, Comparable<TI32Value> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Value");

        private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -105,7 +109,7 @@ public class TI32Value implements org.apache.thrift.TBase<TI32Value, TI32Value._
        // isset id assignments
        private static final int __VALUE_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.VALUE};
    + private static final _Fields optionals[] = {_Fields.VALUE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -220,30 +224,30 @@ public class TI32Value implements org.apache.thrift.TBase<TI32Value, TI32Value._

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_value = true && (isSetValue());
    - builder.append(present_value);
    + list.add(present_value);
          if (present_value)
    - builder.append(value);
    + list.add(value);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI32Value other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI32Value typedOther = (TI32Value)other;

    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
    + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java
    index cc383ed..7628942 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Column._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Column._Fields>, java.io.Serializable, Cloneable, Comparable<TI64Column> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Column");

        private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    @@ -129,7 +133,7 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum
        {
          this();
          this.values = values;
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        /**
    @@ -137,15 +141,11 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum
         */
        public TI64Column(TI64Column other) {
          if (other.isSetValues()) {
    - List<Long> __this__values = new ArrayList<Long>();
    - for (Long other_element : other.values) {
    - __this__values.add(other_element);
    - }
    + List<Long> __this__values = new ArrayList<Long>(other.values);
            this.values = __this__values;
          }
          if (other.isSetNulls()) {
            this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    -;
          }
        }

    @@ -203,15 +203,15 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum
        }

        public ByteBuffer bufferForNulls() {
    - return nulls;
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void setNulls(byte[] nulls) {
    - setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls));
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
        }

        public void setNulls(ByteBuffer nulls) {
    - this.nulls = nulls;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
        }

        public void unsetNulls() {
    @@ -313,45 +313,45 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_values = true && (isSetValues());
    - builder.append(present_values);
    + list.add(present_values);
          if (present_values)
    - builder.append(values);
    + list.add(values);

          boolean present_nulls = true && (isSetNulls());
    - builder.append(present_nulls);
    + list.add(present_nulls);
          if (present_nulls)
    - builder.append(nulls);
    + list.add(nulls);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI64Column other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI64Column typedOther = (TI64Column)other;

    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls());
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -447,11 +447,11 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum
                    {
                      org.apache.thrift.protocol.TList _list86 = iprot.readListBegin();
                      struct.values = new ArrayList<Long>(_list86.size);
    - for (int _i87 = 0; _i87 < _list86.size; ++_i87)
    + long _elem87;
    + for (int _i88 = 0; _i88 < _list86.size; ++_i88)
                      {
    - long _elem88; // optional
    - _elem88 = iprot.readI64();
    - struct.values.add(_elem88);
    + _elem87 = iprot.readI64();
    + struct.values.add(_elem87);
                      }
                      iprot.readListEnd();
                    }
    @@ -531,11 +531,11 @@ public class TI64Column implements org.apache.thrift.TBase<TI64Column, TI64Colum
            {
              org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
              struct.values = new ArrayList<Long>(_list91.size);
    - for (int _i92 = 0; _i92 < _list91.size; ++_i92)
    + long _elem92;
    + for (int _i93 = 0; _i93 < _list91.size; ++_i93)
              {
    - long _elem93; // optional
    - _elem93 = iprot.readI64();
    - struct.values.add(_elem93);
    + _elem92 = iprot.readI64();
    + struct.values.add(_elem92);
              }
            }
            struct.setValuesIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java
    index 9a941cc..7fd8c23 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TI64Value implements org.apache.thrift.TBase<TI64Value, TI64Value._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TI64Value implements org.apache.thrift.TBase<TI64Value, TI64Value._Fields>, java.io.Serializable, Cloneable, Comparable<TI64Value> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Value");

        private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)1);
    @@ -105,7 +109,7 @@ public class TI64Value implements org.apache.thrift.TBase<TI64Value, TI64Value._
        // isset id assignments
        private static final int __VALUE_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.VALUE};
    + private static final _Fields optionals[] = {_Fields.VALUE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -220,30 +224,30 @@ public class TI64Value implements org.apache.thrift.TBase<TI64Value, TI64Value._

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_value = true && (isSetValue());
    - builder.append(present_value);
    + list.add(present_value);
          if (present_value)
    - builder.append(value);
    + list.add(value);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TI64Value other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TI64Value typedOther = (TI64Value)other;

    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
    + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
            if (lastComparison != 0) {
              return lastComparison;
            }
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    index 19991f1..3f8dbb8 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TFetchResultsResp implements org.apache.thrift.TBase<TFetchResultsResp, TFetchResultsResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TFetchResultsResp implements org.apache.thrift.TBase<TFetchResultsResp, TFetchResultsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TFetchResultsResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -115,7 +119,7 @@ public class TFetchResultsResp implements org.apache.thrift.TBase<TFetchResultsR
        // isset id assignments
        private static final int __HASMOREROWS_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS};
    + private static final _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -339,60 +343,60 @@ public class TFetchResultsResp implements org.apache.thrift.TBase<TFetchResultsR

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_hasMoreRows = true && (isSetHasMoreRows());
    - builder.append(present_hasMoreRows);
    + list.add(present_hasMoreRows);
          if (present_hasMoreRows)
    - builder.append(hasMoreRows);
    + list.add(hasMoreRows);

          boolean present_results = true && (isSetResults());
    - builder.append(present_results);
    + list.add(present_results);
          if (present_results)
    - builder.append(results);
    + list.add(results);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TFetchResultsResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TFetchResultsResp typedOther = (TFetchResultsResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(typedOther.isSetHasMoreRows());
    + lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(other.isSetHasMoreRows());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetHasMoreRows()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, typedOther.hasMoreRows);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, other.hasMoreRows);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetResults()).compareTo(typedOther.isSetResults());
    + lastComparison = Boolean.valueOf(isSetResults()).compareTo(other.isSetResults());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetResults()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, typedOther.results);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, other.results);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    index cfd157f..41c5b4b 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetCatalogsReq implements org.apache.thrift.TBase<TGetCatalogsReq, TGetCatalogsReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetCatalogsReq implements org.apache.thrift.TBase<TGetCatalogsReq, TGetCatalogsReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetCatalogsReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TGetCatalogsReq implements org.apache.thrift.TBase<TGetCatalogsReq,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetCatalogsReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetCatalogsReq typedOther = (TGetCatalogsReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    index 1c5a354..cae7341 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsResp, TGetCatalogsResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsResp, TGetCatalogsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetCatalogsResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsRes
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsRes

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetCatalogsResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetCatalogsResp typedOther = (TGetCatalogsResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java
    index a2c793b..bbde470 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetColumnsReq implements org.apache.thrift.TBase<TGetColumnsReq, TGetColumnsReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetColumnsReq implements org.apache.thrift.TBase<TGetColumnsReq, TGetColumnsReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetColumnsReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -123,7 +127,7 @@ public class TGetColumnsReq implements org.apache.thrift.TBase<TGetColumnsReq, T
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME};
    + private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -450,90 +454,90 @@ public class TGetColumnsReq implements org.apache.thrift.TBase<TGetColumnsReq, T

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_catalogName = true && (isSetCatalogName());
    - builder.append(present_catalogName);
    + list.add(present_catalogName);
          if (present_catalogName)
    - builder.append(catalogName);
    + list.add(catalogName);

          boolean present_schemaName = true && (isSetSchemaName());
    - builder.append(present_schemaName);
    + list.add(present_schemaName);
          if (present_schemaName)
    - builder.append(schemaName);
    + list.add(schemaName);

          boolean present_tableName = true && (isSetTableName());
    - builder.append(present_tableName);
    + list.add(present_tableName);
          if (present_tableName)
    - builder.append(tableName);
    + list.add(tableName);

          boolean present_columnName = true && (isSetColumnName());
    - builder.append(present_columnName);
    + list.add(present_columnName);
          if (present_columnName)
    - builder.append(columnName);
    + list.add(columnName);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetColumnsReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetColumnsReq typedOther = (TGetColumnsReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName());
    + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetCatalogName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName());
    + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSchemaName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
    + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetTableName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName());
    + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetColumnName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java
    index d6cf1be..a180dab 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetColumnsResp implements org.apache.thrift.TBase<TGetColumnsResp, TGetColumnsResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetColumnsResp implements org.apache.thrift.TBase<TGetColumnsResp, TGetColumnsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetColumnsResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetColumnsResp implements org.apache.thrift.TBase<TGetColumnsResp,
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetColumnsResp implements org.apache.thrift.TBase<TGetColumnsResp,

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetColumnsResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetColumnsResp typedOther = (TGetColumnsResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java
    index 6c6bb00..87fe609 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetDelegationTokenReq implements org.apache.thrift.TBase<TGetDelegationTokenReq, TGetDelegationTokenReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetDelegationTokenReq implements org.apache.thrift.TBase<TGetDelegationTokenReq, TGetDelegationTokenReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetDelegationTokenReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -341,60 +345,60 @@ public class TGetDelegationTokenReq implements org.apache.thrift.TBase<TGetDeleg

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_owner = true && (isSetOwner());
    - builder.append(present_owner);
    + list.add(present_owner);
          if (present_owner)
    - builder.append(owner);
    + list.add(owner);

          boolean present_renewer = true && (isSetRenewer());
    - builder.append(present_renewer);
    + list.add(present_renewer);
          if (present_renewer)
    - builder.append(renewer);
    + list.add(renewer);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetDelegationTokenReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetDelegationTokenReq typedOther = (TGetDelegationTokenReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOwner()).compareTo(typedOther.isSetOwner());
    + lastComparison = Boolean.valueOf(isSetOwner()).compareTo(other.isSetOwner());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOwner()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, other.owner);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(typedOther.isSetRenewer());
    + lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(other.isSetRenewer());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetRenewer()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, typedOther.renewer);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, other.renewer);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java
    index d14c5e0..93894d3 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetDelegationTokenResp implements org.apache.thrift.TBase<TGetDelegationTokenResp, TGetDelegationTokenResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetDelegationTokenResp implements org.apache.thrift.TBase<TGetDelegationTokenResp, TGetDelegationTokenResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetDelegationTokenResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetDelegationTokenResp implements org.apache.thrift.TBase<TGetDele
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.DELEGATION_TOKEN};
    + private static final _Fields optionals[] = {_Fields.DELEGATION_TOKEN};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetDelegationTokenResp implements org.apache.thrift.TBase<TGetDele

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_delegationToken = true && (isSetDelegationToken());
    - builder.append(present_delegationToken);
    + list.add(present_delegationToken);
          if (present_delegationToken)
    - builder.append(delegationToken);
    + list.add(delegationToken);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetDelegationTokenResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetDelegationTokenResp typedOther = (TGetDelegationTokenResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken());
    + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetDelegationToken()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java
    index ff45ee0..034e4b0 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetFunctionsReq implements org.apache.thrift.TBase<TGetFunctionsReq, TGetFunctionsReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetFunctionsReq implements org.apache.thrift.TBase<TGetFunctionsReq, TGetFunctionsReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetFunctionsReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -118,7 +122,7 @@ public class TGetFunctionsReq implements org.apache.thrift.TBase<TGetFunctionsRe
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME};
    + private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -396,75 +400,75 @@ public class TGetFunctionsReq implements org.apache.thrift.TBase<TGetFunctionsRe

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_catalogName = true && (isSetCatalogName());
    - builder.append(present_catalogName);
    + list.add(present_catalogName);
          if (present_catalogName)
    - builder.append(catalogName);
    + list.add(catalogName);

          boolean present_schemaName = true && (isSetSchemaName());
    - builder.append(present_schemaName);
    + list.add(present_schemaName);
          if (present_schemaName)
    - builder.append(schemaName);
    + list.add(schemaName);

          boolean present_functionName = true && (isSetFunctionName());
    - builder.append(present_functionName);
    + list.add(present_functionName);
          if (present_functionName)
    - builder.append(functionName);
    + list.add(functionName);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetFunctionsReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetFunctionsReq typedOther = (TGetFunctionsReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName());
    + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetCatalogName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName());
    + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSchemaName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(typedOther.isSetFunctionName());
    + lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(other.isSetFunctionName());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetFunctionName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java
    index 3adafda..1c2ba7a 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetFunctionsResp implements org.apache.thrift.TBase<TGetFunctionsResp, TGetFunctionsResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetFunctionsResp implements org.apache.thrift.TBase<TGetFunctionsResp, TGetFunctionsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetFunctionsResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetFunctionsResp implements org.apache.thrift.TBase<TGetFunctionsR
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetFunctionsResp implements org.apache.thrift.TBase<TGetFunctionsR

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetFunctionsResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetFunctionsResp typedOther = (TGetFunctionsResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java
    index 0139bf0..6110e92 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetInfoReq implements org.apache.thrift.TBase<TGetInfoReq, TGetInfoReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetInfoReq implements org.apache.thrift.TBase<TGetInfoReq, TGetInfoReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetInfoReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoReq");

        private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -295,45 +299,45 @@ public class TGetInfoReq implements org.apache.thrift.TBase<TGetInfoReq, TGetInf

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sessionHandle = true && (isSetSessionHandle());
    - builder.append(present_sessionHandle);
    + list.add(present_sessionHandle);
          if (present_sessionHandle)
    - builder.append(sessionHandle);
    + list.add(sessionHandle);

          boolean present_infoType = true && (isSetInfoType());
    - builder.append(present_infoType);
    + list.add(present_infoType);
          if (present_infoType)
    - builder.append(infoType.getValue());
    + list.add(infoType.getValue());

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetInfoReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetInfoReq typedOther = (TGetInfoReq)other;

    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle());
    + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(typedOther.isSetInfoType());
    + lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(other.isSetInfoType());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetInfoType()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, typedOther.infoType);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, other.infoType);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -438,7 +442,7 @@ public class TGetInfoReq implements org.apache.thrift.TBase<TGetInfoReq, TGetInf
                  break;
                case 2: // INFO_TYPE
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.infoType = TGetInfoType.findByValue(iprot.readI32());
    + struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32());
                    struct.setInfoTypeIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -494,7 +498,7 @@ public class TGetInfoReq implements org.apache.thrift.TBase<TGetInfoReq, TGetInf
            struct.sessionHandle = new TSessionHandle();
            struct.sessionHandle.read(iprot);
            struct.setSessionHandleIsSet(true);
    - struct.infoType = TGetInfoType.findByValue(iprot.readI32());
    + struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32());
            struct.setInfoTypeIsSet(true);
          }
        }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java
    index 2faaa92..61d04c0 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetInfoResp implements org.apache.thrift.TBase<TGetInfoResp, TGetInfoResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetInfoResp implements org.apache.thrift.TBase<TGetInfoResp, TGetInfoResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetInfoResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -283,45 +287,45 @@ public class TGetInfoResp implements org.apache.thrift.TBase<TGetInfoResp, TGetI

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_infoValue = true && (isSetInfoValue());
    - builder.append(present_infoValue);
    + list.add(present_infoValue);
          if (present_infoValue)
    - builder.append(infoValue);
    + list.add(infoValue);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetInfoResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetInfoResp typedOther = (TGetInfoResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(typedOther.isSetInfoValue());
    + lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(other.isSetInfoValue());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetInfoValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, typedOther.infoValue);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, other.infoValue);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java
    index d9dd624..f4dc73d 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java
    index 4fe59b1..af1224d 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,11 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
      public class TGetInfoValue extends org.apache.thrift.TUnion<TGetInfoValue, TGetInfoValue._Fields> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoValue");
        private static final org.apache.thrift.protocol.TField STRING_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("stringValue", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -285,6 +288,7 @@ public class TGetInfoValue extends org.apache.thrift.TUnion<TGetInfoValue, TGetI
                throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
            }
          } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
            return null;
          }
        }
    @@ -558,19 +562,19 @@ public class TGetInfoValue extends org.apache.thrift.TUnion<TGetInfoValue, TGetI

        @Override
        public int hashCode() {
    - HashCodeBuilder hcb = new HashCodeBuilder();
    - hcb.append(this.getClass().getName());
    + List<Object> list = new ArrayList<Object>();
    + list.add(this.getClass().getName());
          org.apache.thrift.TFieldIdEnum setField = getSetField();
          if (setField != null) {
    - hcb.append(setField.getThriftFieldId());
    + list.add(setField.getThriftFieldId());
            Object value = getFieldValue();
            if (value instanceof org.apache.thrift.TEnum) {
    - hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    + list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
            } else {
    - hcb.append(value);
    + list.add(value);
            }
          }
    - return hcb.toHashCode();
    + return list.hashCode();
        }
        private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
          try {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java
    index b88591e..0dd2b2e 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetOperationStatusReq implements org.apache.thrift.TBase<TGetOperationStatusReq, TGetOperationStatusReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetOperationStatusReq implements org.apache.thrift.TBase<TGetOperationStatusReq, TGetOperationStatusReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetOperationStatusReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusReq");

        private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TGetOperationStatusReq implements org.apache.thrift.TBase<TGetOpera

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetOperationStatusReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetOperationStatusReq typedOther = (TGetOperationStatusReq)other;

    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java
    index 94ba6bb..0c7e61f 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOperationStatusResp, TGetOperationStatusResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOperationStatusResp, TGetOperationStatusResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetOperationStatusResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -129,7 +133,7 @@ public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOper
        // isset id assignments
        private static final int __ERRORCODE_ISSET_ID = 0;
        private byte __isset_bitfield = 0;
    - private _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE};
    + private static final _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -463,90 +467,90 @@ public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOper

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_operationState = true && (isSetOperationState());
    - builder.append(present_operationState);
    + list.add(present_operationState);
          if (present_operationState)
    - builder.append(operationState.getValue());
    + list.add(operationState.getValue());

          boolean present_sqlState = true && (isSetSqlState());
    - builder.append(present_sqlState);
    + list.add(present_sqlState);
          if (present_sqlState)
    - builder.append(sqlState);
    + list.add(sqlState);

          boolean present_errorCode = true && (isSetErrorCode());
    - builder.append(present_errorCode);
    + list.add(present_errorCode);
          if (present_errorCode)
    - builder.append(errorCode);
    + list.add(errorCode);

          boolean present_errorMessage = true && (isSetErrorMessage());
    - builder.append(present_errorMessage);
    + list.add(present_errorMessage);
          if (present_errorMessage)
    - builder.append(errorMessage);
    + list.add(errorMessage);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetOperationStatusResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetOperationStatusResp typedOther = (TGetOperationStatusResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(typedOther.isSetOperationState());
    + lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(other.isSetOperationState());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationState()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, typedOther.operationState);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, other.operationState);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState());
    + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSqlState()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
    + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetErrorCode()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage());
    + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetErrorMessage()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -677,7 +681,7 @@ public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOper
                  break;
                case 2: // OPERATION_STATE
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.operationState = TOperationState.findByValue(iprot.readI32());
    + struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32());
                    struct.setOperationStateIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -805,7 +809,7 @@ public class TGetOperationStatusResp implements org.apache.thrift.TBase<TGetOper
            struct.setStatusIsSet(true);
            BitSet incoming = iprot.readBitSet(4);
            if (incoming.get(0)) {
    - struct.operationState = TOperationState.findByValue(iprot.readI32());
    + struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32());
              struct.setOperationStateIsSet(true);
            }
            if (incoming.get(1)) {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java
    index 3bf363c..77ee850 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetResultSetMetadataReq implements org.apache.thrift.TBase<TGetResultSetMetadataReq, TGetResultSetMetadataReq._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetResultSetMetadataReq implements org.apache.thrift.TBase<TGetResultSetMetadataReq, TGetResultSetMetadataReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetResultSetMetadataReq> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataReq");

        private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -225,30 +229,30 @@ public class TGetResultSetMetadataReq implements org.apache.thrift.TBase<TGetRes

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_operationHandle = true && (isSetOperationHandle());
    - builder.append(present_operationHandle);
    + list.add(present_operationHandle);
          if (present_operationHandle)
    - builder.append(operationHandle);
    + list.add(operationHandle);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetResultSetMetadataReq other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetResultSetMetadataReq typedOther = (TGetResultSetMetadataReq)other;

    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle());
    + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
            if (lastComparison != 0) {
              return lastComparison;
            }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java
    index a9bef9f..9dbed7a 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class TGetResultSetMetadataResp implements org.apache.thrift.TBase<TGetResultSetMetadataResp, TGetResultSetMetadataResp._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class TGetResultSetMetadataResp implements org.apache.thrift.TBase<TGetResultSetMetadataResp, TGetResultSetMetadataResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetResultSetMetadataResp> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataResp");

        private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -108,7 +112,7 @@ public class TGetResultSetMetadataResp implements org.apache.thrift.TBase<TGetRe
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.SCHEMA};
    + private static final _Fields optionals[] = {_Fields.SCHEMA};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -282,45 +286,45 @@ public class TGetResultSetMetadataResp implements org.apache.thrift.TBase<TGetRe

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_status = true && (isSetStatus());
    - builder.append(present_status);
    + list.add(present_status);
          if (present_status)
    - builder.append(status);
    + list.add(status);

          boolean present_schema = true && (isSetSchema());
    - builder.append(present_schema);
    + list.add(present_schema);
          if (present_schema)
    - builder.append(schema);
    + list.add(schema);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(TGetResultSetMetadataResp other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - TGetResultSetMetadataResp typedOther = (TGetResultSetMetadataResp)other;

    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetSchema()).compareTo(typedOther.isSetSchema());
    + lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSchema()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, typedOther.schema);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema);
            if (lastComparison != 0) {
              return lastComparison;
            }
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    index 54851b8..4e57581 100644
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hive.service.cli.thrift;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,12 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
      public class TCLIService {

        public interface Iface {
    @@ -77,43 +81,43 @@ public class TCLIService {

        public interface AsyncIface {

    - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.OpenSession_call> resultHandler) throws org.apache.thrift.TException;
    + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CloseSession_call> resultHandler) throws org.apache.thrift.TException;
    + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetInfo_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.ExecuteStatement_call> resultHandler) throws org.apache.thrift.TException;
    + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTypeInfo_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetCatalogs_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetSchemas_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTables_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTableTypes_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetColumns_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetFunctions_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetOperationStatus_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CancelOperation_call> resultHandler) throws org.apache.thrift.TException;
    + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CloseOperation_call> resultHandler) throws org.apache.thrift.TException;
    + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetResultSetMetadata_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.FetchResults_call> resultHandler) throws org.apache.thrift.TException;
    + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
    + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CancelDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
    + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.RenewDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
    + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

        }

    @@ -592,7 +596,7 @@ public class TCLIService {
            super(protocolFactory, clientManager, transport);
          }

    - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<OpenSession_call> resultHandler) throws org.apache.thrift.TException {
    + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -601,7 +605,7 @@ public class TCLIService {

          public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TOpenSessionReq req;
    - public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<OpenSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -624,7 +628,7 @@ public class TCLIService {
            }
          }

    - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<CloseSession_call> resultHandler) throws org.apache.thrift.TException {
    + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -633,7 +637,7 @@ public class TCLIService {

          public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TCloseSessionReq req;
    - public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<CloseSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -656,7 +660,7 @@ public class TCLIService {
            }
          }

    - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetInfo_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -665,7 +669,7 @@ public class TCLIService {

          public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetInfoReq req;
    - public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -688,7 +692,7 @@ public class TCLIService {
            }
          }

    - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<ExecuteStatement_call> resultHandler) throws org.apache.thrift.TException {
    + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -697,7 +701,7 @@ public class TCLIService {

          public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TExecuteStatementReq req;
    - public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<ExecuteStatement_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -720,7 +724,7 @@ public class TCLIService {
            }
          }

    - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetTypeInfo_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -729,7 +733,7 @@ public class TCLIService {

          public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetTypeInfoReq req;
    - public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetTypeInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -752,7 +756,7 @@ public class TCLIService {
            }
          }

    - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<GetCatalogs_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -761,7 +765,7 @@ public class TCLIService {

          public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetCatalogsReq req;
    - public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<GetCatalogs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -784,7 +788,7 @@ public class TCLIService {
            }
          }

    - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<GetSchemas_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -793,7 +797,7 @@ public class TCLIService {

          public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetSchemasReq req;
    - public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<GetSchemas_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -816,7 +820,7 @@ public class TCLIService {
            }
          }

    - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTables_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -825,7 +829,7 @@ public class TCLIService {

          public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetTablesReq req;
    - public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTables_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -848,7 +852,7 @@ public class TCLIService {
            }
          }

    - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTableTypes_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -857,7 +861,7 @@ public class TCLIService {

          public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetTableTypesReq req;
    - public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTableTypes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -880,7 +884,7 @@ public class TCLIService {
            }
          }

    - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<GetColumns_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -889,7 +893,7 @@ public class TCLIService {

          public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetColumnsReq req;
    - public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<GetColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -912,7 +916,7 @@ public class TCLIService {
            }
          }

    - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<GetFunctions_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -921,7 +925,7 @@ public class TCLIService {

          public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetFunctionsReq req;
    - public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<GetFunctions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -944,7 +948,7 @@ public class TCLIService {
            }
          }

    - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<GetOperationStatus_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -953,7 +957,7 @@ public class TCLIService {

          public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetOperationStatusReq req;
    - public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<GetOperationStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -976,7 +980,7 @@ public class TCLIService {
            }
          }

    - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CancelOperation_call> resultHandler) throws org.apache.thrift.TException {
    + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -985,7 +989,7 @@ public class TCLIService {

          public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TCancelOperationReq req;
    - public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CancelOperation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1008,7 +1012,7 @@ public class TCLIService {
            }
          }

    - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CloseOperation_call> resultHandler) throws org.apache.thrift.TException {
    + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1017,7 +1021,7 @@ public class TCLIService {

          public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TCloseOperationReq req;
    - public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CloseOperation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1040,7 +1044,7 @@ public class TCLIService {
            }
          }

    - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<GetResultSetMetadata_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1049,7 +1053,7 @@ public class TCLIService {

          public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetResultSetMetadataReq req;
    - public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<GetResultSetMetadata_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1072,7 +1076,7 @@ public class TCLIService {
            }
          }

    - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<FetchResults_call> resultHandler) throws org.apache.thrift.TException {
    + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1081,7 +1085,7 @@ public class TCLIService {

          public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TFetchResultsReq req;
    - public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<FetchResults_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1104,7 +1108,7 @@ public class TCLIService {
            }
          }

    - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<GetDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
    + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1113,7 +1117,7 @@ public class TCLIService {

          public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TGetDelegationTokenReq req;
    - public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<GetDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1136,7 +1140,7 @@ public class TCLIService {
            }
          }

    - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<CancelDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
    + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1145,7 +1149,7 @@ public class TCLIService {

          public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TCancelDelegationTokenReq req;
    - public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<CancelDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1168,7 +1172,7 @@ public class TCLIService {
            }
          }

    - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<RenewDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
    + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
            checkReady();
            RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
            this.___currentMethod = method_call;
    @@ -1177,7 +1181,7 @@ public class TCLIService {

          public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
            private TRenewDelegationTokenReq req;
    - public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<RenewDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    + public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
              super(client, protocolFactory, transport, resultHandler, false);
              this.req = req;
            }
    @@ -1617,7 +1621,1011 @@ public class TCLIService {

        }

    - public static class OpenSession_args implements org.apache.thrift.TBase<OpenSession_args, OpenSession_args._Fields>, java.io.Serializable, Cloneable {
    + public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
    + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
    + public AsyncProcessor(I iface) {
    + super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    + }
    +
    + protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    + super(iface, getProcessMap(processMap));
    + }
    +
    + private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    + processMap.put("OpenSession", new OpenSession());
    + processMap.put("CloseSession", new CloseSession());
    + processMap.put("GetInfo", new GetInfo());
    + processMap.put("ExecuteStatement", new ExecuteStatement());
    + processMap.put("GetTypeInfo", new GetTypeInfo());
    + processMap.put("GetCatalogs", new GetCatalogs());
    + processMap.put("GetSchemas", new GetSchemas());
    + processMap.put("GetTables", new GetTables());
    + processMap.put("GetTableTypes", new GetTableTypes());
    + processMap.put("GetColumns", new GetColumns());
    + processMap.put("GetFunctions", new GetFunctions());
    + processMap.put("GetOperationStatus", new GetOperationStatus());
    + processMap.put("CancelOperation", new CancelOperation());
    + processMap.put("CloseOperation", new CloseOperation());
    + processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
    + processMap.put("FetchResults", new FetchResults());
    + processMap.put("GetDelegationToken", new GetDelegationToken());
    + processMap.put("CancelDelegationToken", new CancelDelegationToken());
    + processMap.put("RenewDelegationToken", new RenewDelegationToken());
    + return processMap;
    + }
    +
    + public static class OpenSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, OpenSession_args, TOpenSessionResp> {
    + public OpenSession() {
    + super("OpenSession");
    + }
    +
    + public OpenSession_args getEmptyArgsInstance() {
    + return new OpenSession_args();
    + }
    +
    + public AsyncMethodCallback<TOpenSessionResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TOpenSessionResp>() {
    + public void onComplete(TOpenSessionResp o) {
    + OpenSession_result result = new OpenSession_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + OpenSession_result result = new OpenSession_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, OpenSession_args args, org.apache.thrift.async.AsyncMethodCallback<TOpenSessionResp> resultHandler) throws TException {
    + iface.OpenSession(args.req,resultHandler);
    + }
    + }
    +
    + public static class CloseSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CloseSession_args, TCloseSessionResp> {
    + public CloseSession() {
    + super("CloseSession");
    + }
    +
    + public CloseSession_args getEmptyArgsInstance() {
    + return new CloseSession_args();
    + }
    +
    + public AsyncMethodCallback<TCloseSessionResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TCloseSessionResp>() {
    + public void onComplete(TCloseSessionResp o) {
    + CloseSession_result result = new CloseSession_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + CloseSession_result result = new CloseSession_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, CloseSession_args args, org.apache.thrift.async.AsyncMethodCallback<TCloseSessionResp> resultHandler) throws TException {
    + iface.CloseSession(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetInfo_args, TGetInfoResp> {
    + public GetInfo() {
    + super("GetInfo");
    + }
    +
    + public GetInfo_args getEmptyArgsInstance() {
    + return new GetInfo_args();
    + }
    +
    + public AsyncMethodCallback<TGetInfoResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetInfoResp>() {
    + public void onComplete(TGetInfoResp o) {
    + GetInfo_result result = new GetInfo_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetInfo_result result = new GetInfo_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetInfo_args args, org.apache.thrift.async.AsyncMethodCallback<TGetInfoResp> resultHandler) throws TException {
    + iface.GetInfo(args.req,resultHandler);
    + }
    + }
    +
    + public static class ExecuteStatement<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ExecuteStatement_args, TExecuteStatementResp> {
    + public ExecuteStatement() {
    + super("ExecuteStatement");
    + }
    +
    + public ExecuteStatement_args getEmptyArgsInstance() {
    + return new ExecuteStatement_args();
    + }
    +
    + public AsyncMethodCallback<TExecuteStatementResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TExecuteStatementResp>() {
    + public void onComplete(TExecuteStatementResp o) {
    + ExecuteStatement_result result = new ExecuteStatement_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + ExecuteStatement_result result = new ExecuteStatement_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, ExecuteStatement_args args, org.apache.thrift.async.AsyncMethodCallback<TExecuteStatementResp> resultHandler) throws TException {
    + iface.ExecuteStatement(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetTypeInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTypeInfo_args, TGetTypeInfoResp> {
    + public GetTypeInfo() {
    + super("GetTypeInfo");
    + }
    +
    + public GetTypeInfo_args getEmptyArgsInstance() {
    + return new GetTypeInfo_args();
    + }
    +
    + public AsyncMethodCallback<TGetTypeInfoResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetTypeInfoResp>() {
    + public void onComplete(TGetTypeInfoResp o) {
    + GetTypeInfo_result result = new GetTypeInfo_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetTypeInfo_result result = new GetTypeInfo_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetTypeInfo_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTypeInfoResp> resultHandler) throws TException {
    + iface.GetTypeInfo(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetCatalogs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetCatalogs_args, TGetCatalogsResp> {
    + public GetCatalogs() {
    + super("GetCatalogs");
    + }
    +
    + public GetCatalogs_args getEmptyArgsInstance() {
    + return new GetCatalogs_args();
    + }
    +
    + public AsyncMethodCallback<TGetCatalogsResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetCatalogsResp>() {
    + public void onComplete(TGetCatalogsResp o) {
    + GetCatalogs_result result = new GetCatalogs_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetCatalogs_result result = new GetCatalogs_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetCatalogs_args args, org.apache.thrift.async.AsyncMethodCallback<TGetCatalogsResp> resultHandler) throws TException {
    + iface.GetCatalogs(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetSchemas<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetSchemas_args, TGetSchemasResp> {
    + public GetSchemas() {
    + super("GetSchemas");
    + }
    +
    + public GetSchemas_args getEmptyArgsInstance() {
    + return new GetSchemas_args();
    + }
    +
    + public AsyncMethodCallback<TGetSchemasResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetSchemasResp>() {
    + public void onComplete(TGetSchemasResp o) {
    + GetSchemas_result result = new GetSchemas_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetSchemas_result result = new GetSchemas_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetSchemas_args args, org.apache.thrift.async.AsyncMethodCallback<TGetSchemasResp> resultHandler) throws TException {
    + iface.GetSchemas(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetTables<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTables_args, TGetTablesResp> {
    + public GetTables() {
    + super("GetTables");
    + }
    +
    + public GetTables_args getEmptyArgsInstance() {
    + return new GetTables_args();
    + }
    +
    + public AsyncMethodCallback<TGetTablesResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetTablesResp>() {
    + public void onComplete(TGetTablesResp o) {
    + GetTables_result result = new GetTables_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetTables_result result = new GetTables_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetTables_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTablesResp> resultHandler) throws TException {
    + iface.GetTables(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetTableTypes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTableTypes_args, TGetTableTypesResp> {
    + public GetTableTypes() {
    + super("GetTableTypes");
    + }
    +
    + public GetTableTypes_args getEmptyArgsInstance() {
    + return new GetTableTypes_args();
    + }
    +
    + public AsyncMethodCallback<TGetTableTypesResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetTableTypesResp>() {
    + public void onComplete(TGetTableTypesResp o) {
    + GetTableTypes_result result = new GetTableTypes_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetTableTypes_result result = new GetTableTypes_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetTableTypes_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTableTypesResp> resultHandler) throws TException {
    + iface.GetTableTypes(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetColumns<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetColumns_args, TGetColumnsResp> {
    + public GetColumns() {
    + super("GetColumns");
    + }
    +
    + public GetColumns_args getEmptyArgsInstance() {
    + return new GetColumns_args();
    + }
    +
    + public AsyncMethodCallback<TGetColumnsResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetColumnsResp>() {
    + public void onComplete(TGetColumnsResp o) {
    + GetColumns_result result = new GetColumns_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetColumns_result result = new GetColumns_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetColumns_args args, org.apache.thrift.async.AsyncMethodCallback<TGetColumnsResp> resultHandler) throws TException {
    + iface.GetColumns(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetFunctions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetFunctions_args, TGetFunctionsResp> {
    + public GetFunctions() {
    + super("GetFunctions");
    + }
    +
    + public GetFunctions_args getEmptyArgsInstance() {
    + return new GetFunctions_args();
    + }
    +
    + public AsyncMethodCallback<TGetFunctionsResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetFunctionsResp>() {
    + public void onComplete(TGetFunctionsResp o) {
    + GetFunctions_result result = new GetFunctions_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetFunctions_result result = new GetFunctions_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetFunctions_args args, org.apache.thrift.async.AsyncMethodCallback<TGetFunctionsResp> resultHandler) throws TException {
    + iface.GetFunctions(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetOperationStatus<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetOperationStatus_args, TGetOperationStatusResp> {
    + public GetOperationStatus() {
    + super("GetOperationStatus");
    + }
    +
    + public GetOperationStatus_args getEmptyArgsInstance() {
    + return new GetOperationStatus_args();
    + }
    +
    + public AsyncMethodCallback<TGetOperationStatusResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetOperationStatusResp>() {
    + public void onComplete(TGetOperationStatusResp o) {
    + GetOperationStatus_result result = new GetOperationStatus_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetOperationStatus_result result = new GetOperationStatus_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetOperationStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TGetOperationStatusResp> resultHandler) throws TException {
    + iface.GetOperationStatus(args.req,resultHandler);
    + }
    + }
    +
    + public static class CancelOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CancelOperation_args, TCancelOperationResp> {
    + public CancelOperation() {
    + super("CancelOperation");
    + }
    +
    + public CancelOperation_args getEmptyArgsInstance() {
    + return new CancelOperation_args();
    + }
    +
    + public AsyncMethodCallback<TCancelOperationResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TCancelOperationResp>() {
    + public void onComplete(TCancelOperationResp o) {
    + CancelOperation_result result = new CancelOperation_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + CancelOperation_result result = new CancelOperation_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, CancelOperation_args args, org.apache.thrift.async.AsyncMethodCallback<TCancelOperationResp> resultHandler) throws TException {
    + iface.CancelOperation(args.req,resultHandler);
    + }
    + }
    +
    + public static class CloseOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CloseOperation_args, TCloseOperationResp> {
    + public CloseOperation() {
    + super("CloseOperation");
    + }
    +
    + public CloseOperation_args getEmptyArgsInstance() {
    + return new CloseOperation_args();
    + }
    +
    + public AsyncMethodCallback<TCloseOperationResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TCloseOperationResp>() {
    + public void onComplete(TCloseOperationResp o) {
    + CloseOperation_result result = new CloseOperation_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + CloseOperation_result result = new CloseOperation_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, CloseOperation_args args, org.apache.thrift.async.AsyncMethodCallback<TCloseOperationResp> resultHandler) throws TException {
    + iface.CloseOperation(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetResultSetMetadata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetResultSetMetadata_args, TGetResultSetMetadataResp> {
    + public GetResultSetMetadata() {
    + super("GetResultSetMetadata");
    + }
    +
    + public GetResultSetMetadata_args getEmptyArgsInstance() {
    + return new GetResultSetMetadata_args();
    + }
    +
    + public AsyncMethodCallback<TGetResultSetMetadataResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetResultSetMetadataResp>() {
    + public void onComplete(TGetResultSetMetadataResp o) {
    + GetResultSetMetadata_result result = new GetResultSetMetadata_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetResultSetMetadata_result result = new GetResultSetMetadata_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetResultSetMetadata_args args, org.apache.thrift.async.AsyncMethodCallback<TGetResultSetMetadataResp> resultHandler) throws TException {
    + iface.GetResultSetMetadata(args.req,resultHandler);
    + }
    + }
    +
    + public static class FetchResults<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, FetchResults_args, TFetchResultsResp> {
    + public FetchResults() {
    + super("FetchResults");
    + }
    +
    + public FetchResults_args getEmptyArgsInstance() {
    + return new FetchResults_args();
    + }
    +
    + public AsyncMethodCallback<TFetchResultsResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TFetchResultsResp>() {
    + public void onComplete(TFetchResultsResp o) {
    + FetchResults_result result = new FetchResults_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + FetchResults_result result = new FetchResults_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, FetchResults_args args, org.apache.thrift.async.AsyncMethodCallback<TFetchResultsResp> resultHandler) throws TException {
    + iface.FetchResults(args.req,resultHandler);
    + }
    + }
    +
    + public static class GetDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetDelegationToken_args, TGetDelegationTokenResp> {
    + public GetDelegationToken() {
    + super("GetDelegationToken");
    + }
    +
    + public GetDelegationToken_args getEmptyArgsInstance() {
    + return new GetDelegationToken_args();
    + }
    +
    + public AsyncMethodCallback<TGetDelegationTokenResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TGetDelegationTokenResp>() {
    + public void onComplete(TGetDelegationTokenResp o) {
    + GetDelegationToken_result result = new GetDelegationToken_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + GetDelegationToken_result result = new GetDelegationToken_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, GetDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TGetDelegationTokenResp> resultHandler) throws TException {
    + iface.GetDelegationToken(args.req,resultHandler);
    + }
    + }
    +
    + public static class CancelDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CancelDelegationToken_args, TCancelDelegationTokenResp> {
    + public CancelDelegationToken() {
    + super("CancelDelegationToken");
    + }
    +
    + public CancelDelegationToken_args getEmptyArgsInstance() {
    + return new CancelDelegationToken_args();
    + }
    +
    + public AsyncMethodCallback<TCancelDelegationTokenResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TCancelDelegationTokenResp>() {
    + public void onComplete(TCancelDelegationTokenResp o) {
    + CancelDelegationToken_result result = new CancelDelegationToken_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + CancelDelegationToken_result result = new CancelDelegationToken_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, CancelDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TCancelDelegationTokenResp> resultHandler) throws TException {
    + iface.CancelDelegationToken(args.req,resultHandler);
    + }
    + }
    +
    + public static class RenewDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, RenewDelegationToken_args, TRenewDelegationTokenResp> {
    + public RenewDelegationToken() {
    + super("RenewDelegationToken");
    + }
    +
    + public RenewDelegationToken_args getEmptyArgsInstance() {
    + return new RenewDelegationToken_args();
    + }
    +
    + public AsyncMethodCallback<TRenewDelegationTokenResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    + final org.apache.thrift.AsyncProcessFunction fcall = this;
    + return new AsyncMethodCallback<TRenewDelegationTokenResp>() {
    + public void onComplete(TRenewDelegationTokenResp o) {
    + RenewDelegationToken_result result = new RenewDelegationToken_result();
    + result.success = o;
    + try {
    + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    + return;
    + } catch (Exception e) {
    + LOGGER.error("Exception writing to internal frame buffer", e);
    + }
    + fb.close();
    + }
    + public void onError(Exception e) {
    + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    + org.apache.thrift.TBase msg;
    + RenewDelegationToken_result result = new RenewDelegationToken_result();
    + {
    + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    + }
    + try {
    + fcall.sendResponse(fb,msg,msgType,seqid);
    + return;
    + } catch (Exception ex) {
    + LOGGER.error("Exception writing to internal frame buffer", ex);
    + }
    + fb.close();
    + }
    + };
    + }
    +
    + protected boolean isOneway() {
    + return false;
    + }
    +
    + public void start(I iface, RenewDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TRenewDelegationTokenResp> resultHandler) throws TException {
    + iface.RenewDelegationToken(args.req,resultHandler);
    + }
    + }
    +
    + }
    +
    + public static class OpenSession_args implements org.apache.thrift.TBase<OpenSession_args, OpenSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<OpenSession_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_args");

          private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -1811,30 +2819,30 @@ public class TCLIService {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_req = true && (isSetReq());
    - builder.append(present_req);
    + list.add(present_req);
            if (present_req)
    - builder.append(req);
    + list.add(req);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(OpenSession_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - OpenSession_args typedOther = (OpenSession_args)other;

    - lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
    + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetReq()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -1980,7 +2988,7 @@ public class TCLIService {

        }

    - public static class OpenSession_result implements org.apache.thrift.TBase<OpenSession_result, OpenSession_result._Fields>, java.io.Serializable, Cloneable {
    + public static class OpenSession_result implements org.apache.thrift.TBase<OpenSession_result, OpenSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<OpenSession_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -2174,30 +3182,30 @@ public class TCLIService {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(OpenSession_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - OpenSession_result typedOther = (OpenSession_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -2343,7 +3351,7 @@ public class TCLIService {

        }

    - public static class CloseSession_args implements org.apache.thrift.TBase<CloseSession_args, CloseSession_args._Fields>, java.io.Serializable, Cloneable {
    + public static class CloseSession_args implements org.apache.thrift.TBase<CloseSession_args, CloseSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<CloseSession_args> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_args");

          private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    @@ -2537,30 +3545,30 @@ public class TCLIService {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_req = true && (isSetReq());
    - builder.append(present_req);
    + list.add(present_req);
            if (present_req)
    - builder.append(req);
    + list.add(req);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(CloseSession_args other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - CloseSession_args typedOther = (CloseSession_args)other;

    - lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
    + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetReq()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -2706,7 +3714,7 @@ public class TCLIService {

        }

    - public static class CloseSession_result implements org.apache.thrift.TBase<CloseSession_result, CloseSession_result._Fields>, java.io.Serializable, Cloneable {
    + public static class CloseSession_result implements org.apache.thrift.TBase<CloseSession_result, CloseSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<CloseSession_result> {
          private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_result");

          private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
    @@ -2900,30 +3908,30 @@ public class TCLIService {

          @Override
          public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

            boolean present_success = true && (isSetSuccess());
    - builder.append(present_success);
    + list.add(present_success);
            if (present_success)
    - builder.append(success);
    + list.add(success);

    - return builder.toHashCode();
    + return list.hashCode();
          }

    + @Override
          public int compareTo(CloseSession_result other) {
            if (!getClass().equals(other.getClass())) {
              return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
    - CloseSession_result typedOther = (CloseSession_result)other;

    - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
    + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
            if (lastComparison != 0) {
              return lastComparison;
            }
            if (isSetSuccess()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
              if (lastComparison != 0) {
                return lastComparison;
              }
    @@ -3069,7 +4077,7 @@ public class TCLIService {

        }

    - public static class GetInfo_args implements org.apache.thrift.TBase<GetInfo_args, GetInfo_args._Fields>, java.io.Serializable, Cloneable {
    + public static class GetInf

    <TRUNCATED>
  • Xuefu at Jul 31, 2015 at 10:57 pm
    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
    index b1d3946..c94819a 100644
    --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
    +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hadoop.hive.serde2.thrift.test;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruct._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruct._Fields>, java.io.Serializable, Cloneable, Comparable<MiniStruct> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MiniStruct");

        private static final org.apache.thrift.protocol.TField MY_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string", org.apache.thrift.protocol.TType.STRING, (short)1);
    @@ -112,7 +116,7 @@ public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruc
        }

        // isset id assignments
    - private _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM};
    + private static final _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM};
        public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
        static {
          Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    @@ -287,45 +291,45 @@ public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruc

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_my_string = true && (isSetMy_string());
    - builder.append(present_my_string);
    + list.add(present_my_string);
          if (present_my_string)
    - builder.append(my_string);
    + list.add(my_string);

          boolean present_my_enum = true && (isSetMy_enum());
    - builder.append(present_my_enum);
    + list.add(present_my_enum);
          if (present_my_enum)
    - builder.append(my_enum.getValue());
    + list.add(my_enum.getValue());

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(MiniStruct other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - MiniStruct typedOther = (MiniStruct)other;

    - lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(typedOther.isSetMy_string());
    + lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(other.isSetMy_string());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetMy_string()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, typedOther.my_string);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, other.my_string);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(typedOther.isSetMy_enum());
    + lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(other.isSetMy_enum());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetMy_enum()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, typedOther.my_enum);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, other.my_enum);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -422,7 +426,7 @@ public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruc
                  break;
                case 2: // MY_ENUM
                  if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.my_enum = MyEnum.findByValue(iprot.readI32());
    + struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
                    struct.setMy_enumIsSet(true);
                  } else {
                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    @@ -497,7 +501,7 @@ public class MiniStruct implements org.apache.thrift.TBase<MiniStruct, MiniStruc
              struct.setMy_stringIsSet(true);
            }
            if (incoming.get(1)) {
    - struct.my_enum = MyEnum.findByValue(iprot.readI32());
    + struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
              struct.setMy_enumIsSet(true);
            }
          }

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
    index 5bda9cc..03f88c5 100644
    --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
    +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
    @@ -1,5 +1,5 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
    index a50a508..2a70482 100644
    --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
    +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hadoop.hive.serde2.thrift.test;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,9 +29,11 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
      public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, PropValueUnion._Fields> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropValueUnion");
        private static final org.apache.thrift.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("intValue", org.apache.thrift.protocol.TType.I32, (short)1);
    @@ -298,11 +301,11 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro
                  {
                    org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                    lString = new ArrayList<String>(_list0.size);
    - for (int _i1 = 0; _i1 < _list0.size; ++_i1)
    + String _elem1;
    + for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                    {
    - String _elem2; // optional
    - _elem2 = iprot.readString();
    - lString.add(_elem2);
    + _elem1 = iprot.readString();
    + lString.add(_elem1);
                    }
                    iprot.readListEnd();
                  }
    @@ -317,13 +320,13 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro
                  {
                    org.apache.thrift.protocol.TMap _map3 = iprot.readMapBegin();
                    unionMStringString = new HashMap<String,String>(2*_map3.size);
    - for (int _i4 = 0; _i4 < _map3.size; ++_i4)
    + String _key4;
    + String _val5;
    + for (int _i6 = 0; _i6 < _map3.size; ++_i6)
                    {
    - String _key5; // required
    - String _val6; // required
    - _key5 = iprot.readString();
    - _val6 = iprot.readString();
    - unionMStringString.put(_key5, _val6);
    + _key4 = iprot.readString();
    + _val5 = iprot.readString();
    + unionMStringString.put(_key4, _val5);
                    }
                    iprot.readMapEnd();
                  }
    @@ -336,6 +339,7 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro
                throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
            }
          } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
            return null;
          }
        }
    @@ -421,11 +425,11 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro
                {
                  org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
                  lString = new ArrayList<String>(_list9.size);
    - for (int _i10 = 0; _i10 < _list9.size; ++_i10)
    + String _elem10;
    + for (int _i11 = 0; _i11 < _list9.size; ++_i11)
                  {
    - String _elem11; // optional
    - _elem11 = iprot.readString();
    - lString.add(_elem11);
    + _elem10 = iprot.readString();
    + lString.add(_elem10);
                  }
                  iprot.readListEnd();
                }
    @@ -435,13 +439,13 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro
                {
                  org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
                  unionMStringString = new HashMap<String,String>(2*_map12.size);
    - for (int _i13 = 0; _i13 < _map12.size; ++_i13)
    + String _key13;
    + String _val14;
    + for (int _i15 = 0; _i15 < _map12.size; ++_i15)
                  {
    - String _key14; // required
    - String _val15; // required
    - _key14 = iprot.readString();
    - _val15 = iprot.readString();
    - unionMStringString.put(_key14, _val15);
    + _key13 = iprot.readString();
    + _val14 = iprot.readString();
    + unionMStringString.put(_key13, _val14);
                  }
                  iprot.readMapEnd();
                }
    @@ -695,19 +699,19 @@ public class PropValueUnion extends org.apache.thrift.TUnion<PropValueUnion, Pro

        @Override
        public int hashCode() {
    - HashCodeBuilder hcb = new HashCodeBuilder();
    - hcb.append(this.getClass().getName());
    + List<Object> list = new ArrayList<Object>();
    + list.add(this.getClass().getName());
          org.apache.thrift.TFieldIdEnum setField = getSetField();
          if (setField != null) {
    - hcb.append(setField.getThriftFieldId());
    + list.add(setField.getThriftFieldId());
            Object value = getFieldValue();
            if (value instanceof org.apache.thrift.TEnum) {
    - hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    + list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
            } else {
    - hcb.append(value);
    + list.add(value);
            }
          }
    - return hcb.toHashCode();
    + return list.hashCode();
        }
        private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
          try {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
    index 334d225..e3795af 100644
    --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
    +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
    @@ -1,12 +1,11 @@
      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
       */
      package org.apache.hadoop.hive.serde2.thrift.test;

    -import org.apache.commons.lang.builder.HashCodeBuilder;
      import org.apache.thrift.scheme.IScheme;
      import org.apache.thrift.scheme.SchemeFactory;
      import org.apache.thrift.scheme.StandardScheme;
    @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
      import org.apache.thrift.protocol.TProtocolException;
      import org.apache.thrift.EncodingUtils;
      import org.apache.thrift.TException;
    +import org.apache.thrift.async.AsyncMethodCallback;
    +import org.apache.thrift.server.AbstractNonblockingServer.*;
      import java.util.List;
      import java.util.ArrayList;
      import java.util.Map;
    @@ -28,10 +29,13 @@ import java.util.Collections;
      import java.util.BitSet;
      import java.nio.ByteBuffer;
      import java.util.Arrays;
    +import javax.annotation.Generated;
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;

    -public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIntString._Fields>, java.io.Serializable, Cloneable {
    +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
    +public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIntString._Fields>, java.io.Serializable, Cloneable, Comparable<SetIntString> {
        private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetIntString");

        private static final org.apache.thrift.protocol.TField S_INT_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("sIntString", org.apache.thrift.protocol.TType.SET, (short)1);
    @@ -137,7 +141,7 @@ public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIn
         */
        public SetIntString(SetIntString other) {
          if (other.isSetSIntString()) {
    - Set<IntString> __this__sIntString = new HashSet<IntString>();
    + Set<IntString> __this__sIntString = new HashSet<IntString>(other.sIntString.size());
            for (IntString other_element : other.sIntString) {
              __this__sIntString.add(new IntString(other_element));
            }
    @@ -303,45 +307,45 @@ public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIn

        @Override
        public int hashCode() {
    - HashCodeBuilder builder = new HashCodeBuilder();
    + List<Object> list = new ArrayList<Object>();

          boolean present_sIntString = true && (isSetSIntString());
    - builder.append(present_sIntString);
    + list.add(present_sIntString);
          if (present_sIntString)
    - builder.append(sIntString);
    + list.add(sIntString);

          boolean present_aString = true && (isSetAString());
    - builder.append(present_aString);
    + list.add(present_aString);
          if (present_aString)
    - builder.append(aString);
    + list.add(aString);

    - return builder.toHashCode();
    + return list.hashCode();
        }

    + @Override
        public int compareTo(SetIntString other) {
          if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
          }

          int lastComparison = 0;
    - SetIntString typedOther = (SetIntString)other;

    - lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(typedOther.isSetSIntString());
    + lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(other.isSetSIntString());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetSIntString()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, typedOther.sIntString);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, other.sIntString);
            if (lastComparison != 0) {
              return lastComparison;
            }
          }
    - lastComparison = Boolean.valueOf(isSetAString()).compareTo(typedOther.isSetAString());
    + lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString());
          if (lastComparison != 0) {
            return lastComparison;
          }
          if (isSetAString()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString);
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString);
            if (lastComparison != 0) {
              return lastComparison;
            }
    @@ -429,12 +433,12 @@ public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIn
                    {
                      org.apache.thrift.protocol.TSet _set82 = iprot.readSetBegin();
                      struct.sIntString = new HashSet<IntString>(2*_set82.size);
    - for (int _i83 = 0; _i83 < _set82.size; ++_i83)
    + IntString _elem83;
    + for (int _i84 = 0; _i84 < _set82.size; ++_i84)
                      {
    - IntString _elem84; // optional
    - _elem84 = new IntString();
    - _elem84.read(iprot);
    - struct.sIntString.add(_elem84);
    + _elem83 = new IntString();
    + _elem83.read(iprot);
    + struct.sIntString.add(_elem83);
                      }
                      iprot.readSetEnd();
                    }
    @@ -528,12 +532,12 @@ public class SetIntString implements org.apache.thrift.TBase<SetIntString, SetIn
              {
                org.apache.thrift.protocol.TSet _set87 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
                struct.sIntString = new HashSet<IntString>(2*_set87.size);
    - for (int _i88 = 0; _i88 < _set87.size; ++_i88)
    + IntString _elem88;
    + for (int _i89 = 0; _i89 < _set87.size; ++_i89)
                {
    - IntString _elem89; // optional
    - _elem89 = new IntString();
    - _elem89.read(iprot);
    - struct.sIntString.add(_elem89);
    + _elem88 = new IntString();
    + _elem88.read(iprot);
    + struct.sIntString.add(_elem88);
                }
              }
              struct.setSIntStringIsSet(true);

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-php/Types.php
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-php/Types.php b/serde/src/gen/thrift/gen-php/Types.php
    index 8c2cea6..8bb2fe3 100644
    --- a/serde/src/gen/thrift/gen-php/Types.php
    +++ b/serde/src/gen/thrift/gen-php/Types.php
    @@ -2,7 +2,7 @@
      namespace ;

      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
    @@ -13,12 +13,16 @@ use Thrift\Type\TMessageType;
      use Thrift\Exception\TException;
      use Thrift\Exception\TProtocolException;
      use Thrift\Protocol\TProtocol;
    +use Thrift\Protocol\TBinaryProtocolAccelerated;
      use Thrift\Exception\TApplicationException;


      class InnerStruct {
        static $_TSPEC;

    + /**
    + * @var int
    + */
        public $field0 = null;

        public function __construct($vals=null) {
    @@ -91,8 +95,17 @@ class InnerStruct {
      class ThriftTestObj {
        static $_TSPEC;

    + /**
    + * @var int
    + */
        public $field1 = null;
    + /**
    + * @var string
    + */
        public $field2 = null;
    + /**
    + * @var \InnerStruct[]
    + */
        public $field3 = null;

        public function __construct($vals=null) {

    http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php
    ----------------------------------------------------------------------
    diff --git a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php
    index 653662a..2475cc8 100644
    --- a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php
    +++ b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php
    @@ -2,7 +2,7 @@
      namespace org\apache\hadoop\hive\serde;

      /**
    - * Autogenerated by Thrift Compiler (0.9.0)
    + * Autogenerated by Thrift Compiler (0.9.2)
       *
       * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
       * @generated
    @@ -13,124 +13,263 @@ use Thrift\Type\TMessageType;
      use Thrift\Exception\TException;
      use Thrift\Exception\TProtocolException;
      use Thrift\Protocol\TProtocol;
    +use Thrift\Protocol\TBinaryProtocolAccelerated;
      use Thrift\Exception\TApplicationException;


    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LIB'] = "serialization.lib";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_CLASS'] = "serialization.class";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_FORMAT'] = "serialization.format";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_DDL'] = "serialization.ddl";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_NULL_FORMAT'] = "serialization.null.format";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LAST_COLUMN_TAKES_REST'] = "serialization.last.column.takes.rest";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_SORT_ORDER'] = "serialization.sort.order";
    -
    -$GLOBALS['serde_CONSTANTS']['SERIALIZATION_USE_JSON_OBJECTS'] = "serialization.use.json.obje