From 40b86486668bd66e8110b67a785fd551922a4739 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Mon, 11 Mar 2024 14:05:47 -0700 Subject: [PATCH] Update Hive thrift specification Fixes #285 --- TCLIService/TCLIService-remote | 31 +- TCLIService/TCLIService.py | 1460 ++++++++++++++----- TCLIService/constants.py | 96 +- TCLIService/ttypes.py | 2495 ++++++++++++++++++++------------ 4 files changed, 2811 insertions(+), 1271 deletions(-) diff --git a/TCLIService/TCLIService-remote b/TCLIService/TCLIService-remote index 8d875fa7..f07cb938 100755 --- a/TCLIService/TCLIService-remote +++ b/TCLIService/TCLIService-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift Compiler (0.10.0) +# Autogenerated by Thrift Compiler (0.19.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -45,7 +45,10 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)') print(' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)') print(' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)') - print(' TGetLogResp GetLog(TGetLogReq req)') + print(' TGetQueryIdResp GetQueryId(TGetQueryIdReq req)') + print(' TSetClientInfoResp SetClientInfo(TSetClientInfoReq req)') + print(' TUploadDataResp UploadData(TUploadDataReq req)') + print(' TDownloadDataResp DownloadData(TDownloadDataReq req)') print('') sys.exit(0) @@ -251,11 +254,29 @@ elif cmd == 'RenewDelegationToken': sys.exit(1) pp.pprint(client.RenewDelegationToken(eval(args[0]),)) -elif cmd == 'GetLog': +elif cmd == 'GetQueryId': if len(args) != 1: - print('GetLog requires 1 args') + print('GetQueryId requires 1 args') sys.exit(1) - pp.pprint(client.GetLog(eval(args[0]),)) + pp.pprint(client.GetQueryId(eval(args[0]),)) + +elif cmd == 'SetClientInfo': + if len(args) != 1: + print('SetClientInfo requires 1 args') + sys.exit(1) + pp.pprint(client.SetClientInfo(eval(args[0]),)) + +elif cmd == 'UploadData': + if len(args) != 1: + print('UploadData requires 1 args') + sys.exit(1) + pp.pprint(client.UploadData(eval(args[0]),)) + +elif cmd == 'DownloadData': + if len(args) != 1: + print('DownloadData requires 1 args') + sys.exit(1) + pp.pprint(client.DownloadData(eval(args[0]),)) else: print('Unrecognized method %s' % cmd) diff --git a/TCLIService/TCLIService.py b/TCLIService/TCLIService.py index bb1415ed..f9bbb438 100644 --- a/TCLIService/TCLIService.py +++ b/TCLIService/TCLIService.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.10.0) +# Autogenerated by Thrift Compiler (0.19.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -8,11 +8,14 @@ from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException +from thrift.TRecursive import fix_spec + import sys import logging from .ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport +all_structs = [] class Iface(object): @@ -20,6 +23,7 @@ def OpenSession(self, req): """ Parameters: - req + """ pass @@ -27,6 +31,7 @@ def CloseSession(self, req): """ Parameters: - req + """ pass @@ -34,6 +39,7 @@ def GetInfo(self, req): """ Parameters: - req + """ pass @@ -41,6 +47,7 @@ def ExecuteStatement(self, req): """ Parameters: - req + """ pass @@ -48,6 +55,7 @@ def GetTypeInfo(self, req): """ Parameters: - req + """ pass @@ -55,6 +63,7 @@ def GetCatalogs(self, req): """ Parameters: - req + """ pass @@ -62,6 +71,7 @@ def GetSchemas(self, req): """ Parameters: - req + """ pass @@ -69,6 +79,7 @@ def GetTables(self, req): """ Parameters: - req + """ pass @@ -76,6 +87,7 @@ def GetTableTypes(self, req): """ Parameters: - req + """ pass @@ -83,6 +95,7 @@ def GetColumns(self, req): """ Parameters: - req + """ pass @@ -90,6 +103,7 @@ def GetFunctions(self, req): """ Parameters: - req + """ pass @@ -97,6 +111,7 @@ def GetPrimaryKeys(self, req): """ Parameters: - req + """ pass @@ -104,6 +119,7 @@ def GetCrossReference(self, req): """ Parameters: - req + """ pass @@ -111,6 +127,7 @@ def GetOperationStatus(self, req): """ Parameters: - req + """ pass @@ -118,6 +135,7 @@ def CancelOperation(self, req): """ Parameters: - req + """ pass @@ -125,6 +143,7 @@ def CloseOperation(self, req): """ Parameters: - req + """ pass @@ -132,6 +151,7 @@ def GetResultSetMetadata(self, req): """ Parameters: - req + """ pass @@ -139,6 +159,7 @@ def FetchResults(self, req): """ Parameters: - req + """ pass @@ -146,6 +167,7 @@ def GetDelegationToken(self, req): """ Parameters: - req + """ pass @@ -153,6 +175,7 @@ def CancelDelegationToken(self, req): """ Parameters: - req + """ pass @@ -160,13 +183,39 @@ def RenewDelegationToken(self, req): """ Parameters: - req + + """ + pass + + def GetQueryId(self, req): + """ + Parameters: + - req + + """ + pass + + def SetClientInfo(self, req): + """ + Parameters: + - req + + """ + pass + + def UploadData(self, req): + """ + Parameters: + - req + """ pass - def GetLog(self, req): + def DownloadData(self, req): """ Parameters: - req + """ pass @@ -182,6 +231,7 @@ def OpenSession(self, req): """ Parameters: - req + """ self.send_OpenSession(req) return self.recv_OpenSession() @@ -213,6 +263,7 @@ def CloseSession(self, req): """ Parameters: - req + """ self.send_CloseSession(req) return self.recv_CloseSession() @@ -244,6 +295,7 @@ def GetInfo(self, req): """ Parameters: - req + """ self.send_GetInfo(req) return self.recv_GetInfo() @@ -275,6 +327,7 @@ def ExecuteStatement(self, req): """ Parameters: - req + """ self.send_ExecuteStatement(req) return self.recv_ExecuteStatement() @@ -306,6 +359,7 @@ def GetTypeInfo(self, req): """ Parameters: - req + """ self.send_GetTypeInfo(req) return self.recv_GetTypeInfo() @@ -337,6 +391,7 @@ def GetCatalogs(self, req): """ Parameters: - req + """ self.send_GetCatalogs(req) return self.recv_GetCatalogs() @@ -368,6 +423,7 @@ def GetSchemas(self, req): """ Parameters: - req + """ self.send_GetSchemas(req) return self.recv_GetSchemas() @@ -399,6 +455,7 @@ def GetTables(self, req): """ Parameters: - req + """ self.send_GetTables(req) return self.recv_GetTables() @@ -430,6 +487,7 @@ def GetTableTypes(self, req): """ Parameters: - req + """ self.send_GetTableTypes(req) return self.recv_GetTableTypes() @@ -461,6 +519,7 @@ def GetColumns(self, req): """ Parameters: - req + """ self.send_GetColumns(req) return self.recv_GetColumns() @@ -492,6 +551,7 @@ def GetFunctions(self, req): """ Parameters: - req + """ self.send_GetFunctions(req) return self.recv_GetFunctions() @@ -523,6 +583,7 @@ def GetPrimaryKeys(self, req): """ Parameters: - req + """ self.send_GetPrimaryKeys(req) return self.recv_GetPrimaryKeys() @@ -554,6 +615,7 @@ def GetCrossReference(self, req): """ Parameters: - req + """ self.send_GetCrossReference(req) return self.recv_GetCrossReference() @@ -585,6 +647,7 @@ def GetOperationStatus(self, req): """ Parameters: - req + """ self.send_GetOperationStatus(req) return self.recv_GetOperationStatus() @@ -616,6 +679,7 @@ def CancelOperation(self, req): """ Parameters: - req + """ self.send_CancelOperation(req) return self.recv_CancelOperation() @@ -647,6 +711,7 @@ def CloseOperation(self, req): """ Parameters: - req + """ self.send_CloseOperation(req) return self.recv_CloseOperation() @@ -678,6 +743,7 @@ def GetResultSetMetadata(self, req): """ Parameters: - req + """ self.send_GetResultSetMetadata(req) return self.recv_GetResultSetMetadata() @@ -709,6 +775,7 @@ def FetchResults(self, req): """ Parameters: - req + """ self.send_FetchResults(req) return self.recv_FetchResults() @@ -740,6 +807,7 @@ def GetDelegationToken(self, req): """ Parameters: - req + """ self.send_GetDelegationToken(req) return self.recv_GetDelegationToken() @@ -771,6 +839,7 @@ def CancelDelegationToken(self, req): """ Parameters: - req + """ self.send_CancelDelegationToken(req) return self.recv_CancelDelegationToken() @@ -802,6 +871,7 @@ def RenewDelegationToken(self, req): """ Parameters: - req + """ self.send_RenewDelegationToken(req) return self.recv_RenewDelegationToken() @@ -829,23 +899,120 @@ def recv_RenewDelegationToken(self): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result") - def GetLog(self, req): + def GetQueryId(self, req): + """ + Parameters: + - req + + """ + self.send_GetQueryId(req) + return self.recv_GetQueryId() + + def send_GetQueryId(self, req): + self._oprot.writeMessageBegin('GetQueryId', TMessageType.CALL, self._seqid) + args = GetQueryId_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_GetQueryId(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = GetQueryId_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "GetQueryId failed: unknown result") + + def SetClientInfo(self, req): + """ + Parameters: + - req + + """ + self.send_SetClientInfo(req) + return self.recv_SetClientInfo() + + def send_SetClientInfo(self, req): + self._oprot.writeMessageBegin('SetClientInfo', TMessageType.CALL, self._seqid) + args = SetClientInfo_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_SetClientInfo(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = SetClientInfo_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "SetClientInfo failed: unknown result") + + def UploadData(self, req): + """ + Parameters: + - req + + """ + self.send_UploadData(req) + return self.recv_UploadData() + + def send_UploadData(self, req): + self._oprot.writeMessageBegin('UploadData', TMessageType.CALL, self._seqid) + args = UploadData_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_UploadData(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = UploadData_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "UploadData failed: unknown result") + + def DownloadData(self, req): """ Parameters: - req + """ - self.send_GetLog(req) - return self.recv_GetLog() + self.send_DownloadData(req) + return self.recv_DownloadData() - def send_GetLog(self, req): - self._oprot.writeMessageBegin('GetLog', TMessageType.CALL, self._seqid) - args = GetLog_args() + def send_DownloadData(self, req): + self._oprot.writeMessageBegin('DownloadData', TMessageType.CALL, self._seqid) + args = DownloadData_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetLog(self): + def recv_DownloadData(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -853,12 +1020,12 @@ def recv_GetLog(self): x.read(iprot) iprot.readMessageEnd() raise x - result = GetLog_result() + result = DownloadData_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "GetLog failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "DownloadData failed: unknown result") class Processor(Iface, TProcessor): @@ -886,10 +1053,19 @@ def __init__(self, handler): self._processMap["GetDelegationToken"] = Processor.process_GetDelegationToken self._processMap["CancelDelegationToken"] = Processor.process_CancelDelegationToken self._processMap["RenewDelegationToken"] = Processor.process_RenewDelegationToken - self._processMap["GetLog"] = Processor.process_GetLog + self._processMap["GetQueryId"] = Processor.process_GetQueryId + self._processMap["SetClientInfo"] = Processor.process_SetClientInfo + self._processMap["UploadData"] = Processor.process_UploadData + self._processMap["DownloadData"] = Processor.process_DownloadData + self._on_message_begin = None + + def on_message_begin(self, func): + self._on_message_begin = func def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() + if self._on_message_begin: + self._on_message_begin(name, type, seqid) if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() @@ -911,11 +1087,15 @@ def process_OpenSession(self, seqid, iprot, oprot): try: result.success = self._handler.OpenSession(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("OpenSession", msg_type, seqid) result.write(oprot) @@ -930,11 +1110,15 @@ def process_CloseSession(self, seqid, iprot, oprot): try: result.success = self._handler.CloseSession(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("CloseSession", msg_type, seqid) result.write(oprot) @@ -949,11 +1133,15 @@ def process_GetInfo(self, seqid, iprot, oprot): try: result.success = self._handler.GetInfo(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetInfo", msg_type, seqid) result.write(oprot) @@ -968,11 +1156,15 @@ def process_ExecuteStatement(self, seqid, iprot, oprot): try: result.success = self._handler.ExecuteStatement(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("ExecuteStatement", msg_type, seqid) result.write(oprot) @@ -987,11 +1179,15 @@ def process_GetTypeInfo(self, seqid, iprot, oprot): try: result.success = self._handler.GetTypeInfo(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetTypeInfo", msg_type, seqid) result.write(oprot) @@ -1006,11 +1202,15 @@ def process_GetCatalogs(self, seqid, iprot, oprot): try: result.success = self._handler.GetCatalogs(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetCatalogs", msg_type, seqid) result.write(oprot) @@ -1025,11 +1225,15 @@ def process_GetSchemas(self, seqid, iprot, oprot): try: result.success = self._handler.GetSchemas(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetSchemas", msg_type, seqid) result.write(oprot) @@ -1044,11 +1248,15 @@ def process_GetTables(self, seqid, iprot, oprot): try: result.success = self._handler.GetTables(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetTables", msg_type, seqid) result.write(oprot) @@ -1063,11 +1271,15 @@ def process_GetTableTypes(self, seqid, iprot, oprot): try: result.success = self._handler.GetTableTypes(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetTableTypes", msg_type, seqid) result.write(oprot) @@ -1082,11 +1294,15 @@ def process_GetColumns(self, seqid, iprot, oprot): try: result.success = self._handler.GetColumns(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetColumns", msg_type, seqid) result.write(oprot) @@ -1101,11 +1317,15 @@ def process_GetFunctions(self, seqid, iprot, oprot): try: result.success = self._handler.GetFunctions(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetFunctions", msg_type, seqid) result.write(oprot) @@ -1120,11 +1340,15 @@ def process_GetPrimaryKeys(self, seqid, iprot, oprot): try: result.success = self._handler.GetPrimaryKeys(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetPrimaryKeys", msg_type, seqid) result.write(oprot) @@ -1139,11 +1363,15 @@ def process_GetCrossReference(self, seqid, iprot, oprot): try: result.success = self._handler.GetCrossReference(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetCrossReference", msg_type, seqid) result.write(oprot) @@ -1158,11 +1386,15 @@ def process_GetOperationStatus(self, seqid, iprot, oprot): try: result.success = self._handler.GetOperationStatus(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetOperationStatus", msg_type, seqid) result.write(oprot) @@ -1177,11 +1409,15 @@ def process_CancelOperation(self, seqid, iprot, oprot): try: result.success = self._handler.CancelOperation(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("CancelOperation", msg_type, seqid) result.write(oprot) @@ -1196,11 +1432,15 @@ def process_CloseOperation(self, seqid, iprot, oprot): try: result.success = self._handler.CloseOperation(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("CloseOperation", msg_type, seqid) result.write(oprot) @@ -1215,11 +1455,15 @@ def process_GetResultSetMetadata(self, seqid, iprot, oprot): try: result.success = self._handler.GetResultSetMetadata(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetResultSetMetadata", msg_type, seqid) result.write(oprot) @@ -1234,11 +1478,15 @@ def process_FetchResults(self, seqid, iprot, oprot): try: result.success = self._handler.FetchResults(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("FetchResults", msg_type, seqid) result.write(oprot) @@ -1253,11 +1501,15 @@ def process_GetDelegationToken(self, seqid, iprot, oprot): try: result.success = self._handler.GetDelegationToken(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("GetDelegationToken", msg_type, seqid) result.write(oprot) @@ -1272,11 +1524,15 @@ def process_CancelDelegationToken(self, seqid, iprot, oprot): try: result.success = self._handler.CancelDelegationToken(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("CancelDelegationToken", msg_type, seqid) result.write(oprot) @@ -1291,32 +1547,109 @@ def process_RenewDelegationToken(self, seqid, iprot, oprot): try: result.success = self._handler.RenewDelegationToken(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("RenewDelegationToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_GetLog(self, seqid, iprot, oprot): - args = GetLog_args() + def process_GetQueryId(self, seqid, iprot, oprot): + args = GetQueryId_args() + args.read(iprot) + iprot.readMessageEnd() + result = GetQueryId_result() + try: + result.success = self._handler.GetQueryId(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("GetQueryId", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_SetClientInfo(self, seqid, iprot, oprot): + args = SetClientInfo_args() + args.read(iprot) + iprot.readMessageEnd() + result = SetClientInfo_result() + try: + result.success = self._handler.SetClientInfo(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("SetClientInfo", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_UploadData(self, seqid, iprot, oprot): + args = UploadData_args() + args.read(iprot) + iprot.readMessageEnd() + result = UploadData_result() + try: + result.success = self._handler.UploadData(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("UploadData", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_DownloadData(self, seqid, iprot, oprot): + args = DownloadData_args() args.read(iprot) iprot.readMessageEnd() - result = GetLog_result() + result = DownloadData_result() try: - result.success = self._handler.GetLog(args.req) + result.success = self._handler.DownloadData(args.req) msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + except TTransport.TTransportException: raise - except Exception as ex: + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("GetLog", msg_type, seqid) + oprot.writeMessageBegin("DownloadData", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -1328,19 +1661,16 @@ class OpenSession_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TOpenSessionReq, TOpenSessionReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1360,7 +1690,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('OpenSession_args') if self.req is not None: @@ -1383,24 +1713,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(OpenSession_args) +OpenSession_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TOpenSessionReq, None], None, ), # 1 +) class OpenSession_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TOpenSessionResp, TOpenSessionResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1420,7 +1753,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('OpenSession_result') if self.success is not None: @@ -1443,25 +1776,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(OpenSession_result) +OpenSession_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TOpenSessionResp, None], None, ), # 0 +) class CloseSession_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TCloseSessionReq, TCloseSessionReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1481,7 +1815,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CloseSession_args') if self.req is not None: @@ -1504,24 +1838,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CloseSession_args) +CloseSession_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TCloseSessionReq, None], None, ), # 1 +) class CloseSession_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TCloseSessionResp, TCloseSessionResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1541,7 +1878,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CloseSession_result') if self.success is not None: @@ -1564,25 +1901,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CloseSession_result) +CloseSession_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TCloseSessionResp, None], None, ), # 0 +) class GetInfo_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetInfoReq, TGetInfoReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1602,7 +1940,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetInfo_args') if self.req is not None: @@ -1625,24 +1963,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetInfo_args) +GetInfo_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetInfoReq, None], None, ), # 1 +) class GetInfo_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetInfoResp, TGetInfoResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1662,7 +2003,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetInfo_result') if self.success is not None: @@ -1685,25 +2026,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetInfo_result) +GetInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetInfoResp, None], None, ), # 0 +) class ExecuteStatement_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TExecuteStatementReq, TExecuteStatementReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1723,7 +2065,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('ExecuteStatement_args') if self.req is not None: @@ -1746,24 +2088,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(ExecuteStatement_args) +ExecuteStatement_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TExecuteStatementReq, None], None, ), # 1 +) class ExecuteStatement_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TExecuteStatementResp, TExecuteStatementResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1783,7 +2128,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('ExecuteStatement_result') if self.success is not None: @@ -1806,25 +2151,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(ExecuteStatement_result) +ExecuteStatement_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TExecuteStatementResp, None], None, ), # 0 +) class GetTypeInfo_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetTypeInfoReq, TGetTypeInfoReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1844,7 +2190,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTypeInfo_args') if self.req is not None: @@ -1867,24 +2213,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTypeInfo_args) +GetTypeInfo_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetTypeInfoReq, None], None, ), # 1 +) class GetTypeInfo_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetTypeInfoResp, TGetTypeInfoResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1904,7 +2253,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTypeInfo_result') if self.success is not None: @@ -1927,25 +2276,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTypeInfo_result) +GetTypeInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetTypeInfoResp, None], None, ), # 0 +) class GetCatalogs_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetCatalogsReq, TGetCatalogsReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1965,7 +2315,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetCatalogs_args') if self.req is not None: @@ -1988,24 +2338,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetCatalogs_args) +GetCatalogs_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetCatalogsReq, None], None, ), # 1 +) class GetCatalogs_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetCatalogsResp, TGetCatalogsResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2025,7 +2378,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetCatalogs_result') if self.success is not None: @@ -2048,25 +2401,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetCatalogs_result) +GetCatalogs_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetCatalogsResp, None], None, ), # 0 +) class GetSchemas_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetSchemasReq, TGetSchemasReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2086,7 +2440,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetSchemas_args') if self.req is not None: @@ -2109,24 +2463,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetSchemas_args) +GetSchemas_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetSchemasReq, None], None, ), # 1 +) class GetSchemas_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetSchemasResp, TGetSchemasResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2146,7 +2503,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetSchemas_result') if self.success is not None: @@ -2169,25 +2526,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetSchemas_result) +GetSchemas_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetSchemasResp, None], None, ), # 0 +) class GetTables_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetTablesReq, TGetTablesReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2207,7 +2565,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTables_args') if self.req is not None: @@ -2230,24 +2588,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTables_args) +GetTables_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetTablesReq, None], None, ), # 1 +) class GetTables_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetTablesResp, TGetTablesResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2267,7 +2628,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTables_result') if self.success is not None: @@ -2290,25 +2651,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTables_result) +GetTables_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetTablesResp, None], None, ), # 0 +) class GetTableTypes_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetTableTypesReq, TGetTableTypesReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2328,7 +2690,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTableTypes_args') if self.req is not None: @@ -2351,24 +2713,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTableTypes_args) +GetTableTypes_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetTableTypesReq, None], None, ), # 1 +) class GetTableTypes_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetTableTypesResp, TGetTableTypesResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2388,7 +2753,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetTableTypes_result') if self.success is not None: @@ -2411,25 +2776,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetTableTypes_result) +GetTableTypes_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetTableTypesResp, None], None, ), # 0 +) class GetColumns_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetColumnsReq, TGetColumnsReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2449,7 +2815,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetColumns_args') if self.req is not None: @@ -2472,24 +2838,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetColumns_args) +GetColumns_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetColumnsReq, None], None, ), # 1 +) class GetColumns_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetColumnsResp, TGetColumnsResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2509,7 +2878,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetColumns_result') if self.success is not None: @@ -2532,25 +2901,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetColumns_result) +GetColumns_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetColumnsResp, None], None, ), # 0 +) class GetFunctions_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetFunctionsReq, TGetFunctionsReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2570,7 +2940,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetFunctions_args') if self.req is not None: @@ -2593,24 +2963,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetFunctions_args) +GetFunctions_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetFunctionsReq, None], None, ), # 1 +) class GetFunctions_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetFunctionsResp, TGetFunctionsResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2630,7 +3003,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetFunctions_result') if self.success is not None: @@ -2653,25 +3026,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetFunctions_result) +GetFunctions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetFunctionsResp, None], None, ), # 0 +) class GetPrimaryKeys_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetPrimaryKeysReq, TGetPrimaryKeysReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2691,7 +3065,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetPrimaryKeys_args') if self.req is not None: @@ -2714,24 +3088,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetPrimaryKeys_args) +GetPrimaryKeys_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetPrimaryKeysReq, None], None, ), # 1 +) class GetPrimaryKeys_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetPrimaryKeysResp, TGetPrimaryKeysResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2751,7 +3128,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetPrimaryKeys_result') if self.success is not None: @@ -2774,25 +3151,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetPrimaryKeys_result) +GetPrimaryKeys_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetPrimaryKeysResp, None], None, ), # 0 +) class GetCrossReference_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetCrossReferenceReq, TGetCrossReferenceReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2812,7 +3190,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetCrossReference_args') if self.req is not None: @@ -2835,24 +3213,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetCrossReference_args) +GetCrossReference_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetCrossReferenceReq, None], None, ), # 1 +) class GetCrossReference_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetCrossReferenceResp, TGetCrossReferenceResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2872,7 +3253,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetCrossReference_result') if self.success is not None: @@ -2895,25 +3276,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetCrossReference_result) +GetCrossReference_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetCrossReferenceResp, None], None, ), # 0 +) class GetOperationStatus_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetOperationStatusReq, TGetOperationStatusReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2933,7 +3315,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetOperationStatus_args') if self.req is not None: @@ -2956,24 +3338,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetOperationStatus_args) +GetOperationStatus_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetOperationStatusReq, None], None, ), # 1 +) class GetOperationStatus_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetOperationStatusResp, TGetOperationStatusResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2993,7 +3378,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetOperationStatus_result') if self.success is not None: @@ -3016,25 +3401,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetOperationStatus_result) +GetOperationStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetOperationStatusResp, None], None, ), # 0 +) class CancelOperation_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TCancelOperationReq, TCancelOperationReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3054,7 +3440,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CancelOperation_args') if self.req is not None: @@ -3077,24 +3463,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CancelOperation_args) +CancelOperation_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TCancelOperationReq, None], None, ), # 1 +) class CancelOperation_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TCancelOperationResp, TCancelOperationResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3114,7 +3503,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CancelOperation_result') if self.success is not None: @@ -3137,25 +3526,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CancelOperation_result) +CancelOperation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TCancelOperationResp, None], None, ), # 0 +) class CloseOperation_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TCloseOperationReq, TCloseOperationReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3175,7 +3565,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CloseOperation_args') if self.req is not None: @@ -3198,24 +3588,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CloseOperation_args) +CloseOperation_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TCloseOperationReq, None], None, ), # 1 +) class CloseOperation_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TCloseOperationResp, TCloseOperationResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3235,7 +3628,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CloseOperation_result') if self.success is not None: @@ -3258,25 +3651,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CloseOperation_result) +CloseOperation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TCloseOperationResp, None], None, ), # 0 +) class GetResultSetMetadata_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetResultSetMetadataReq, TGetResultSetMetadataReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3296,7 +3690,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetResultSetMetadata_args') if self.req is not None: @@ -3319,24 +3713,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetResultSetMetadata_args) +GetResultSetMetadata_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetResultSetMetadataReq, None], None, ), # 1 +) class GetResultSetMetadata_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetResultSetMetadataResp, TGetResultSetMetadataResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3356,7 +3753,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetResultSetMetadata_result') if self.success is not None: @@ -3379,25 +3776,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetResultSetMetadata_result) +GetResultSetMetadata_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetResultSetMetadataResp, None], None, ), # 0 +) class FetchResults_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TFetchResultsReq, TFetchResultsReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3417,7 +3815,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('FetchResults_args') if self.req is not None: @@ -3440,24 +3838,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(FetchResults_args) +FetchResults_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TFetchResultsReq, None], None, ), # 1 +) class FetchResults_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TFetchResultsResp, TFetchResultsResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3477,7 +3878,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('FetchResults_result') if self.success is not None: @@ -3500,25 +3901,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(FetchResults_result) +FetchResults_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TFetchResultsResp, None], None, ), # 0 +) class GetDelegationToken_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetDelegationTokenReq, TGetDelegationTokenReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3538,7 +3940,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetDelegationToken_args') if self.req is not None: @@ -3561,24 +3963,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetDelegationToken_args) +GetDelegationToken_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetDelegationTokenReq, None], None, ), # 1 +) class GetDelegationToken_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetDelegationTokenResp, TGetDelegationTokenResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3598,7 +4003,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('GetDelegationToken_result') if self.success is not None: @@ -3621,25 +4026,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetDelegationToken_result) +GetDelegationToken_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetDelegationTokenResp, None], None, ), # 0 +) class CancelDelegationToken_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TCancelDelegationTokenReq, TCancelDelegationTokenReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3659,7 +4065,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CancelDelegationToken_args') if self.req is not None: @@ -3682,24 +4088,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CancelDelegationToken_args) +CancelDelegationToken_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TCancelDelegationTokenReq, None], None, ), # 1 +) class CancelDelegationToken_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TCancelDelegationTokenResp, TCancelDelegationTokenResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3719,7 +4128,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('CancelDelegationToken_result') if self.success is not None: @@ -3742,25 +4151,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(CancelDelegationToken_result) +CancelDelegationToken_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TCancelDelegationTokenResp, None], None, ), # 0 +) class RenewDelegationToken_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TRenewDelegationTokenReq, TRenewDelegationTokenReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3780,7 +4190,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('RenewDelegationToken_args') if self.req is not None: @@ -3803,24 +4213,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(RenewDelegationToken_args) +RenewDelegationToken_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TRenewDelegationTokenReq, None], None, ), # 1 +) class RenewDelegationToken_result(object): """ Attributes: - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TRenewDelegationTokenResp, TRenewDelegationTokenResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3840,7 +4253,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('RenewDelegationToken_result') if self.success is not None: @@ -3863,25 +4276,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(RenewDelegationToken_result) +RenewDelegationToken_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TRenewDelegationTokenResp, None], None, ), # 0 +) -class GetLog_args(object): +class GetQueryId_args(object): """ Attributes: - req + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (TGetLogReq, TGetLogReq.thrift_spec), None, ), # 1 - ) def __init__(self, req=None,): self.req = req def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3890,7 +4304,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = TGetLogReq() + self.req = TGetQueryIdReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -3901,9 +4315,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('GetLog_args') + oprot.writeStructBegin('GetQueryId_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -3924,24 +4338,402 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(GetQueryId_args) +GetQueryId_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TGetQueryIdReq, None], None, ), # 1 +) -class GetLog_result(object): +class GetQueryId_result(object): """ Attributes: - success + + """ + + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = TGetQueryIdResp() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetQueryId_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(GetQueryId_result) +GetQueryId_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TGetQueryIdResp, None], None, ), # 0 +) + + +class SetClientInfo_args(object): + """ + Attributes: + - req + + """ + + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = TSetClientInfoReq() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('SetClientInfo_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(SetClientInfo_args) +SetClientInfo_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TSetClientInfoReq, None], None, ), # 1 +) + + +class SetClientInfo_result(object): + """ + Attributes: + - success + + """ + + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = TSetClientInfoResp() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('SetClientInfo_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(SetClientInfo_result) +SetClientInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TSetClientInfoResp, None], None, ), # 0 +) + + +class UploadData_args(object): + """ + Attributes: + - req + + """ + + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = TUploadDataReq() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('UploadData_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(UploadData_args) +UploadData_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TUploadDataReq, None], None, ), # 1 +) + + +class UploadData_result(object): + """ + Attributes: + - success + + """ + + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = TUploadDataResp() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('UploadData_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(UploadData_result) +UploadData_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TUploadDataResp, None], None, ), # 0 +) + + +class DownloadData_args(object): + """ + Attributes: + - req + + """ + + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = TDownloadDataReq() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('DownloadData_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(DownloadData_args) +DownloadData_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [TDownloadDataReq, None], None, ), # 1 +) + + +class DownloadData_result(object): + """ + Attributes: + - success + """ - thrift_spec = ( - (0, TType.STRUCT, 'success', (TGetLogResp, TGetLogResp.thrift_spec), None, ), # 0 - ) def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3950,7 +4742,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = TGetLogResp() + self.success = TDownloadDataResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -3961,9 +4753,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('GetLog_result') + oprot.writeStructBegin('DownloadData_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -3984,3 +4776,9 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(DownloadData_result) +DownloadData_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TDownloadDataResp, None], None, ), # 0 +) +fix_spec(all_structs) +del all_structs diff --git a/TCLIService/constants.py b/TCLIService/constants.py index b6bf88ec..0b7bdf53 100644 --- a/TCLIService/constants.py +++ b/TCLIService/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.10.0) +# Autogenerated by Thrift Compiler (0.19.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -8,60 +8,64 @@ from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException +from thrift.TRecursive import fix_spec + import sys from .ttypes import * PRIMITIVE_TYPES = set(( - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 15, - 16, - 17, - 18, - 19, - 20, - 21, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, )) COMPLEX_TYPES = set(( - 10, - 11, - 12, - 13, - 14, + 10, + 11, + 12, + 13, + 14, )) COLLECTION_TYPES = set(( - 10, - 11, + 10, + 11, )) TYPE_NAMES = { - 0: "BOOLEAN", - 1: "TINYINT", - 2: "SMALLINT", - 3: "INT", - 4: "BIGINT", - 5: "FLOAT", - 6: "DOUBLE", - 7: "STRING", - 8: "TIMESTAMP", - 9: "BINARY", - 10: "ARRAY", - 11: "MAP", - 12: "STRUCT", - 13: "UNIONTYPE", - 15: "DECIMAL", - 16: "NULL", - 17: "DATE", - 18: "VARCHAR", - 19: "CHAR", - 20: "INTERVAL_YEAR_MONTH", - 21: "INTERVAL_DAY_TIME", + 10: "ARRAY", + 4: "BIGINT", + 9: "BINARY", + 0: "BOOLEAN", + 19: "CHAR", + 17: "DATE", + 15: "DECIMAL", + 6: "DOUBLE", + 5: "FLOAT", + 21: "INTERVAL_DAY_TIME", + 20: "INTERVAL_YEAR_MONTH", + 3: "INT", + 11: "MAP", + 16: "NULL", + 2: "SMALLINT", + 7: "STRING", + 12: "STRUCT", + 22: "TIMESTAMP WITH LOCAL TIME ZONE", + 8: "TIMESTAMP", + 1: "TINYINT", + 13: "UNIONTYPE", + 18: "VARCHAR", } CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength" PRECISION = "precision" diff --git a/TCLIService/ttypes.py b/TCLIService/ttypes.py index 573bd043..0c35954c 100644 --- a/TCLIService/ttypes.py +++ b/TCLIService/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.10.0) +# Autogenerated by Thrift Compiler (0.19.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -8,9 +8,12 @@ from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException +from thrift.TRecursive import fix_spec + import sys from thrift.transport import TTransport +all_structs = [] class TProtocolVersion(object): @@ -24,6 +27,7 @@ class TProtocolVersion(object): HIVE_CLI_SERVICE_PROTOCOL_V8 = 7 HIVE_CLI_SERVICE_PROTOCOL_V9 = 8 HIVE_CLI_SERVICE_PROTOCOL_V10 = 9 + HIVE_CLI_SERVICE_PROTOCOL_V11 = 10 _VALUES_TO_NAMES = { 0: "HIVE_CLI_SERVICE_PROTOCOL_V1", @@ -36,6 +40,7 @@ class TProtocolVersion(object): 7: "HIVE_CLI_SERVICE_PROTOCOL_V8", 8: "HIVE_CLI_SERVICE_PROTOCOL_V9", 9: "HIVE_CLI_SERVICE_PROTOCOL_V10", + 10: "HIVE_CLI_SERVICE_PROTOCOL_V11", } _NAMES_TO_VALUES = { @@ -49,6 +54,7 @@ class TProtocolVersion(object): "HIVE_CLI_SERVICE_PROTOCOL_V8": 7, "HIVE_CLI_SERVICE_PROTOCOL_V9": 8, "HIVE_CLI_SERVICE_PROTOCOL_V10": 9, + "HIVE_CLI_SERVICE_PROTOCOL_V11": 10, } @@ -75,6 +81,7 @@ class TTypeId(object): CHAR_TYPE = 19 INTERVAL_YEAR_MONTH_TYPE = 20 INTERVAL_DAY_TIME_TYPE = 21 + TIMESTAMPLOCALTZ_TYPE = 22 _VALUES_TO_NAMES = { 0: "BOOLEAN_TYPE", @@ -99,6 +106,7 @@ class TTypeId(object): 19: "CHAR_TYPE", 20: "INTERVAL_YEAR_MONTH_TYPE", 21: "INTERVAL_DAY_TIME_TYPE", + 22: "TIMESTAMPLOCALTZ_TYPE", } _NAMES_TO_VALUES = { @@ -124,6 +132,7 @@ class TTypeId(object): "CHAR_TYPE": 19, "INTERVAL_YEAR_MONTH_TYPE": 20, "INTERVAL_DAY_TIME_TYPE": 21, + "TIMESTAMPLOCALTZ_TYPE": 22, } @@ -197,6 +206,7 @@ class TOperationType(object): GET_COLUMNS = 6 GET_FUNCTIONS = 7 UNKNOWN = 8 + PROCEDURAL_SQL = 9 _VALUES_TO_NAMES = { 0: "EXECUTE_STATEMENT", @@ -208,6 +218,7 @@ class TOperationType(object): 6: "GET_COLUMNS", 7: "GET_FUNCTIONS", 8: "UNKNOWN", + 9: "PROCEDURAL_SQL", } _NAMES_TO_VALUES = { @@ -220,6 +231,7 @@ class TOperationType(object): "GET_COLUMNS": 6, "GET_FUNCTIONS": 7, "UNKNOWN": 8, + "PROCEDURAL_SQL": 9, } @@ -271,6 +283,7 @@ class TGetInfoType(object): CLI_CATALOG_NAME = 10003 CLI_COLLATION_SEQ = 10004 CLI_MAX_IDENTIFIER_LEN = 10005 + CLI_ODBC_KEYWORDS = 10006 _VALUES_TO_NAMES = { 0: "CLI_MAX_DRIVER_CONNECTIONS", @@ -320,6 +333,7 @@ class TGetInfoType(object): 10003: "CLI_CATALOG_NAME", 10004: "CLI_COLLATION_SEQ", 10005: "CLI_MAX_IDENTIFIER_LEN", + 10006: "CLI_ODBC_KEYWORDS", } _NAMES_TO_VALUES = { @@ -370,6 +384,7 @@ class TGetInfoType(object): "CLI_CATALOG_NAME": 10003, "CLI_COLLATION_SEQ": 10004, "CLI_MAX_IDENTIFIER_LEN": 10005, + "CLI_ODBC_KEYWORDS": 10006, } @@ -423,13 +438,9 @@ class TTypeQualifierValue(object): Attributes: - i32Value - stringValue + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'i32Value', None, None, ), # 1 - (2, TType.STRING, 'stringValue', 'UTF8', None, ), # 2 - ) def __init__(self, i32Value=None, stringValue=None,): self.i32Value = i32Value @@ -437,7 +448,7 @@ def __init__(self, i32Value=None, stringValue=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -451,7 +462,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.stringValue = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.stringValue = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -461,7 +472,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TTypeQualifierValue') if self.i32Value is not None: @@ -494,19 +505,16 @@ class TTypeQualifiers(object): """ Attributes: - qualifiers + """ - thrift_spec = ( - None, # 0 - (1, TType.MAP, 'qualifiers', (TType.STRING, 'UTF8', TType.STRUCT, (TTypeQualifierValue, TTypeQualifierValue.thrift_spec), False), None, ), # 1 - ) def __init__(self, qualifiers=None,): self.qualifiers = qualifiers def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -518,7 +526,7 @@ def read(self, iprot): self.qualifiers = {} (_ktype1, _vtype2, _size0) = iprot.readMapBegin() for _i4 in range(_size0): - _key5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key5 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() _val6 = TTypeQualifierValue() _val6.read(iprot) self.qualifiers[_key5] = _val6 @@ -532,7 +540,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TTypeQualifiers') if self.qualifiers is not None: @@ -568,13 +576,9 @@ class TPrimitiveTypeEntry(object): Attributes: - type - typeQualifiers + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'type', None, None, ), # 1 - (2, TType.STRUCT, 'typeQualifiers', (TTypeQualifiers, TTypeQualifiers.thrift_spec), None, ), # 2 - ) def __init__(self, type=None, typeQualifiers=None,): self.type = type @@ -582,7 +586,7 @@ def __init__(self, type=None, typeQualifiers=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -607,7 +611,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TPrimitiveTypeEntry') if self.type is not None: @@ -642,19 +646,16 @@ class TArrayTypeEntry(object): """ Attributes: - objectTypePtr + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'objectTypePtr', None, None, ), # 1 - ) def __init__(self, objectTypePtr=None,): self.objectTypePtr = objectTypePtr def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -673,7 +674,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TArrayTypeEntry') if self.objectTypePtr is not None: @@ -705,13 +706,9 @@ class TMapTypeEntry(object): Attributes: - keyTypePtr - valueTypePtr + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'keyTypePtr', None, None, ), # 1 - (2, TType.I32, 'valueTypePtr', None, None, ), # 2 - ) def __init__(self, keyTypePtr=None, valueTypePtr=None,): self.keyTypePtr = keyTypePtr @@ -719,7 +716,7 @@ def __init__(self, keyTypePtr=None, valueTypePtr=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -743,7 +740,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TMapTypeEntry') if self.keyTypePtr is not None: @@ -780,19 +777,16 @@ class TStructTypeEntry(object): """ Attributes: - nameToTypePtr + """ - thrift_spec = ( - None, # 0 - (1, TType.MAP, 'nameToTypePtr', (TType.STRING, 'UTF8', TType.I32, None, False), None, ), # 1 - ) def __init__(self, nameToTypePtr=None,): self.nameToTypePtr = nameToTypePtr def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -804,7 +798,7 @@ def read(self, iprot): self.nameToTypePtr = {} (_ktype10, _vtype11, _size9) = iprot.readMapBegin() for _i13 in range(_size9): - _key14 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key14 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() _val15 = iprot.readI32() self.nameToTypePtr[_key14] = _val15 iprot.readMapEnd() @@ -817,7 +811,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TStructTypeEntry') if self.nameToTypePtr is not None: @@ -852,19 +846,16 @@ class TUnionTypeEntry(object): """ Attributes: - nameToTypePtr + """ - thrift_spec = ( - None, # 0 - (1, TType.MAP, 'nameToTypePtr', (TType.STRING, 'UTF8', TType.I32, None, False), None, ), # 1 - ) def __init__(self, nameToTypePtr=None,): self.nameToTypePtr = nameToTypePtr def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -876,7 +867,7 @@ def read(self, iprot): self.nameToTypePtr = {} (_ktype19, _vtype20, _size18) = iprot.readMapBegin() for _i22 in range(_size18): - _key23 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key23 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() _val24 = iprot.readI32() self.nameToTypePtr[_key23] = _val24 iprot.readMapEnd() @@ -889,7 +880,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TUnionTypeEntry') if self.nameToTypePtr is not None: @@ -924,19 +915,16 @@ class TUserDefinedTypeEntry(object): """ Attributes: - typeClassName + """ - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'typeClassName', 'UTF8', None, ), # 1 - ) def __init__(self, typeClassName=None,): self.typeClassName = typeClassName def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -945,7 +933,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.typeClassName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.typeClassName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -955,7 +943,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TUserDefinedTypeEntry') if self.typeClassName is not None: @@ -991,17 +979,9 @@ class TTypeEntry(object): - structEntry - unionEntry - userDefinedTypeEntry + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'primitiveEntry', (TPrimitiveTypeEntry, TPrimitiveTypeEntry.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'arrayEntry', (TArrayTypeEntry, TArrayTypeEntry.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'mapEntry', (TMapTypeEntry, TMapTypeEntry.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'structEntry', (TStructTypeEntry, TStructTypeEntry.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'unionEntry', (TUnionTypeEntry, TUnionTypeEntry.thrift_spec), None, ), # 5 - (6, TType.STRUCT, 'userDefinedTypeEntry', (TUserDefinedTypeEntry, TUserDefinedTypeEntry.thrift_spec), None, ), # 6 - ) def __init__(self, primitiveEntry=None, arrayEntry=None, mapEntry=None, structEntry=None, unionEntry=None, userDefinedTypeEntry=None,): self.primitiveEntry = primitiveEntry @@ -1013,7 +993,7 @@ def __init__(self, primitiveEntry=None, arrayEntry=None, mapEntry=None, structEn def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1063,7 +1043,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TTypeEntry') if self.primitiveEntry is not None: @@ -1112,19 +1092,16 @@ class TTypeDesc(object): """ Attributes: - types + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'types', (TType.STRUCT, (TTypeEntry, TTypeEntry.thrift_spec), False), None, ), # 1 - ) def __init__(self, types=None,): self.types = types def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1149,7 +1126,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TTypeDesc') if self.types is not None: @@ -1186,15 +1163,9 @@ class TColumnDesc(object): - typeDesc - position - comment + """ - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'columnName', 'UTF8', None, ), # 1 - (2, TType.STRUCT, 'typeDesc', (TTypeDesc, TTypeDesc.thrift_spec), None, ), # 2 - (3, TType.I32, 'position', None, None, ), # 3 - (4, TType.STRING, 'comment', 'UTF8', None, ), # 4 - ) def __init__(self, columnName=None, typeDesc=None, position=None, comment=None,): self.columnName = columnName @@ -1204,7 +1175,7 @@ def __init__(self, columnName=None, typeDesc=None, position=None, comment=None,) def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1213,7 +1184,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.columnName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.columnName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -1229,7 +1200,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.comment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.comment = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1239,7 +1210,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TColumnDesc') if self.columnName is not None: @@ -1286,19 +1257,16 @@ class TTableSchema(object): """ Attributes: - columns + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'columns', (TType.STRUCT, (TColumnDesc, TColumnDesc.thrift_spec), False), None, ), # 1 - ) def __init__(self, columns=None,): self.columns = columns def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1323,7 +1291,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TTableSchema') if self.columns is not None: @@ -1357,19 +1325,16 @@ class TBoolValue(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.BOOL, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1388,7 +1353,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TBoolValue') if self.value is not None: @@ -1417,19 +1382,16 @@ class TByteValue(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.BYTE, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1448,7 +1410,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TByteValue') if self.value is not None: @@ -1477,19 +1439,16 @@ class TI16Value(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.I16, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1508,7 +1467,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI16Value') if self.value is not None: @@ -1537,19 +1496,16 @@ class TI32Value(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1568,7 +1524,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI32Value') if self.value is not None: @@ -1597,19 +1553,16 @@ class TI64Value(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.I64, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1628,7 +1581,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI64Value') if self.value is not None: @@ -1657,19 +1610,16 @@ class TDoubleValue(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.DOUBLE, 'value', None, None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1688,7 +1638,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TDoubleValue') if self.value is not None: @@ -1717,19 +1667,16 @@ class TStringValue(object): """ Attributes: - value + """ - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'value', 'UTF8', None, ), # 1 - ) def __init__(self, value=None,): self.value = value def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1738,7 +1685,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.value = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1748,7 +1695,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TStringValue') if self.value is not None: @@ -1783,18 +1730,9 @@ class TColumnValue(object): - i64Val - doubleVal - stringVal + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'boolVal', (TBoolValue, TBoolValue.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'byteVal', (TByteValue, TByteValue.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'i16Val', (TI16Value, TI16Value.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'i32Val', (TI32Value, TI32Value.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'i64Val', (TI64Value, TI64Value.thrift_spec), None, ), # 5 - (6, TType.STRUCT, 'doubleVal', (TDoubleValue, TDoubleValue.thrift_spec), None, ), # 6 - (7, TType.STRUCT, 'stringVal', (TStringValue, TStringValue.thrift_spec), None, ), # 7 - ) def __init__(self, boolVal=None, byteVal=None, i16Val=None, i32Val=None, i64Val=None, doubleVal=None, stringVal=None,): self.boolVal = boolVal @@ -1807,7 +1745,7 @@ def __init__(self, boolVal=None, byteVal=None, i16Val=None, i32Val=None, i64Val= def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1863,7 +1801,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TColumnValue') if self.boolVal is not None: @@ -1916,19 +1854,16 @@ class TRow(object): """ Attributes: - colVals + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'colVals', (TType.STRUCT, (TColumnValue, TColumnValue.thrift_spec), False), None, ), # 1 - ) def __init__(self, colVals=None,): self.colVals = colVals def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -1953,7 +1888,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TRow') if self.colVals is not None: @@ -1988,13 +1923,9 @@ class TBoolColumn(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.BOOL, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2002,7 +1933,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2031,7 +1962,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TBoolColumn') if self.values is not None: @@ -2072,13 +2003,9 @@ class TByteColumn(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.BYTE, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2086,7 +2013,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2115,7 +2042,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TByteColumn') if self.values is not None: @@ -2156,13 +2083,9 @@ class TI16Column(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.I16, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2170,7 +2093,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2199,7 +2122,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI16Column') if self.values is not None: @@ -2240,13 +2163,9 @@ class TI32Column(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.I32, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2254,7 +2173,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2283,7 +2202,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI32Column') if self.values is not None: @@ -2324,13 +2243,9 @@ class TI64Column(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.I64, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2338,7 +2253,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2367,7 +2282,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TI64Column') if self.values is not None: @@ -2408,13 +2323,9 @@ class TDoubleColumn(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.DOUBLE, None, False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2422,7 +2333,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2451,7 +2362,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TDoubleColumn') if self.values is not None: @@ -2492,13 +2403,9 @@ class TStringColumn(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.STRING, 'UTF8', False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2506,7 +2413,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2518,7 +2425,7 @@ def read(self, iprot): self.values = [] (_etype93, _size90) = iprot.readListBegin() for _i94 in range(_size90): - _elem95 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem95 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.values.append(_elem95) iprot.readListEnd() else: @@ -2535,7 +2442,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TStringColumn') if self.values is not None: @@ -2576,13 +2483,9 @@ class TBinaryColumn(object): Attributes: - values - nulls + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.STRING, 'BINARY', False), None, ), # 1 - (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 - ) def __init__(self, values=None, nulls=None,): self.values = values @@ -2590,7 +2493,7 @@ def __init__(self, values=None, nulls=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2619,7 +2522,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TBinaryColumn') if self.values is not None: @@ -2666,19 +2569,9 @@ class TColumn(object): - doubleVal - stringVal - binaryVal + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'boolVal', (TBoolColumn, TBoolColumn.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'byteVal', (TByteColumn, TByteColumn.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'i16Val', (TI16Column, TI16Column.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'i32Val', (TI32Column, TI32Column.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'i64Val', (TI64Column, TI64Column.thrift_spec), None, ), # 5 - (6, TType.STRUCT, 'doubleVal', (TDoubleColumn, TDoubleColumn.thrift_spec), None, ), # 6 - (7, TType.STRUCT, 'stringVal', (TStringColumn, TStringColumn.thrift_spec), None, ), # 7 - (8, TType.STRUCT, 'binaryVal', (TBinaryColumn, TBinaryColumn.thrift_spec), None, ), # 8 - ) def __init__(self, boolVal=None, byteVal=None, i16Val=None, i32Val=None, i64Val=None, doubleVal=None, stringVal=None, binaryVal=None,): self.boolVal = boolVal @@ -2692,7 +2585,7 @@ def __init__(self, boolVal=None, byteVal=None, i16Val=None, i32Val=None, i64Val= def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2754,7 +2647,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TColumn') if self.boolVal is not None: @@ -2815,16 +2708,9 @@ class TRowSet(object): - columns - binaryColumns - columnCount + """ - thrift_spec = ( - None, # 0 - (1, TType.I64, 'startRowOffset', None, None, ), # 1 - (2, TType.LIST, 'rows', (TType.STRUCT, (TRow, TRow.thrift_spec), False), None, ), # 2 - (3, TType.LIST, 'columns', (TType.STRUCT, (TColumn, TColumn.thrift_spec), False), None, ), # 3 - (4, TType.STRING, 'binaryColumns', 'BINARY', None, ), # 4 - (5, TType.I32, 'columnCount', None, None, ), # 5 - ) def __init__(self, startRowOffset=None, rows=None, columns=None, binaryColumns=None, columnCount=None,): self.startRowOffset = startRowOffset @@ -2835,7 +2721,7 @@ def __init__(self, startRowOffset=None, rows=None, columns=None, binaryColumns=N def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2886,7 +2772,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TRowSet') if self.startRowOffset is not None: @@ -2945,16 +2831,9 @@ class TStatus(object): - sqlState - errorCode - errorMessage + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'statusCode', None, None, ), # 1 - (2, TType.LIST, 'infoMessages', (TType.STRING, 'UTF8', False), None, ), # 2 - (3, TType.STRING, 'sqlState', 'UTF8', None, ), # 3 - (4, TType.I32, 'errorCode', None, None, ), # 4 - (5, TType.STRING, 'errorMessage', 'UTF8', None, ), # 5 - ) def __init__(self, statusCode=None, infoMessages=None, sqlState=None, errorCode=None, errorMessage=None,): self.statusCode = statusCode @@ -2965,7 +2844,7 @@ def __init__(self, statusCode=None, infoMessages=None, sqlState=None, errorCode= def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -2982,14 +2861,14 @@ def read(self, iprot): self.infoMessages = [] (_etype121, _size118) = iprot.readListBegin() for _i122 in range(_size118): - _elem123 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem123 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.infoMessages.append(_elem123) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.sqlState = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.sqlState = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -2999,7 +2878,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.errorMessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -3009,7 +2888,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TStatus') if self.statusCode is not None: @@ -3060,13 +2939,9 @@ class THandleIdentifier(object): Attributes: - guid - secret + """ - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'guid', 'BINARY', None, ), # 1 - (2, TType.STRING, 'secret', 'BINARY', None, ), # 2 - ) def __init__(self, guid=None, secret=None,): self.guid = guid @@ -3074,7 +2949,7 @@ def __init__(self, guid=None, secret=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3098,7 +2973,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('THandleIdentifier') if self.guid is not None: @@ -3135,19 +3010,16 @@ class TSessionHandle(object): """ Attributes: - sessionId + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionId', (THandleIdentifier, THandleIdentifier.thrift_spec), None, ), # 1 - ) def __init__(self, sessionId=None,): self.sessionId = sessionId def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3167,7 +3039,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TSessionHandle') if self.sessionId is not None: @@ -3201,15 +3073,9 @@ class TOperationHandle(object): - operationType - hasResultSet - modifiedRowCount + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationId', (THandleIdentifier, THandleIdentifier.thrift_spec), None, ), # 1 - (2, TType.I32, 'operationType', None, None, ), # 2 - (3, TType.BOOL, 'hasResultSet', None, None, ), # 3 - (4, TType.DOUBLE, 'modifiedRowCount', None, None, ), # 4 - ) def __init__(self, operationId=None, operationType=None, hasResultSet=None, modifiedRowCount=None,): self.operationId = operationId @@ -3219,7 +3085,7 @@ def __init__(self, operationId=None, operationType=None, hasResultSet=None, modi def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3254,7 +3120,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TOperationHandle') if self.operationId is not None: @@ -3304,17 +3170,11 @@ class TOpenSessionReq(object): - username - password - configuration + """ - thrift_spec = ( - None, # 0 - (1, TType.I32, 'client_protocol', None, 9, ), # 1 - (2, TType.STRING, 'username', 'UTF8', None, ), # 2 - (3, TType.STRING, 'password', 'UTF8', None, ), # 3 - (4, TType.MAP, 'configuration', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 - ) - def __init__(self, client_protocol=thrift_spec[1][4], username=None, password=None, configuration=None,): + def __init__(self, client_protocol= 9, username=None, password=None, configuration=None,): self.client_protocol = client_protocol self.username = username self.password = password @@ -3322,7 +3182,7 @@ def __init__(self, client_protocol=thrift_spec[1][4], username=None, password=No def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3336,12 +3196,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.username = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.username = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.password = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -3349,8 +3209,8 @@ def read(self, iprot): self.configuration = {} (_ktype126, _vtype127, _size125) = iprot.readMapBegin() for _i129 in range(_size125): - _key130 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val131 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key130 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val131 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.configuration[_key130] = _val131 iprot.readMapEnd() else: @@ -3362,7 +3222,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TOpenSessionReq') if self.client_protocol is not None: @@ -3412,17 +3272,11 @@ class TOpenSessionResp(object): - serverProtocolVersion - sessionHandle - configuration + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.I32, 'serverProtocolVersion', None, 9, ), # 2 - (3, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 3 - (4, TType.MAP, 'configuration', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 - ) - def __init__(self, status=None, serverProtocolVersion=thrift_spec[2][4], sessionHandle=None, configuration=None,): + def __init__(self, status=None, serverProtocolVersion= 9, sessionHandle=None, configuration=None,): self.status = status self.serverProtocolVersion = serverProtocolVersion self.sessionHandle = sessionHandle @@ -3430,7 +3284,7 @@ def __init__(self, status=None, serverProtocolVersion=thrift_spec[2][4], session def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3459,8 +3313,8 @@ def read(self, iprot): self.configuration = {} (_ktype135, _vtype136, _size134) = iprot.readMapBegin() for _i138 in range(_size134): - _key139 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val140 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key139 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val140 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.configuration[_key139] = _val140 iprot.readMapEnd() else: @@ -3472,7 +3326,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TOpenSessionResp') if self.status is not None: @@ -3517,23 +3371,161 @@ def __ne__(self, other): return not (self == other) +class TSetClientInfoReq(object): + """ + Attributes: + - sessionHandle + - configuration + + """ + + + def __init__(self, sessionHandle=None, configuration=None,): + self.sessionHandle = sessionHandle + self.configuration = configuration + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.sessionHandle = TSessionHandle() + self.sessionHandle.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.configuration = {} + (_ktype144, _vtype145, _size143) = iprot.readMapBegin() + for _i147 in range(_size143): + _key148 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val149 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.configuration[_key148] = _val149 + iprot.readMapEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TSetClientInfoReq') + if self.sessionHandle is not None: + oprot.writeFieldBegin('sessionHandle', TType.STRUCT, 1) + self.sessionHandle.write(oprot) + oprot.writeFieldEnd() + if self.configuration is not None: + oprot.writeFieldBegin('configuration', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.configuration)) + for kiter150, viter151 in self.configuration.items(): + oprot.writeString(kiter150.encode('utf-8') if sys.version_info[0] == 2 else kiter150) + oprot.writeString(viter151.encode('utf-8') if sys.version_info[0] == 2 else viter151) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.sessionHandle is None: + raise TProtocolException(message='Required field sessionHandle is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TSetClientInfoResp(object): + """ + Attributes: + - status + + """ + + + def __init__(self, status=None,): + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.status = TStatus() + self.status.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TSetClientInfoResp') + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 1) + self.status.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.status is None: + raise TProtocolException(message='Required field status is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + class TCloseSessionReq(object): """ Attributes: - sessionHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - ) def __init__(self, sessionHandle=None,): self.sessionHandle = sessionHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3553,7 +3545,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCloseSessionReq') if self.sessionHandle is not None: @@ -3584,19 +3576,16 @@ class TCloseSessionResp(object): """ Attributes: - status + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - ) def __init__(self, status=None,): self.status = status def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3616,7 +3605,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCloseSessionResp') if self.status is not None: @@ -3652,17 +3641,9 @@ class TGetInfoValue(object): - integerFlag - binaryValue - lenValue + """ - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'stringValue', 'UTF8', None, ), # 1 - (2, TType.I16, 'smallIntValue', None, None, ), # 2 - (3, TType.I32, 'integerBitmask', None, None, ), # 3 - (4, TType.I32, 'integerFlag', None, None, ), # 4 - (5, TType.I32, 'binaryValue', None, None, ), # 5 - (6, TType.I64, 'lenValue', None, None, ), # 6 - ) def __init__(self, stringValue=None, smallIntValue=None, integerBitmask=None, integerFlag=None, binaryValue=None, lenValue=None,): self.stringValue = stringValue @@ -3674,7 +3655,7 @@ def __init__(self, stringValue=None, smallIntValue=None, integerBitmask=None, in def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3683,7 +3664,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.stringValue = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.stringValue = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -3718,7 +3699,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetInfoValue') if self.stringValue is not None: @@ -3768,13 +3749,9 @@ class TGetInfoReq(object): Attributes: - sessionHandle - infoType + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.I32, 'infoType', None, None, ), # 2 - ) def __init__(self, sessionHandle=None, infoType=None,): self.sessionHandle = sessionHandle @@ -3782,7 +3759,7 @@ def __init__(self, sessionHandle=None, infoType=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3807,7 +3784,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetInfoReq') if self.sessionHandle is not None: @@ -3845,13 +3822,9 @@ class TGetInfoResp(object): Attributes: - status - infoValue + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'infoValue', (TGetInfoValue, TGetInfoValue.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, infoValue=None,): self.status = status @@ -3859,7 +3832,7 @@ def __init__(self, status=None, infoValue=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3885,7 +3858,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetInfoResp') if self.status is not None: @@ -3926,18 +3899,11 @@ class TExecuteStatementReq(object): - confOverlay - runAsync - queryTimeout + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'statement', 'UTF8', None, ), # 2 - (3, TType.MAP, 'confOverlay', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 - (4, TType.BOOL, 'runAsync', None, False, ), # 4 - (5, TType.I64, 'queryTimeout', None, 0, ), # 5 - ) - def __init__(self, sessionHandle=None, statement=None, confOverlay=None, runAsync=thrift_spec[4][4], queryTimeout=thrift_spec[5][4],): + def __init__(self, sessionHandle=None, statement=None, confOverlay=None, runAsync=False, queryTimeout=0,): self.sessionHandle = sessionHandle self.statement = statement self.confOverlay = confOverlay @@ -3946,7 +3912,7 @@ def __init__(self, sessionHandle=None, statement=None, confOverlay=None, runAsyn def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -3961,17 +3927,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.statement = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.statement = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.confOverlay = {} - (_ktype144, _vtype145, _size143) = iprot.readMapBegin() - for _i147 in range(_size143): - _key148 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val149 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - self.confOverlay[_key148] = _val149 + (_ktype153, _vtype154, _size152) = iprot.readMapBegin() + for _i156 in range(_size152): + _key157 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val158 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.confOverlay[_key157] = _val158 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3992,7 +3958,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TExecuteStatementReq') if self.sessionHandle is not None: @@ -4006,9 +3972,9 @@ def write(self, oprot): if self.confOverlay is not None: oprot.writeFieldBegin('confOverlay', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.confOverlay)) - for kiter150, viter151 in self.confOverlay.items(): - oprot.writeString(kiter150.encode('utf-8') if sys.version_info[0] == 2 else kiter150) - oprot.writeString(viter151.encode('utf-8') if sys.version_info[0] == 2 else viter151) + for kiter159, viter160 in self.confOverlay.items(): + oprot.writeString(kiter159.encode('utf-8') if sys.version_info[0] == 2 else kiter159) + oprot.writeString(viter160.encode('utf-8') if sys.version_info[0] == 2 else viter160) oprot.writeMapEnd() oprot.writeFieldEnd() if self.runAsync is not None: @@ -4046,13 +4012,9 @@ class TExecuteStatementResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4060,7 +4022,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4086,7 +4048,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TExecuteStatementResp') if self.status is not None: @@ -4121,19 +4083,16 @@ class TGetTypeInfoReq(object): """ Attributes: - sessionHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - ) def __init__(self, sessionHandle=None,): self.sessionHandle = sessionHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4153,7 +4112,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTypeInfoReq') if self.sessionHandle is not None: @@ -4185,13 +4144,9 @@ class TGetTypeInfoResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4199,7 +4154,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4225,7 +4180,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTypeInfoResp') if self.status is not None: @@ -4256,23 +4211,26 @@ def __ne__(self, other): return not (self == other) -class TGetCatalogsReq(object): +class TUploadDataReq(object): """ Attributes: - sessionHandle + - tableName + - path + - values + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - ) - def __init__(self, sessionHandle=None,): + def __init__(self, sessionHandle=None, tableName=None, path=None, values=None,): self.sessionHandle = sessionHandle + self.tableName = tableName + self.path = path + self.values = values def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4285,6 +4243,21 @@ def read(self, iprot): self.sessionHandle.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.path = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.values = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -4292,19 +4265,33 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetCatalogsReq') + oprot.writeStructBegin('TUploadDataReq') if self.sessionHandle is not None: oprot.writeFieldBegin('sessionHandle', TType.STRUCT, 1) self.sessionHandle.write(oprot) oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldEnd() + if self.path is not None: + oprot.writeFieldBegin('path', TType.STRING, 3) + oprot.writeString(self.path.encode('utf-8') if sys.version_info[0] == 2 else self.path) + oprot.writeFieldEnd() + if self.values is not None: + oprot.writeFieldBegin('values', TType.STRING, 4) + oprot.writeBinary(self.values) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.sessionHandle is None: raise TProtocolException(message='Required field sessionHandle is unset!') + if self.values is None: + raise TProtocolException(message='Required field values is unset!') return def __repr__(self): @@ -4319,18 +4306,14 @@ def __ne__(self, other): return not (self == other) -class TGetCatalogsResp(object): +class TUploadDataResp(object): """ Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4338,7 +4321,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4364,9 +4347,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetCatalogsResp') + oprot.writeStructBegin('TUploadDataResp') if self.status is not None: oprot.writeFieldBegin('status', TType.STRUCT, 1) self.status.write(oprot) @@ -4381,6 +4364,8 @@ def write(self, oprot): def validate(self): if self.status is None: raise TProtocolException(message='Required field status is unset!') + if self.operationHandle is None: + raise TProtocolException(message='Required field operationHandle is unset!') return def __repr__(self): @@ -4395,29 +4380,28 @@ def __ne__(self, other): return not (self == other) -class TGetSchemasReq(object): +class TDownloadDataReq(object): """ Attributes: - sessionHandle - - catalogName - - schemaName + - tableName + - query + - format + - downloadOptions + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 - ) - def __init__(self, sessionHandle=None, catalogName=None, schemaName=None,): + def __init__(self, sessionHandle=None, tableName=None, query=None, format=None, downloadOptions=None,): self.sessionHandle = sessionHandle - self.catalogName = catalogName - self.schemaName = schemaName + self.tableName = tableName + self.query = query + self.format = format + self.downloadOptions = downloadOptions def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4432,12 +4416,28 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.format = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.MAP: + self.downloadOptions = {} + (_ktype162, _vtype163, _size161) = iprot.readMapBegin() + for _i165 in range(_size161): + _key166 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val167 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.downloadOptions[_key166] = _val167 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -4447,20 +4447,32 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetSchemasReq') + oprot.writeStructBegin('TDownloadDataReq') if self.sessionHandle is not None: oprot.writeFieldBegin('sessionHandle', TType.STRUCT, 1) self.sessionHandle.write(oprot) oprot.writeFieldEnd() - if self.catalogName is not None: - oprot.writeFieldBegin('catalogName', TType.STRING, 2) - oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() - if self.schemaName is not None: - oprot.writeFieldBegin('schemaName', TType.STRING, 3) - oprot.writeString(self.schemaName.encode('utf-8') if sys.version_info[0] == 2 else self.schemaName) + if self.query is not None: + oprot.writeFieldBegin('query', TType.STRING, 3) + oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query) + oprot.writeFieldEnd() + if self.format is not None: + oprot.writeFieldBegin('format', TType.STRING, 4) + oprot.writeString(self.format.encode('utf-8') if sys.version_info[0] == 2 else self.format) + oprot.writeFieldEnd() + if self.downloadOptions is not None: + oprot.writeFieldBegin('downloadOptions', TType.MAP, 5) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.downloadOptions)) + for kiter168, viter169 in self.downloadOptions.items(): + oprot.writeString(kiter168.encode('utf-8') if sys.version_info[0] == 2 else kiter168) + oprot.writeString(viter169.encode('utf-8') if sys.version_info[0] == 2 else viter169) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4482,18 +4494,14 @@ def __ne__(self, other): return not (self == other) -class TGetSchemasResp(object): +class TDownloadDataResp(object): """ Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4501,7 +4509,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4527,9 +4535,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetSchemasResp') + oprot.writeStructBegin('TDownloadDataResp') if self.status is not None: oprot.writeFieldBegin('status', TType.STRUCT, 1) self.status.write(oprot) @@ -4544,6 +4552,8 @@ def write(self, oprot): def validate(self): if self.status is None: raise TProtocolException(message='Required field status is unset!') + if self.operationHandle is None: + raise TProtocolException(message='Required field operationHandle is unset!') return def __repr__(self): @@ -4558,26 +4568,305 @@ def __ne__(self, other): return not (self == other) -class TGetTablesReq(object): +class TGetCatalogsReq(object): """ Attributes: - sessionHandle - - catalogName - - schemaName - - tableName - - tableTypes + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 - (5, TType.LIST, 'tableTypes', (TType.STRING, 'UTF8', False), None, ), # 5 - ) - def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableName=None, tableTypes=None,): + def __init__(self, sessionHandle=None,): + self.sessionHandle = sessionHandle + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.sessionHandle = TSessionHandle() + self.sessionHandle.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TGetCatalogsReq') + if self.sessionHandle is not None: + oprot.writeFieldBegin('sessionHandle', TType.STRUCT, 1) + self.sessionHandle.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.sessionHandle is None: + raise TProtocolException(message='Required field sessionHandle is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TGetCatalogsResp(object): + """ + Attributes: + - status + - operationHandle + + """ + + + def __init__(self, status=None, operationHandle=None,): + self.status = status + self.operationHandle = operationHandle + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.status = TStatus() + self.status.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.operationHandle = TOperationHandle() + self.operationHandle.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TGetCatalogsResp') + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 1) + self.status.write(oprot) + oprot.writeFieldEnd() + if self.operationHandle is not None: + oprot.writeFieldBegin('operationHandle', TType.STRUCT, 2) + self.operationHandle.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.status is None: + raise TProtocolException(message='Required field status is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TGetSchemasReq(object): + """ + Attributes: + - sessionHandle + - catalogName + - schemaName + + """ + + + def __init__(self, sessionHandle=None, catalogName=None, schemaName=None,): + self.sessionHandle = sessionHandle + self.catalogName = catalogName + self.schemaName = schemaName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.sessionHandle = TSessionHandle() + self.sessionHandle.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TGetSchemasReq') + if self.sessionHandle is not None: + oprot.writeFieldBegin('sessionHandle', TType.STRUCT, 1) + self.sessionHandle.write(oprot) + oprot.writeFieldEnd() + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 2) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldEnd() + if self.schemaName is not None: + oprot.writeFieldBegin('schemaName', TType.STRING, 3) + oprot.writeString(self.schemaName.encode('utf-8') if sys.version_info[0] == 2 else self.schemaName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.sessionHandle is None: + raise TProtocolException(message='Required field sessionHandle is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TGetSchemasResp(object): + """ + Attributes: + - status + - operationHandle + + """ + + + def __init__(self, status=None, operationHandle=None,): + self.status = status + self.operationHandle = operationHandle + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.status = TStatus() + self.status.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.operationHandle = TOperationHandle() + self.operationHandle.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TGetSchemasResp') + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 1) + self.status.write(oprot) + oprot.writeFieldEnd() + if self.operationHandle is not None: + oprot.writeFieldBegin('operationHandle', TType.STRUCT, 2) + self.operationHandle.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.status is None: + raise TProtocolException(message='Required field status is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TGetTablesReq(object): + """ + Attributes: + - sessionHandle + - catalogName + - schemaName + - tableName + - tableTypes + + """ + + + def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableName=None, tableTypes=None,): self.sessionHandle = sessionHandle self.catalogName = catalogName self.schemaName = schemaName @@ -4586,7 +4875,7 @@ def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableN def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4601,26 +4890,26 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tableName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.tableTypes = [] - (_etype155, _size152) = iprot.readListBegin() - for _i156 in range(_size152): - _elem157 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - self.tableTypes.append(_elem157) + (_etype173, _size170) = iprot.readListBegin() + for _i174 in range(_size170): + _elem175 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tableTypes.append(_elem175) iprot.readListEnd() else: iprot.skip(ftype) @@ -4631,7 +4920,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTablesReq') if self.sessionHandle is not None: @@ -4653,8 +4942,8 @@ def write(self, oprot): if self.tableTypes is not None: oprot.writeFieldBegin('tableTypes', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.tableTypes)) - for iter158 in self.tableTypes: - oprot.writeString(iter158.encode('utf-8') if sys.version_info[0] == 2 else iter158) + for iter176 in self.tableTypes: + oprot.writeString(iter176.encode('utf-8') if sys.version_info[0] == 2 else iter176) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4682,13 +4971,9 @@ class TGetTablesResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4696,7 +4981,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4722,7 +5007,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTablesResp') if self.status is not None: @@ -4757,19 +5042,16 @@ class TGetTableTypesReq(object): """ Attributes: - sessionHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - ) def __init__(self, sessionHandle=None,): self.sessionHandle = sessionHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4789,7 +5071,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTableTypesReq') if self.sessionHandle is not None: @@ -4821,13 +5103,9 @@ class TGetTableTypesResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -4835,7 +5113,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4861,7 +5139,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetTableTypesResp') if self.status is not None: @@ -4900,16 +5178,9 @@ class TGetColumnsReq(object): - schemaName - tableName - columnName + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 - (5, TType.STRING, 'columnName', 'UTF8', None, ), # 5 - ) def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableName=None, columnName=None,): self.sessionHandle = sessionHandle @@ -4920,7 +5191,7 @@ def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableN def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -4935,22 +5206,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tableName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.columnName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.columnName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -4960,7 +5231,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetColumnsReq') if self.sessionHandle is not None: @@ -5008,13 +5279,9 @@ class TGetColumnsResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -5022,7 +5289,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5048,7 +5315,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetColumnsResp') if self.status is not None: @@ -5086,15 +5353,9 @@ class TGetFunctionsReq(object): - catalogName - schemaName - functionName + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'functionName', 'UTF8', None, ), # 4 - ) def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, functionName=None,): self.sessionHandle = sessionHandle @@ -5104,7 +5365,7 @@ def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, functi def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5119,17 +5380,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.functionName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.functionName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5139,7 +5400,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetFunctionsReq') if self.sessionHandle is not None: @@ -5185,13 +5446,9 @@ class TGetFunctionsResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -5199,7 +5456,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5225,7 +5482,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetFunctionsResp') if self.status is not None: @@ -5263,15 +5520,9 @@ class TGetPrimaryKeysReq(object): - catalogName - schemaName - tableName + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 - ) def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableName=None,): self.sessionHandle = sessionHandle @@ -5281,7 +5532,7 @@ def __init__(self, sessionHandle=None, catalogName=None, schemaName=None, tableN def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5296,17 +5547,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tableName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5316,7 +5567,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetPrimaryKeysReq') if self.sessionHandle is not None: @@ -5360,13 +5611,9 @@ class TGetPrimaryKeysResp(object): Attributes: - status - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, operationHandle=None,): self.status = status @@ -5374,7 +5621,7 @@ def __init__(self, status=None, operationHandle=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5400,7 +5647,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetPrimaryKeysResp') if self.status is not None: @@ -5441,18 +5688,9 @@ class TGetCrossReferenceReq(object): - foreignCatalogName - foreignSchemaName - foreignTableName + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'parentCatalogName', 'UTF8', None, ), # 2 - (3, TType.STRING, 'parentSchemaName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'parentTableName', 'UTF8', None, ), # 4 - (5, TType.STRING, 'foreignCatalogName', 'UTF8', None, ), # 5 - (6, TType.STRING, 'foreignSchemaName', 'UTF8', None, ), # 6 - (7, TType.STRING, 'foreignTableName', 'UTF8', None, ), # 7 - ) def __init__(self, sessionHandle=None, parentCatalogName=None, parentSchemaName=None, parentTableName=None, foreignCatalogName=None, foreignSchemaName=None, foreignTableName=None,): self.sessionHandle = sessionHandle @@ -5465,7 +5703,7 @@ def __init__(self, sessionHandle=None, parentCatalogName=None, parentSchemaName= def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5480,32 +5718,32 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.parentCatalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parentCatalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.parentSchemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parentSchemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.parentTableName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parentTableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.foreignCatalogName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.foreignCatalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.foreignSchemaName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.foreignSchemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.foreignTableName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.foreignTableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5515,7 +5753,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetCrossReferenceReq') if self.sessionHandle is not None: @@ -5566,113 +5804,22 @@ def __ne__(self, other): return not (self == other) -class TGetCrossReferenceResp(object): - """ - Attributes: - - status - - operationHandle - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 2 - ) - - def __init__(self, status=None, operationHandle=None,): - self.status = status - self.operationHandle = operationHandle - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.status = TStatus() - self.status.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.operationHandle = TOperationHandle() - self.operationHandle.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('TGetCrossReferenceResp') - if self.status is not None: - oprot.writeFieldBegin('status', TType.STRUCT, 1) - self.status.write(oprot) - oprot.writeFieldEnd() - if self.operationHandle is not None: - oprot.writeFieldBegin('operationHandle', TType.STRUCT, 2) - self.operationHandle.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.status is None: - raise TProtocolException(message='Required field status is unset!') - return - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class TProgressUpdateResp(object): +class TGetCrossReferenceResp(object): """ Attributes: - - headerNames - - rows - - progressedPercentage - status - - footerSummary - - startTime + - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'headerNames', (TType.STRING, 'UTF8', False), None, ), # 1 - (2, TType.LIST, 'rows', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 2 - (3, TType.DOUBLE, 'progressedPercentage', None, None, ), # 3 - (4, TType.I32, 'status', None, None, ), # 4 - (5, TType.STRING, 'footerSummary', 'UTF8', None, ), # 5 - (6, TType.I64, 'startTime', None, None, ), # 6 - ) - def __init__(self, headerNames=None, rows=None, progressedPercentage=None, status=None, footerSummary=None, startTime=None,): - self.headerNames = headerNames - self.rows = rows - self.progressedPercentage = progressedPercentage + def __init__(self, status=None, operationHandle=None,): self.status = status - self.footerSummary = footerSummary - self.startTime = startTime + self.operationHandle = operationHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5680,48 +5827,15 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.headerNames = [] - (_etype162, _size159) = iprot.readListBegin() - for _i163 in range(_size159): - _elem164 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - self.headerNames.append(_elem164) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.status = TStatus() + self.status.read(iprot) else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.LIST: - self.rows = [] - (_etype168, _size165) = iprot.readListBegin() - for _i169 in range(_size165): - _elem170 = [] - (_etype174, _size171) = iprot.readListBegin() - for _i175 in range(_size171): - _elem176 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _elem170.append(_elem176) - iprot.readListEnd() - self.rows.append(_elem170) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.DOUBLE: - self.progressedPercentage = iprot.readDouble() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.status = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.footerSummary = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I64: - self.startTime = iprot.readI64() + if ftype == TType.STRUCT: + self.operationHandle = TOperationHandle() + self.operationHandle.read(iprot) else: iprot.skip(ftype) else: @@ -5731,58 +5845,23 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TProgressUpdateResp') - if self.headerNames is not None: - oprot.writeFieldBegin('headerNames', TType.LIST, 1) - oprot.writeListBegin(TType.STRING, len(self.headerNames)) - for iter177 in self.headerNames: - oprot.writeString(iter177.encode('utf-8') if sys.version_info[0] == 2 else iter177) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.rows is not None: - oprot.writeFieldBegin('rows', TType.LIST, 2) - oprot.writeListBegin(TType.LIST, len(self.rows)) - for iter178 in self.rows: - oprot.writeListBegin(TType.STRING, len(iter178)) - for iter179 in iter178: - oprot.writeString(iter179.encode('utf-8') if sys.version_info[0] == 2 else iter179) - oprot.writeListEnd() - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.progressedPercentage is not None: - oprot.writeFieldBegin('progressedPercentage', TType.DOUBLE, 3) - oprot.writeDouble(self.progressedPercentage) - oprot.writeFieldEnd() + oprot.writeStructBegin('TGetCrossReferenceResp') if self.status is not None: - oprot.writeFieldBegin('status', TType.I32, 4) - oprot.writeI32(self.status) - oprot.writeFieldEnd() - if self.footerSummary is not None: - oprot.writeFieldBegin('footerSummary', TType.STRING, 5) - oprot.writeString(self.footerSummary.encode('utf-8') if sys.version_info[0] == 2 else self.footerSummary) + oprot.writeFieldBegin('status', TType.STRUCT, 1) + self.status.write(oprot) oprot.writeFieldEnd() - if self.startTime is not None: - oprot.writeFieldBegin('startTime', TType.I64, 6) - oprot.writeI64(self.startTime) + if self.operationHandle is not None: + oprot.writeFieldBegin('operationHandle', TType.STRUCT, 2) + self.operationHandle.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.headerNames is None: - raise TProtocolException(message='Required field headerNames is unset!') - if self.rows is None: - raise TProtocolException(message='Required field rows is unset!') - if self.progressedPercentage is None: - raise TProtocolException(message='Required field progressedPercentage is unset!') if self.status is None: raise TProtocolException(message='Required field status is unset!') - if self.footerSummary is None: - raise TProtocolException(message='Required field footerSummary is unset!') - if self.startTime is None: - raise TProtocolException(message='Required field startTime is unset!') return def __repr__(self): @@ -5796,18 +5875,15 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) + class TGetOperationStatusReq(object): """ Attributes: - operationHandle - getProgressUpdate + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - (2, TType.BOOL, 'getProgressUpdate', None, None, ), # 2 - ) def __init__(self, operationHandle=None, getProgressUpdate=None,): self.operationHandle = operationHandle @@ -5815,7 +5891,7 @@ def __init__(self, operationHandle=None, getProgressUpdate=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5840,7 +5916,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetOperationStatusReq') if self.operationHandle is not None: @@ -5884,23 +5960,12 @@ class TGetOperationStatusResp(object): - operationCompleted - hasResultSet - progressUpdateResponse + - numModifiedRows + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.I32, 'operationState', None, None, ), # 2 - (3, TType.STRING, 'sqlState', 'UTF8', None, ), # 3 - (4, TType.I32, 'errorCode', None, None, ), # 4 - (5, TType.STRING, 'errorMessage', 'UTF8', None, ), # 5 - (6, TType.STRING, 'taskStatus', 'UTF8', None, ), # 6 - (7, TType.I64, 'operationStarted', None, None, ), # 7 - (8, TType.I64, 'operationCompleted', None, None, ), # 8 - (9, TType.BOOL, 'hasResultSet', None, None, ), # 9 - (10, TType.STRUCT, 'progressUpdateResponse', (TProgressUpdateResp, TProgressUpdateResp.thrift_spec), None, ), # 10 - ) - - def __init__(self, status=None, operationState=None, sqlState=None, errorCode=None, errorMessage=None, taskStatus=None, operationStarted=None, operationCompleted=None, hasResultSet=None, progressUpdateResponse=None,): + + def __init__(self, status=None, operationState=None, sqlState=None, errorCode=None, errorMessage=None, taskStatus=None, operationStarted=None, operationCompleted=None, hasResultSet=None, progressUpdateResponse=None, numModifiedRows=None,): self.status = status self.operationState = operationState self.sqlState = sqlState @@ -5911,10 +5976,11 @@ def __init__(self, status=None, operationState=None, sqlState=None, errorCode=No self.operationCompleted = operationCompleted self.hasResultSet = hasResultSet self.progressUpdateResponse = progressUpdateResponse + self.numModifiedRows = numModifiedRows def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -5934,7 +6000,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.sqlState = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.sqlState = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -5944,12 +6010,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.errorMessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.taskStatus = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.taskStatus = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -5973,6 +6039,11 @@ def read(self, iprot): self.progressUpdateResponse.read(iprot) else: iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.numModifiedRows = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -5980,7 +6051,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetOperationStatusResp') if self.status is not None: @@ -6023,6 +6094,10 @@ def write(self, oprot): oprot.writeFieldBegin('progressUpdateResponse', TType.STRUCT, 10) self.progressUpdateResponse.write(oprot) oprot.writeFieldEnd() + if self.numModifiedRows is not None: + oprot.writeFieldBegin('numModifiedRows', TType.I64, 11) + oprot.writeI64(self.numModifiedRows) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6047,19 +6122,16 @@ class TCancelOperationReq(object): """ Attributes: - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - ) def __init__(self, operationHandle=None,): self.operationHandle = operationHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6079,7 +6151,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCancelOperationReq') if self.operationHandle is not None: @@ -6110,19 +6182,16 @@ class TCancelOperationResp(object): """ Attributes: - status + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - ) def __init__(self, status=None,): self.status = status def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6142,7 +6211,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCancelOperationResp') if self.status is not None: @@ -6173,19 +6242,16 @@ class TCloseOperationReq(object): """ Attributes: - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - ) def __init__(self, operationHandle=None,): self.operationHandle = operationHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6205,7 +6271,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCloseOperationReq') if self.operationHandle is not None: @@ -6236,19 +6302,16 @@ class TCloseOperationResp(object): """ Attributes: - status + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - ) def __init__(self, status=None,): self.status = status def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6268,7 +6331,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCloseOperationResp') if self.status is not None: @@ -6299,19 +6362,16 @@ class TGetResultSetMetadataReq(object): """ Attributes: - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - ) def __init__(self, operationHandle=None,): self.operationHandle = operationHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6331,7 +6391,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetResultSetMetadataReq') if self.operationHandle is not None: @@ -6363,13 +6423,9 @@ class TGetResultSetMetadataResp(object): Attributes: - status - schema + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'schema', (TTableSchema, TTableSchema.thrift_spec), None, ), # 2 - ) def __init__(self, status=None, schema=None,): self.status = status @@ -6377,7 +6433,7 @@ def __init__(self, status=None, schema=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6403,7 +6459,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetResultSetMetadataResp') if self.status is not None: @@ -6441,17 +6497,11 @@ class TFetchResultsReq(object): - orientation - maxRows - fetchType + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - (2, TType.I32, 'orientation', None, 0, ), # 2 - (3, TType.I64, 'maxRows', None, None, ), # 3 - (4, TType.I16, 'fetchType', None, 0, ), # 4 - ) - def __init__(self, operationHandle=None, orientation=thrift_spec[2][4], maxRows=None, fetchType=thrift_spec[4][4],): + def __init__(self, operationHandle=None, orientation= 0, maxRows=None, fetchType=0,): self.operationHandle = operationHandle self.orientation = orientation self.maxRows = maxRows @@ -6459,7 +6509,7 @@ def __init__(self, operationHandle=None, orientation=thrift_spec[2][4], maxRows= def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6494,7 +6544,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TFetchResultsReq') if self.operationHandle is not None: @@ -6543,14 +6593,9 @@ class TFetchResultsResp(object): - status - hasMoreRows - results + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.BOOL, 'hasMoreRows', None, None, ), # 2 - (3, TType.STRUCT, 'results', (TRowSet, TRowSet.thrift_spec), None, ), # 3 - ) def __init__(self, status=None, hasMoreRows=None, results=None,): self.status = status @@ -6559,7 +6604,7 @@ def __init__(self, status=None, hasMoreRows=None, results=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6590,7 +6635,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TFetchResultsResp') if self.status is not None: @@ -6631,14 +6676,9 @@ class TGetDelegationTokenReq(object): - sessionHandle - owner - renewer + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'owner', 'UTF8', None, ), # 2 - (3, TType.STRING, 'renewer', 'UTF8', None, ), # 3 - ) def __init__(self, sessionHandle=None, owner=None, renewer=None,): self.sessionHandle = sessionHandle @@ -6647,7 +6687,7 @@ def __init__(self, sessionHandle=None, owner=None, renewer=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6662,12 +6702,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.owner = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.renewer = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.renewer = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6677,7 +6717,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetDelegationTokenReq') if self.sessionHandle is not None: @@ -6721,13 +6761,9 @@ class TGetDelegationTokenResp(object): Attributes: - status - delegationToken + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 - ) def __init__(self, status=None, delegationToken=None,): self.status = status @@ -6735,7 +6771,7 @@ def __init__(self, status=None, delegationToken=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6750,7 +6786,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.delegationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.delegationToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6760,7 +6796,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TGetDelegationTokenResp') if self.status is not None: @@ -6796,13 +6832,9 @@ class TCancelDelegationTokenReq(object): Attributes: - sessionHandle - delegationToken + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 - ) def __init__(self, sessionHandle=None, delegationToken=None,): self.sessionHandle = sessionHandle @@ -6810,7 +6842,7 @@ def __init__(self, sessionHandle=None, delegationToken=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6825,7 +6857,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.delegationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.delegationToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6835,7 +6867,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCancelDelegationTokenReq') if self.sessionHandle is not None: @@ -6872,19 +6904,16 @@ class TCancelDelegationTokenResp(object): """ Attributes: - status + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - ) def __init__(self, status=None,): self.status = status def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6904,7 +6933,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TCancelDelegationTokenResp') if self.status is not None: @@ -6936,13 +6965,9 @@ class TRenewDelegationTokenReq(object): Attributes: - sessionHandle - delegationToken + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 1 - (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 - ) def __init__(self, sessionHandle=None, delegationToken=None,): self.sessionHandle = sessionHandle @@ -6950,7 +6975,7 @@ def __init__(self, sessionHandle=None, delegationToken=None,): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -6965,7 +6990,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.delegationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.delegationToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6975,7 +7000,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TRenewDelegationTokenReq') if self.sessionHandle is not None: @@ -7012,19 +7037,16 @@ class TRenewDelegationTokenResp(object): """ Attributes: - status + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - ) def __init__(self, status=None,): self.status = status def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -7044,7 +7066,7 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('TRenewDelegationTokenResp') if self.status is not None: @@ -7070,23 +7092,169 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class TGetLogReq(object): + +class TProgressUpdateResp(object): + """ + Attributes: + - headerNames + - rows + - progressedPercentage + - status + - footerSummary + - startTime + + """ + + + def __init__(self, headerNames=None, rows=None, progressedPercentage=None, status=None, footerSummary=None, startTime=None,): + self.headerNames = headerNames + self.rows = rows + self.progressedPercentage = progressedPercentage + self.status = status + self.footerSummary = footerSummary + self.startTime = startTime + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.headerNames = [] + (_etype180, _size177) = iprot.readListBegin() + for _i181 in range(_size177): + _elem182 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.headerNames.append(_elem182) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.rows = [] + (_etype186, _size183) = iprot.readListBegin() + for _i187 in range(_size183): + _elem188 = [] + (_etype192, _size189) = iprot.readListBegin() + for _i193 in range(_size189): + _elem194 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _elem188.append(_elem194) + iprot.readListEnd() + self.rows.append(_elem188) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.DOUBLE: + self.progressedPercentage = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.footerSummary = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.startTime = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('TProgressUpdateResp') + if self.headerNames is not None: + oprot.writeFieldBegin('headerNames', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.headerNames)) + for iter195 in self.headerNames: + oprot.writeString(iter195.encode('utf-8') if sys.version_info[0] == 2 else iter195) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.rows is not None: + oprot.writeFieldBegin('rows', TType.LIST, 2) + oprot.writeListBegin(TType.LIST, len(self.rows)) + for iter196 in self.rows: + oprot.writeListBegin(TType.STRING, len(iter196)) + for iter197 in iter196: + oprot.writeString(iter197.encode('utf-8') if sys.version_info[0] == 2 else iter197) + oprot.writeListEnd() + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.progressedPercentage is not None: + oprot.writeFieldBegin('progressedPercentage', TType.DOUBLE, 3) + oprot.writeDouble(self.progressedPercentage) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 4) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.footerSummary is not None: + oprot.writeFieldBegin('footerSummary', TType.STRING, 5) + oprot.writeString(self.footerSummary.encode('utf-8') if sys.version_info[0] == 2 else self.footerSummary) + oprot.writeFieldEnd() + if self.startTime is not None: + oprot.writeFieldBegin('startTime', TType.I64, 6) + oprot.writeI64(self.startTime) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.headerNames is None: + raise TProtocolException(message='Required field headerNames is unset!') + if self.rows is None: + raise TProtocolException(message='Required field rows is unset!') + if self.progressedPercentage is None: + raise TProtocolException(message='Required field progressedPercentage is unset!') + if self.status is None: + raise TProtocolException(message='Required field status is unset!') + if self.footerSummary is None: + raise TProtocolException(message='Required field footerSummary is unset!') + if self.startTime is None: + raise TProtocolException(message='Required field startTime is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + +class TGetQueryIdReq(object): """ Attributes: - operationHandle + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), # 1 - ) def __init__(self, operationHandle=None,): self.operationHandle = operationHandle def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -7106,9 +7274,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetLogReq') + oprot.writeStructBegin('TGetQueryIdReq') if self.operationHandle is not None: oprot.writeFieldBegin('operationHandle', TType.STRUCT, 1) self.operationHandle.write(oprot) @@ -7133,26 +7301,20 @@ def __ne__(self, other): return not (self == other) -class TGetLogResp(object): +class TGetQueryIdResp(object): """ Attributes: - - status - - log + - queryId + """ - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1 - (2, TType.STRING, 'log', 'UTF8', None, ), # 2 - ) - def __init__(self, status=None, log=None,): - self.status = status - self.log = log + def __init__(self, queryId=None,): + self.queryId = queryId def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: - iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec)) + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: @@ -7160,14 +7322,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.status = TStatus() - self.status.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: if ftype == TType.STRING: - self.log = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.queryId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -7177,25 +7333,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec))) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin('TGetLogResp') - if self.status is not None: - oprot.writeFieldBegin('status', TType.STRUCT, 1) - self.status.write(oprot) - oprot.writeFieldEnd() - if self.log is not None: - oprot.writeFieldBegin('log', TType.STRING, 2) - oprot.writeString(self.log.encode('utf-8') if sys.version_info[0] == 2 else self.log) + oprot.writeStructBegin('TGetQueryIdResp') + if self.queryId is not None: + oprot.writeFieldBegin('queryId', TType.STRING, 1) + oprot.writeString(self.queryId.encode('utf-8') if sys.version_info[0] == 2 else self.queryId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.status is None: - raise TProtocolException(message='Required field status is unset!') - if self.log is None: - raise TProtocolException(message='Required field log is unset!') + if self.queryId is None: + raise TProtocolException(message='Required field queryId is unset!') return def __repr__(self): @@ -7208,3 +7358,570 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +all_structs.append(TTypeQualifierValue) +TTypeQualifierValue.thrift_spec = ( + None, # 0 + (1, TType.I32, 'i32Value', None, None, ), # 1 + (2, TType.STRING, 'stringValue', 'UTF8', None, ), # 2 +) +all_structs.append(TTypeQualifiers) +TTypeQualifiers.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'qualifiers', (TType.STRING, 'UTF8', TType.STRUCT, [TTypeQualifierValue, None], False), None, ), # 1 +) +all_structs.append(TPrimitiveTypeEntry) +TPrimitiveTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.STRUCT, 'typeQualifiers', [TTypeQualifiers, None], None, ), # 2 +) +all_structs.append(TArrayTypeEntry) +TArrayTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.I32, 'objectTypePtr', None, None, ), # 1 +) +all_structs.append(TMapTypeEntry) +TMapTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.I32, 'keyTypePtr', None, None, ), # 1 + (2, TType.I32, 'valueTypePtr', None, None, ), # 2 +) +all_structs.append(TStructTypeEntry) +TStructTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'nameToTypePtr', (TType.STRING, 'UTF8', TType.I32, None, False), None, ), # 1 +) +all_structs.append(TUnionTypeEntry) +TUnionTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'nameToTypePtr', (TType.STRING, 'UTF8', TType.I32, None, False), None, ), # 1 +) +all_structs.append(TUserDefinedTypeEntry) +TUserDefinedTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'typeClassName', 'UTF8', None, ), # 1 +) +all_structs.append(TTypeEntry) +TTypeEntry.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'primitiveEntry', [TPrimitiveTypeEntry, None], None, ), # 1 + (2, TType.STRUCT, 'arrayEntry', [TArrayTypeEntry, None], None, ), # 2 + (3, TType.STRUCT, 'mapEntry', [TMapTypeEntry, None], None, ), # 3 + (4, TType.STRUCT, 'structEntry', [TStructTypeEntry, None], None, ), # 4 + (5, TType.STRUCT, 'unionEntry', [TUnionTypeEntry, None], None, ), # 5 + (6, TType.STRUCT, 'userDefinedTypeEntry', [TUserDefinedTypeEntry, None], None, ), # 6 +) +all_structs.append(TTypeDesc) +TTypeDesc.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'types', (TType.STRUCT, [TTypeEntry, None], False), None, ), # 1 +) +all_structs.append(TColumnDesc) +TColumnDesc.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'columnName', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'typeDesc', [TTypeDesc, None], None, ), # 2 + (3, TType.I32, 'position', None, None, ), # 3 + (4, TType.STRING, 'comment', 'UTF8', None, ), # 4 +) +all_structs.append(TTableSchema) +TTableSchema.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'columns', (TType.STRUCT, [TColumnDesc, None], False), None, ), # 1 +) +all_structs.append(TBoolValue) +TBoolValue.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'value', None, None, ), # 1 +) +all_structs.append(TByteValue) +TByteValue.thrift_spec = ( + None, # 0 + (1, TType.BYTE, 'value', None, None, ), # 1 +) +all_structs.append(TI16Value) +TI16Value.thrift_spec = ( + None, # 0 + (1, TType.I16, 'value', None, None, ), # 1 +) +all_structs.append(TI32Value) +TI32Value.thrift_spec = ( + None, # 0 + (1, TType.I32, 'value', None, None, ), # 1 +) +all_structs.append(TI64Value) +TI64Value.thrift_spec = ( + None, # 0 + (1, TType.I64, 'value', None, None, ), # 1 +) +all_structs.append(TDoubleValue) +TDoubleValue.thrift_spec = ( + None, # 0 + (1, TType.DOUBLE, 'value', None, None, ), # 1 +) +all_structs.append(TStringValue) +TStringValue.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'value', 'UTF8', None, ), # 1 +) +all_structs.append(TColumnValue) +TColumnValue.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'boolVal', [TBoolValue, None], None, ), # 1 + (2, TType.STRUCT, 'byteVal', [TByteValue, None], None, ), # 2 + (3, TType.STRUCT, 'i16Val', [TI16Value, None], None, ), # 3 + (4, TType.STRUCT, 'i32Val', [TI32Value, None], None, ), # 4 + (5, TType.STRUCT, 'i64Val', [TI64Value, None], None, ), # 5 + (6, TType.STRUCT, 'doubleVal', [TDoubleValue, None], None, ), # 6 + (7, TType.STRUCT, 'stringVal', [TStringValue, None], None, ), # 7 +) +all_structs.append(TRow) +TRow.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'colVals', (TType.STRUCT, [TColumnValue, None], False), None, ), # 1 +) +all_structs.append(TBoolColumn) +TBoolColumn.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.BOOL, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TByteColumn) +TByteColumn.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.BYTE, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TI16Column) +TI16Column.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.I16, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TI32Column) +TI32Column.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.I32, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TI64Column) +TI64Column.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.I64, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TDoubleColumn) +TDoubleColumn.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.DOUBLE, None, False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TStringColumn) +TStringColumn.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TBinaryColumn) +TBinaryColumn.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'values', (TType.STRING, 'BINARY', False), None, ), # 1 + (2, TType.STRING, 'nulls', 'BINARY', None, ), # 2 +) +all_structs.append(TColumn) +TColumn.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'boolVal', [TBoolColumn, None], None, ), # 1 + (2, TType.STRUCT, 'byteVal', [TByteColumn, None], None, ), # 2 + (3, TType.STRUCT, 'i16Val', [TI16Column, None], None, ), # 3 + (4, TType.STRUCT, 'i32Val', [TI32Column, None], None, ), # 4 + (5, TType.STRUCT, 'i64Val', [TI64Column, None], None, ), # 5 + (6, TType.STRUCT, 'doubleVal', [TDoubleColumn, None], None, ), # 6 + (7, TType.STRUCT, 'stringVal', [TStringColumn, None], None, ), # 7 + (8, TType.STRUCT, 'binaryVal', [TBinaryColumn, None], None, ), # 8 +) +all_structs.append(TRowSet) +TRowSet.thrift_spec = ( + None, # 0 + (1, TType.I64, 'startRowOffset', None, None, ), # 1 + (2, TType.LIST, 'rows', (TType.STRUCT, [TRow, None], False), None, ), # 2 + (3, TType.LIST, 'columns', (TType.STRUCT, [TColumn, None], False), None, ), # 3 + (4, TType.STRING, 'binaryColumns', 'BINARY', None, ), # 4 + (5, TType.I32, 'columnCount', None, None, ), # 5 +) +all_structs.append(TStatus) +TStatus.thrift_spec = ( + None, # 0 + (1, TType.I32, 'statusCode', None, None, ), # 1 + (2, TType.LIST, 'infoMessages', (TType.STRING, 'UTF8', False), None, ), # 2 + (3, TType.STRING, 'sqlState', 'UTF8', None, ), # 3 + (4, TType.I32, 'errorCode', None, None, ), # 4 + (5, TType.STRING, 'errorMessage', 'UTF8', None, ), # 5 +) +all_structs.append(THandleIdentifier) +THandleIdentifier.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'guid', 'BINARY', None, ), # 1 + (2, TType.STRING, 'secret', 'BINARY', None, ), # 2 +) +all_structs.append(TSessionHandle) +TSessionHandle.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionId', [THandleIdentifier, None], None, ), # 1 +) +all_structs.append(TOperationHandle) +TOperationHandle.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationId', [THandleIdentifier, None], None, ), # 1 + (2, TType.I32, 'operationType', None, None, ), # 2 + (3, TType.BOOL, 'hasResultSet', None, None, ), # 3 + (4, TType.DOUBLE, 'modifiedRowCount', None, None, ), # 4 +) +all_structs.append(TOpenSessionReq) +TOpenSessionReq.thrift_spec = ( + None, # 0 + (1, TType.I32, 'client_protocol', None, 9, ), # 1 + (2, TType.STRING, 'username', 'UTF8', None, ), # 2 + (3, TType.STRING, 'password', 'UTF8', None, ), # 3 + (4, TType.MAP, 'configuration', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 +) +all_structs.append(TOpenSessionResp) +TOpenSessionResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.I32, 'serverProtocolVersion', None, 9, ), # 2 + (3, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 3 + (4, TType.MAP, 'configuration', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 +) +all_structs.append(TSetClientInfoReq) +TSetClientInfoReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.MAP, 'configuration', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 +) +all_structs.append(TSetClientInfoResp) +TSetClientInfoResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TCloseSessionReq) +TCloseSessionReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 +) +all_structs.append(TCloseSessionResp) +TCloseSessionResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TGetInfoValue) +TGetInfoValue.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'stringValue', 'UTF8', None, ), # 1 + (2, TType.I16, 'smallIntValue', None, None, ), # 2 + (3, TType.I32, 'integerBitmask', None, None, ), # 3 + (4, TType.I32, 'integerFlag', None, None, ), # 4 + (5, TType.I32, 'binaryValue', None, None, ), # 5 + (6, TType.I64, 'lenValue', None, None, ), # 6 +) +all_structs.append(TGetInfoReq) +TGetInfoReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.I32, 'infoType', None, None, ), # 2 +) +all_structs.append(TGetInfoResp) +TGetInfoResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'infoValue', [TGetInfoValue, None], None, ), # 2 +) +all_structs.append(TExecuteStatementReq) +TExecuteStatementReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'statement', 'UTF8', None, ), # 2 + (3, TType.MAP, 'confOverlay', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.BOOL, 'runAsync', None, False, ), # 4 + (5, TType.I64, 'queryTimeout', None, 0, ), # 5 +) +all_structs.append(TExecuteStatementResp) +TExecuteStatementResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetTypeInfoReq) +TGetTypeInfoReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 +) +all_structs.append(TGetTypeInfoResp) +TGetTypeInfoResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TUploadDataReq) +TUploadDataReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'path', 'UTF8', None, ), # 3 + (4, TType.STRING, 'values', 'BINARY', None, ), # 4 +) +all_structs.append(TUploadDataResp) +TUploadDataResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TDownloadDataReq) +TDownloadDataReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'query', 'UTF8', None, ), # 3 + (4, TType.STRING, 'format', 'UTF8', None, ), # 4 + (5, TType.MAP, 'downloadOptions', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 +) +all_structs.append(TDownloadDataResp) +TDownloadDataResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetCatalogsReq) +TGetCatalogsReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 +) +all_structs.append(TGetCatalogsResp) +TGetCatalogsResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetSchemasReq) +TGetSchemasReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 +) +all_structs.append(TGetSchemasResp) +TGetSchemasResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetTablesReq) +TGetTablesReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 + (5, TType.LIST, 'tableTypes', (TType.STRING, 'UTF8', False), None, ), # 5 +) +all_structs.append(TGetTablesResp) +TGetTablesResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetTableTypesReq) +TGetTableTypesReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 +) +all_structs.append(TGetTableTypesResp) +TGetTableTypesResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetColumnsReq) +TGetColumnsReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'columnName', 'UTF8', None, ), # 5 +) +all_structs.append(TGetColumnsResp) +TGetColumnsResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetFunctionsReq) +TGetFunctionsReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'functionName', 'UTF8', None, ), # 4 +) +all_structs.append(TGetFunctionsResp) +TGetFunctionsResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetPrimaryKeysReq) +TGetPrimaryKeysReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 +) +all_structs.append(TGetPrimaryKeysResp) +TGetPrimaryKeysResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetCrossReferenceReq) +TGetCrossReferenceReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'parentCatalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'parentSchemaName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'parentTableName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'foreignCatalogName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'foreignSchemaName', 'UTF8', None, ), # 6 + (7, TType.STRING, 'foreignTableName', 'UTF8', None, ), # 7 +) +all_structs.append(TGetCrossReferenceResp) +TGetCrossReferenceResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 2 +) +all_structs.append(TGetOperationStatusReq) +TGetOperationStatusReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 + (2, TType.BOOL, 'getProgressUpdate', None, None, ), # 2 +) +all_structs.append(TGetOperationStatusResp) +TGetOperationStatusResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.I32, 'operationState', None, None, ), # 2 + (3, TType.STRING, 'sqlState', 'UTF8', None, ), # 3 + (4, TType.I32, 'errorCode', None, None, ), # 4 + (5, TType.STRING, 'errorMessage', 'UTF8', None, ), # 5 + (6, TType.STRING, 'taskStatus', 'UTF8', None, ), # 6 + (7, TType.I64, 'operationStarted', None, None, ), # 7 + (8, TType.I64, 'operationCompleted', None, None, ), # 8 + (9, TType.BOOL, 'hasResultSet', None, None, ), # 9 + (10, TType.STRUCT, 'progressUpdateResponse', [TProgressUpdateResp, None], None, ), # 10 + (11, TType.I64, 'numModifiedRows', None, None, ), # 11 +) +all_structs.append(TCancelOperationReq) +TCancelOperationReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 +) +all_structs.append(TCancelOperationResp) +TCancelOperationResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TCloseOperationReq) +TCloseOperationReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 +) +all_structs.append(TCloseOperationResp) +TCloseOperationResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TGetResultSetMetadataReq) +TGetResultSetMetadataReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 +) +all_structs.append(TGetResultSetMetadataResp) +TGetResultSetMetadataResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRUCT, 'schema', [TTableSchema, None], None, ), # 2 +) +all_structs.append(TFetchResultsReq) +TFetchResultsReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 + (2, TType.I32, 'orientation', None, 0, ), # 2 + (3, TType.I64, 'maxRows', None, None, ), # 3 + (4, TType.I16, 'fetchType', None, 0, ), # 4 +) +all_structs.append(TFetchResultsResp) +TFetchResultsResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.BOOL, 'hasMoreRows', None, None, ), # 2 + (3, TType.STRUCT, 'results', [TRowSet, None], None, ), # 3 +) +all_structs.append(TGetDelegationTokenReq) +TGetDelegationTokenReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'owner', 'UTF8', None, ), # 2 + (3, TType.STRING, 'renewer', 'UTF8', None, ), # 3 +) +all_structs.append(TGetDelegationTokenResp) +TGetDelegationTokenResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 + (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 +) +all_structs.append(TCancelDelegationTokenReq) +TCancelDelegationTokenReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 +) +all_structs.append(TCancelDelegationTokenResp) +TCancelDelegationTokenResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TRenewDelegationTokenReq) +TRenewDelegationTokenReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'sessionHandle', [TSessionHandle, None], None, ), # 1 + (2, TType.STRING, 'delegationToken', 'UTF8', None, ), # 2 +) +all_structs.append(TRenewDelegationTokenResp) +TRenewDelegationTokenResp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'status', [TStatus, None], None, ), # 1 +) +all_structs.append(TProgressUpdateResp) +TProgressUpdateResp.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'headerNames', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.LIST, 'rows', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 2 + (3, TType.DOUBLE, 'progressedPercentage', None, None, ), # 3 + (4, TType.I32, 'status', None, None, ), # 4 + (5, TType.STRING, 'footerSummary', 'UTF8', None, ), # 5 + (6, TType.I64, 'startTime', None, None, ), # 6 +) +all_structs.append(TGetQueryIdReq) +TGetQueryIdReq.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'operationHandle', [TOperationHandle, None], None, ), # 1 +) +all_structs.append(TGetQueryIdResp) +TGetQueryIdResp.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'queryId', 'UTF8', None, ), # 1 +) +fix_spec(all_structs) +del all_structs