From 5ef3a3ec8042c04801c9ee1bf9f74c1d071abcbf Mon Sep 17 00:00:00 2001 From: Jaume Marhuenda Date: Mon, 1 May 2023 08:11:02 -0400 Subject: [PATCH] Upgrade thrift version to 0.18.1 (#213) * update thrift version to 0.18.1 * update thrift auto generated files --- go.mod | 6 +- go.sum | 4 +- hive.go | 7 +- hiveserver/GoUnusedProtection__.go | 2 +- hiveserver/HiveServer-consts.go | 63 +- hiveserver/HiveServer.go | 2079 ++++++++++++++++++---------- 6 files changed, 1372 insertions(+), 789 deletions(-) diff --git a/go.mod b/go.mod index 9d36265..42c558f 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,12 @@ module github.com/beltran/gohive -go 1.14 +go 1.19 require ( - github.com/apache/thrift v0.14.1 + github.com/apache/thrift v0.18.1 github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293 github.com/go-zookeeper/zk v1.0.1 github.com/pkg/errors v0.9.1 ) + +require github.com/beltran/gssapi v0.0.0-20200324152954-d86554db4bab // indirect diff --git a/go.sum b/go.sum index cca6180..4638de2 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/apache/thrift v0.14.1 h1:Yh8v0hpCj63p5edXOLaqTJW0IJ1p+eMW6+YSOqw1d6s= -github.com/apache/thrift v0.14.1/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.18.1 h1:lNhK/1nqjbwbiOPDBPFJVKxgDEGSepKuTh6OLiXW8kg= +github.com/apache/thrift v0.18.1/go.mod h1:rdQn/dCcDKEWjjylUeueum4vQEjG2v8v2PqriUnbr+I= github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293 h1:1wRvU44e78w7zJoynLqrXLKSI+VEFEaWmzyq5JdUx7I= github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293/go.mod h1:Qx8cW6jkI8riyzmklj80kAIkv+iezFUTBiGU0qHhHes= github.com/beltran/gssapi v0.0.0-20200324152954-d86554db4bab h1:ayfcn60tXOSYy5zUN1AMSTQo4nJCf7hrdzAVchpPst4= diff --git a/hive.go b/hive.go index 33eeada..7ad4dab 100644 --- a/hive.go +++ b/hive.go @@ -213,20 +213,17 @@ func innerConnect(ctx context.Context, host string, port int, auth string, } } else { if configuration.TLSConfig != nil { - socket, err = thrift.NewTSSLSocketConf(addr, &thrift.TConfiguration{ + socket = thrift.NewTSSLSocketConf(addr, &thrift.TConfiguration{ ConnectTimeout: configuration.ConnectTimeout, SocketTimeout: configuration.SocketTimeout, TLSConfig: configuration.TLSConfig, }) } else { - socket, err = thrift.NewTSocketConf(addr, &thrift.TConfiguration{ + socket = thrift.NewTSocketConf(addr, &thrift.TConfiguration{ ConnectTimeout: configuration.ConnectTimeout, SocketTimeout: configuration.SocketTimeout, }) } - if err != nil { - return - } if err = socket.Open(); err != nil { return } diff --git a/hiveserver/GoUnusedProtection__.go b/hiveserver/GoUnusedProtection__.go index 3853c5d..ceb28cc 100644 --- a/hiveserver/GoUnusedProtection__.go +++ b/hiveserver/GoUnusedProtection__.go @@ -1,4 +1,4 @@ -// Code generated by Thrift Compiler (0.14.0). DO NOT EDIT. +// Code generated by Thrift Compiler (0.18.1). DO NOT EDIT. package hiveserver diff --git a/hiveserver/HiveServer-consts.go b/hiveserver/HiveServer-consts.go index 1a14349..a56eae8 100644 --- a/hiveserver/HiveServer-consts.go +++ b/hiveserver/HiveServer-consts.go @@ -1,21 +1,28 @@ -// Code generated by Thrift Compiler (0.14.0). DO NOT EDIT. +// Code generated by Thrift Compiler (0.18.1). DO NOT EDIT. package hiveserver -import( +import ( "bytes" "context" + "errors" "fmt" "time" - "github.com/apache/thrift/lib/go/thrift" + thrift "github.com/apache/thrift/lib/go/thrift" + "strings" + "regexp" ) // (needed to ensure safety because of naive import list construction.) var _ = thrift.ZERO var _ = fmt.Printf +var _ = errors.New var _ = context.Background var _ = time.Now var _ = bytes.Equal +// (needed by validator.) +var _ = strings.Contains +var _ = regexp.MatchString var PRIMITIVE_TYPES []TTypeId var COMPLEX_TYPES []TTypeId @@ -27,37 +34,37 @@ const SCALE = "scale" func init() { PRIMITIVE_TYPES = []TTypeId{ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16, 17, 18, 19, 20, 21, 22, } + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16, 17, 18, 19, 20, 21, 22, } COMPLEX_TYPES = []TTypeId{ - 10, 11, 12, 13, 14, } + 10, 11, 12, 13, 14, } COLLECTION_TYPES = []TTypeId{ - 10, 11, } + 10, 11, } TYPE_NAMES = map[TTypeId]string{ - 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", + 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", } } diff --git a/hiveserver/HiveServer.go b/hiveserver/HiveServer.go index 2f722d3..a0565e5 100644 --- a/hiveserver/HiveServer.go +++ b/hiveserver/HiveServer.go @@ -1,23 +1,29 @@ -// Code generated by Thrift Compiler (0.14.0). DO NOT EDIT. +// Code generated by Thrift Compiler (0.18.1). DO NOT EDIT. package hiveserver -import( +import ( "bytes" "context" "database/sql/driver" "errors" "fmt" "time" - "github.com/apache/thrift/lib/go/thrift" + thrift "github.com/apache/thrift/lib/go/thrift" + "strings" + "regexp" ) // (needed to ensure safety because of naive import list construction.) var _ = thrift.ZERO var _ = fmt.Printf +var _ = errors.New var _ = context.Background var _ = time.Now var _ = bytes.Equal +// (needed by validator.) +var _ = strings.Contains +var _ = regexp.MatchString type TProtocolVersion int64 const ( @@ -867,7 +873,7 @@ func (p *TTypeQualifierValue) ReadField2(ctx context.Context, iprot thrift.TPro func (p *TTypeQualifierValue) Write(ctx context.Context, oprot thrift.TProtocol) error { if c := p.CountSetFieldsTTypeQualifierValue(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set).", p, c) + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) } if err := oprot.WriteStructBegin(ctx, "TTypeQualifierValue"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -934,6 +940,9 @@ func (p *TTypeQualifierValue) String() string { return fmt.Sprintf("TTypeQualifierValue(%+v)", *p) } +func (p *TTypeQualifierValue) Validate() error { + return nil +} // Attributes: // - Qualifiers type TTypeQualifiers struct { @@ -1072,6 +1081,9 @@ func (p *TTypeQualifiers) String() string { return fmt.Sprintf("TTypeQualifiers(%+v)", *p) } +func (p *TTypeQualifiers) Validate() error { + return nil +} // Attributes: // - Type // - TypeQualifiers @@ -1225,6 +1237,9 @@ func (p *TPrimitiveTypeEntry) String() string { return fmt.Sprintf("TPrimitiveTypeEntry(%+v)", *p) } +func (p *TPrimitiveTypeEntry) Validate() error { + return nil +} // Attributes: // - ObjectTypePtr type TArrayTypeEntry struct { @@ -1332,6 +1347,9 @@ func (p *TArrayTypeEntry) String() string { return fmt.Sprintf("TArrayTypeEntry(%+v)", *p) } +func (p *TArrayTypeEntry) Validate() error { + return nil +} // Attributes: // - KeyTypePtr // - ValueTypePtr @@ -1482,6 +1500,9 @@ func (p *TMapTypeEntry) String() string { return fmt.Sprintf("TMapTypeEntry(%+v)", *p) } +func (p *TMapTypeEntry) Validate() error { + return nil +} // Attributes: // - NameToTypePtr type TStructTypeEntry struct { @@ -1622,6 +1643,9 @@ func (p *TStructTypeEntry) String() string { return fmt.Sprintf("TStructTypeEntry(%+v)", *p) } +func (p *TStructTypeEntry) Validate() error { + return nil +} // Attributes: // - NameToTypePtr type TUnionTypeEntry struct { @@ -1762,6 +1786,9 @@ func (p *TUnionTypeEntry) String() string { return fmt.Sprintf("TUnionTypeEntry(%+v)", *p) } +func (p *TUnionTypeEntry) Validate() error { + return nil +} // Attributes: // - TypeClassName type TUserDefinedTypeEntry struct { @@ -1868,6 +1895,9 @@ func (p *TUserDefinedTypeEntry) String() string { return fmt.Sprintf("TUserDefinedTypeEntry(%+v)", *p) } +func (p *TUserDefinedTypeEntry) Validate() error { + return nil +} // Attributes: // - PrimitiveEntry // - ArrayEntry @@ -2116,7 +2146,7 @@ func (p *TTypeEntry) ReadField6(ctx context.Context, iprot thrift.TProtocol) er func (p *TTypeEntry) Write(ctx context.Context, oprot thrift.TProtocol) error { if c := p.CountSetFieldsTTypeEntry(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set).", p, c) + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) } if err := oprot.WriteStructBegin(ctx, "TTypeEntry"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -2235,6 +2265,9 @@ func (p *TTypeEntry) String() string { return fmt.Sprintf("TTypeEntry(%+v)", *p) } +func (p *TTypeEntry) Validate() error { + return nil +} // Attributes: // - Types type TTypeDesc struct { @@ -2365,6 +2398,9 @@ func (p *TTypeDesc) String() string { return fmt.Sprintf("TTypeDesc(%+v)", *p) } +func (p *TTypeDesc) Validate() error { + return nil +} // Attributes: // - ColumnName // - TypeDesc @@ -2613,6 +2649,9 @@ func (p *TColumnDesc) String() string { return fmt.Sprintf("TColumnDesc(%+v)", *p) } +func (p *TColumnDesc) Validate() error { + return nil +} // Attributes: // - Columns type TTableSchema struct { @@ -2743,6 +2782,9 @@ func (p *TTableSchema) String() string { return fmt.Sprintf("TTableSchema(%+v)", *p) } +func (p *TTableSchema) Validate() error { + return nil +} // Attributes: // - Value type TBoolValue struct { @@ -2858,6 +2900,9 @@ func (p *TBoolValue) String() string { return fmt.Sprintf("TBoolValue(%+v)", *p) } +func (p *TBoolValue) Validate() error { + return nil +} // Attributes: // - Value type TByteValue struct { @@ -2974,6 +3019,9 @@ func (p *TByteValue) String() string { return fmt.Sprintf("TByteValue(%+v)", *p) } +func (p *TByteValue) Validate() error { + return nil +} // Attributes: // - Value type TI16Value struct { @@ -3089,6 +3137,9 @@ func (p *TI16Value) String() string { return fmt.Sprintf("TI16Value(%+v)", *p) } +func (p *TI16Value) Validate() error { + return nil +} // Attributes: // - Value type TI32Value struct { @@ -3204,6 +3255,9 @@ func (p *TI32Value) String() string { return fmt.Sprintf("TI32Value(%+v)", *p) } +func (p *TI32Value) Validate() error { + return nil +} // Attributes: // - Value type TI64Value struct { @@ -3319,6 +3373,9 @@ func (p *TI64Value) String() string { return fmt.Sprintf("TI64Value(%+v)", *p) } +func (p *TI64Value) Validate() error { + return nil +} // Attributes: // - Value type TDoubleValue struct { @@ -3434,6 +3491,9 @@ func (p *TDoubleValue) String() string { return fmt.Sprintf("TDoubleValue(%+v)", *p) } +func (p *TDoubleValue) Validate() error { + return nil +} // Attributes: // - Value type TStringValue struct { @@ -3549,6 +3609,9 @@ func (p *TStringValue) String() string { return fmt.Sprintf("TStringValue(%+v)", *p) } +func (p *TStringValue) Validate() error { + return nil +} // Attributes: // - BoolVal // - ByteVal @@ -3831,7 +3894,7 @@ func (p *TColumnValue) ReadField7(ctx context.Context, iprot thrift.TProtocol) func (p *TColumnValue) Write(ctx context.Context, oprot thrift.TProtocol) error { if c := p.CountSetFieldsTColumnValue(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set).", p, c) + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) } if err := oprot.WriteStructBegin(ctx, "TColumnValue"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -3965,6 +4028,9 @@ func (p *TColumnValue) String() string { return fmt.Sprintf("TColumnValue(%+v)", *p) } +func (p *TColumnValue) Validate() error { + return nil +} // Attributes: // - ColVals type TRow struct { @@ -4095,6 +4161,9 @@ func (p *TRow) String() string { return fmt.Sprintf("TRow(%+v)", *p) } +func (p *TRow) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -4268,6 +4337,9 @@ func (p *TBoolColumn) String() string { return fmt.Sprintf("TBoolColumn(%+v)", *p) } +func (p *TBoolColumn) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -4442,6 +4514,9 @@ func (p *TByteColumn) String() string { return fmt.Sprintf("TByteColumn(%+v)", *p) } +func (p *TByteColumn) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -4615,6 +4690,9 @@ func (p *TI16Column) String() string { return fmt.Sprintf("TI16Column(%+v)", *p) } +func (p *TI16Column) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -4788,6 +4866,9 @@ func (p *TI32Column) String() string { return fmt.Sprintf("TI32Column(%+v)", *p) } +func (p *TI32Column) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -4961,6 +5042,9 @@ func (p *TI64Column) String() string { return fmt.Sprintf("TI64Column(%+v)", *p) } +func (p *TI64Column) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -5134,6 +5218,9 @@ func (p *TDoubleColumn) String() string { return fmt.Sprintf("TDoubleColumn(%+v)", *p) } +func (p *TDoubleColumn) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -5307,6 +5394,9 @@ func (p *TStringColumn) String() string { return fmt.Sprintf("TStringColumn(%+v)", *p) } +func (p *TStringColumn) Validate() error { + return nil +} // Attributes: // - Values // - Nulls @@ -5480,6 +5570,9 @@ func (p *TBinaryColumn) String() string { return fmt.Sprintf("TBinaryColumn(%+v)", *p) } +func (p *TBinaryColumn) Validate() error { + return nil +} // Attributes: // - BoolVal // - ByteVal @@ -5796,7 +5889,7 @@ func (p *TColumn) ReadField8(ctx context.Context, iprot thrift.TProtocol) error func (p *TColumn) Write(ctx context.Context, oprot thrift.TProtocol) error { if c := p.CountSetFieldsTColumn(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set).", p, c) + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) } if err := oprot.WriteStructBegin(ctx, "TColumn"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -5945,6 +6038,9 @@ func (p *TColumn) String() string { return fmt.Sprintf("TColumn(%+v)", *p) } +func (p *TColumn) Validate() error { + return nil +} // Attributes: // - StartRowOffset // - Rows @@ -6280,6 +6376,9 @@ func (p *TRowSet) String() string { return fmt.Sprintf("TRowSet(%+v)", *p) } +func (p *TRowSet) Validate() error { + return nil +} // Attributes: // - StatusCode // - InfoMessages @@ -6609,6 +6708,9 @@ func (p *TStatus) String() string { return fmt.Sprintf("TStatus(%+v)", *p) } +func (p *TStatus) Validate() error { + return nil +} // Attributes: // - GUID // - Secret @@ -6757,6 +6859,9 @@ func (p *THandleIdentifier) String() string { return fmt.Sprintf("THandleIdentifier(%+v)", *p) } +func (p *THandleIdentifier) Validate() error { + return nil +} // Attributes: // - SessionId type TSessionHandle struct { @@ -6870,6 +6975,9 @@ func (p *TSessionHandle) String() string { return fmt.Sprintf("TSessionHandle(%+v)", *p) } +func (p *TSessionHandle) Validate() error { + return nil +} // Attributes: // - OperationId // - OperationType @@ -7119,6 +7227,9 @@ func (p *TOperationHandle) String() string { return fmt.Sprintf("TOperationHandle(%+v)", *p) } +func (p *TOperationHandle) Validate() error { + return nil +} // Attributes: // - ClientProtocol // - Username @@ -7407,6 +7518,9 @@ func (p *TOpenSessionReq) String() string { return fmt.Sprintf("TOpenSessionReq(%+v)", *p) } +func (p *TOpenSessionReq) Validate() error { + return nil +} // Attributes: // - Status // - ServerProtocolVersion @@ -7688,6 +7802,9 @@ func (p *TOpenSessionResp) String() string { return fmt.Sprintf("TOpenSessionResp(%+v)", *p) } +func (p *TOpenSessionResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - Configuration @@ -7878,6 +7995,9 @@ func (p *TSetClientInfoReq) String() string { return fmt.Sprintf("TSetClientInfoReq(%+v)", *p) } +func (p *TSetClientInfoReq) Validate() error { + return nil +} // Attributes: // - Status type TSetClientInfoResp struct { @@ -7991,6 +8111,9 @@ func (p *TSetClientInfoResp) String() string { return fmt.Sprintf("TSetClientInfoResp(%+v)", *p) } +func (p *TSetClientInfoResp) Validate() error { + return nil +} // Attributes: // - SessionHandle type TCloseSessionReq struct { @@ -8104,6 +8227,9 @@ func (p *TCloseSessionReq) String() string { return fmt.Sprintf("TCloseSessionReq(%+v)", *p) } +func (p *TCloseSessionReq) Validate() error { + return nil +} // Attributes: // - Status type TCloseSessionResp struct { @@ -8217,6 +8343,9 @@ func (p *TCloseSessionResp) String() string { return fmt.Sprintf("TCloseSessionResp(%+v)", *p) } +func (p *TCloseSessionResp) Validate() error { + return nil +} // Attributes: // - StringValue // - SmallIntValue @@ -8471,7 +8600,7 @@ func (p *TGetInfoValue) ReadField6(ctx context.Context, iprot thrift.TProtocol) func (p *TGetInfoValue) Write(ctx context.Context, oprot thrift.TProtocol) error { if c := p.CountSetFieldsTGetInfoValue(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set).", p, c) + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) } if err := oprot.WriteStructBegin(ctx, "TGetInfoValue"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -8614,6 +8743,9 @@ func (p *TGetInfoValue) String() string { return fmt.Sprintf("TGetInfoValue(%+v)", *p) } +func (p *TGetInfoValue) Validate() error { + return nil +} // Attributes: // - SessionHandle // - InfoType @@ -8770,6 +8902,9 @@ func (p *TGetInfoReq) String() string { return fmt.Sprintf("TGetInfoReq(%+v)", *p) } +func (p *TGetInfoReq) Validate() error { + return nil +} // Attributes: // - Status // - InfoValue @@ -8932,6 +9067,9 @@ func (p *TGetInfoResp) String() string { return fmt.Sprintf("TGetInfoResp(%+v)", *p) } +func (p *TGetInfoResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - Statement @@ -9252,6 +9390,9 @@ func (p *TExecuteStatementReq) String() string { return fmt.Sprintf("TExecuteStatementReq(%+v)", *p) } +func (p *TExecuteStatementReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -9411,6 +9552,9 @@ func (p *TExecuteStatementResp) String() string { return fmt.Sprintf("TExecuteStatementResp(%+v)", *p) } +func (p *TExecuteStatementResp) Validate() error { + return nil +} // Attributes: // - SessionHandle type TGetTypeInfoReq struct { @@ -9524,6 +9668,9 @@ func (p *TGetTypeInfoReq) String() string { return fmt.Sprintf("TGetTypeInfoReq(%+v)", *p) } +func (p *TGetTypeInfoReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -9683,6 +9830,9 @@ func (p *TGetTypeInfoResp) String() string { return fmt.Sprintf("TGetTypeInfoResp(%+v)", *p) } +func (p *TGetTypeInfoResp) Validate() error { + return nil +} // Attributes: // - SessionHandle type TGetCatalogsReq struct { @@ -9796,6 +9946,9 @@ func (p *TGetCatalogsReq) String() string { return fmt.Sprintf("TGetCatalogsReq(%+v)", *p) } +func (p *TGetCatalogsReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -9955,6 +10108,9 @@ func (p *TGetCatalogsResp) String() string { return fmt.Sprintf("TGetCatalogsResp(%+v)", *p) } +func (p *TGetCatalogsResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - CatalogName @@ -10172,6 +10328,9 @@ func (p *TGetSchemasReq) String() string { return fmt.Sprintf("TGetSchemasReq(%+v)", *p) } +func (p *TGetSchemasReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -10331,6 +10490,9 @@ func (p *TGetSchemasResp) String() string { return fmt.Sprintf("TGetSchemasResp(%+v)", *p) } +func (p *TGetSchemasResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - CatalogName @@ -10669,6 +10831,9 @@ func (p *TGetTablesReq) String() string { return fmt.Sprintf("TGetTablesReq(%+v)", *p) } +func (p *TGetTablesReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -10828,6 +10993,9 @@ func (p *TGetTablesResp) String() string { return fmt.Sprintf("TGetTablesResp(%+v)", *p) } +func (p *TGetTablesResp) Validate() error { + return nil +} // Attributes: // - SessionHandle type TGetTableTypesReq struct { @@ -10941,6 +11109,9 @@ func (p *TGetTableTypesReq) String() string { return fmt.Sprintf("TGetTableTypesReq(%+v)", *p) } +func (p *TGetTableTypesReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -11100,6 +11271,9 @@ func (p *TGetTableTypesResp) String() string { return fmt.Sprintf("TGetTableTypesResp(%+v)", *p) } +func (p *TGetTableTypesResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - CatalogName @@ -11421,6 +11595,9 @@ func (p *TGetColumnsReq) String() string { return fmt.Sprintf("TGetColumnsReq(%+v)", *p) } +func (p *TGetColumnsReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -11580,6 +11757,9 @@ func (p *TGetColumnsResp) String() string { return fmt.Sprintf("TGetColumnsResp(%+v)", *p) } +func (p *TGetColumnsResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - CatalogName @@ -11840,6 +12020,9 @@ func (p *TGetFunctionsReq) String() string { return fmt.Sprintf("TGetFunctionsReq(%+v)", *p) } +func (p *TGetFunctionsReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -11999,6 +12182,9 @@ func (p *TGetFunctionsResp) String() string { return fmt.Sprintf("TGetFunctionsResp(%+v)", *p) } +func (p *TGetFunctionsResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - CatalogName @@ -12268,6 +12454,9 @@ func (p *TGetPrimaryKeysReq) String() string { return fmt.Sprintf("TGetPrimaryKeysReq(%+v)", *p) } +func (p *TGetPrimaryKeysReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -12427,6 +12616,9 @@ func (p *TGetPrimaryKeysResp) String() string { return fmt.Sprintf("TGetPrimaryKeysResp(%+v)", *p) } +func (p *TGetPrimaryKeysResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - ParentCatalogName @@ -12852,6 +13044,9 @@ func (p *TGetCrossReferenceReq) String() string { return fmt.Sprintf("TGetCrossReferenceReq(%+v)", *p) } +func (p *TGetCrossReferenceReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationHandle @@ -13011,6 +13206,9 @@ func (p *TGetCrossReferenceResp) String() string { return fmt.Sprintf("TGetCrossReferenceResp(%+v)", *p) } +func (p *TGetCrossReferenceResp) Validate() error { + return nil +} // Attributes: // - OperationHandle // - GetProgressUpdate @@ -13175,6 +13373,9 @@ func (p *TGetOperationStatusReq) String() string { return fmt.Sprintf("TGetOperationStatusReq(%+v)", *p) } +func (p *TGetOperationStatusReq) Validate() error { + return nil +} // Attributes: // - Status // - OperationState @@ -13794,6 +13995,9 @@ func (p *TGetOperationStatusResp) String() string { return fmt.Sprintf("TGetOperationStatusResp(%+v)", *p) } +func (p *TGetOperationStatusResp) Validate() error { + return nil +} // Attributes: // - OperationHandle type TCancelOperationReq struct { @@ -13907,6 +14111,9 @@ func (p *TCancelOperationReq) String() string { return fmt.Sprintf("TCancelOperationReq(%+v)", *p) } +func (p *TCancelOperationReq) Validate() error { + return nil +} // Attributes: // - Status type TCancelOperationResp struct { @@ -14020,6 +14227,9 @@ func (p *TCancelOperationResp) String() string { return fmt.Sprintf("TCancelOperationResp(%+v)", *p) } +func (p *TCancelOperationResp) Validate() error { + return nil +} // Attributes: // - OperationHandle type TCloseOperationReq struct { @@ -14133,6 +14343,9 @@ func (p *TCloseOperationReq) String() string { return fmt.Sprintf("TCloseOperationReq(%+v)", *p) } +func (p *TCloseOperationReq) Validate() error { + return nil +} // Attributes: // - Status type TCloseOperationResp struct { @@ -14246,6 +14459,9 @@ func (p *TCloseOperationResp) String() string { return fmt.Sprintf("TCloseOperationResp(%+v)", *p) } +func (p *TCloseOperationResp) Validate() error { + return nil +} // Attributes: // - OperationHandle type TGetResultSetMetadataReq struct { @@ -14359,6 +14575,9 @@ func (p *TGetResultSetMetadataReq) String() string { return fmt.Sprintf("TGetResultSetMetadataReq(%+v)", *p) } +func (p *TGetResultSetMetadataReq) Validate() error { + return nil +} // Attributes: // - Status // - Schema @@ -14518,6 +14737,9 @@ func (p *TGetResultSetMetadataResp) String() string { return fmt.Sprintf("TGetResultSetMetadataResp(%+v)", *p) } +func (p *TGetResultSetMetadataResp) Validate() error { + return nil +} // Attributes: // - OperationHandle // - Orientation @@ -14762,6 +14984,9 @@ func (p *TFetchResultsReq) String() string { return fmt.Sprintf("TFetchResultsReq(%+v)", *p) } +func (p *TFetchResultsReq) Validate() error { + return nil +} // Attributes: // - Status // - HasMoreRows @@ -14972,6 +15197,9 @@ func (p *TFetchResultsResp) String() string { return fmt.Sprintf("TFetchResultsResp(%+v)", *p) } +func (p *TFetchResultsResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - Owner @@ -15169,6 +15397,9 @@ func (p *TGetDelegationTokenReq) String() string { return fmt.Sprintf("TGetDelegationTokenReq(%+v)", *p) } +func (p *TGetDelegationTokenReq) Validate() error { + return nil +} // Attributes: // - Status // - DelegationToken @@ -15333,6 +15564,9 @@ func (p *TGetDelegationTokenResp) String() string { return fmt.Sprintf("TGetDelegationTokenResp(%+v)", *p) } +func (p *TGetDelegationTokenResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - DelegationToken @@ -15488,6 +15722,9 @@ func (p *TCancelDelegationTokenReq) String() string { return fmt.Sprintf("TCancelDelegationTokenReq(%+v)", *p) } +func (p *TCancelDelegationTokenReq) Validate() error { + return nil +} // Attributes: // - Status type TCancelDelegationTokenResp struct { @@ -15601,6 +15838,9 @@ func (p *TCancelDelegationTokenResp) String() string { return fmt.Sprintf("TCancelDelegationTokenResp(%+v)", *p) } +func (p *TCancelDelegationTokenResp) Validate() error { + return nil +} // Attributes: // - SessionHandle // - DelegationToken @@ -15756,6 +15996,9 @@ func (p *TRenewDelegationTokenReq) String() string { return fmt.Sprintf("TRenewDelegationTokenReq(%+v)", *p) } +func (p *TRenewDelegationTokenReq) Validate() error { + return nil +} // Attributes: // - Status type TRenewDelegationTokenResp struct { @@ -15869,6 +16112,9 @@ func (p *TRenewDelegationTokenResp) String() string { return fmt.Sprintf("TRenewDelegationTokenResp(%+v)", *p) } +func (p *TRenewDelegationTokenResp) Validate() error { + return nil +} // Attributes: // - HeaderNames // - Rows @@ -16260,6 +16506,9 @@ func (p *TProgressUpdateResp) String() string { return fmt.Sprintf("TProgressUpdateResp(%+v)", *p) } +func (p *TProgressUpdateResp) Validate() error { + return nil +} // Attributes: // - OperationHandle type TGetQueryIdReq struct { @@ -16373,6 +16622,9 @@ func (p *TGetQueryIdReq) String() string { return fmt.Sprintf("TGetQueryIdReq(%+v)", *p) } +func (p *TGetQueryIdReq) Validate() error { + return nil +} // Attributes: // - QueryId type TGetQueryIdResp struct { @@ -16479,76 +16731,79 @@ func (p *TGetQueryIdResp) String() string { return fmt.Sprintf("TGetQueryIdResp(%+v)", *p) } +func (p *TGetQueryIdResp) Validate() error { + return nil +} type TCLIService interface { // Parameters: // - Req - OpenSession(ctx context.Context, req *TOpenSessionReq) (r *TOpenSessionResp, err error) + OpenSession(ctx context.Context, req *TOpenSessionReq) (_r *TOpenSessionResp, _err error) // Parameters: // - Req - CloseSession(ctx context.Context, req *TCloseSessionReq) (r *TCloseSessionResp, err error) + CloseSession(ctx context.Context, req *TCloseSessionReq) (_r *TCloseSessionResp, _err error) // Parameters: // - Req - GetInfo(ctx context.Context, req *TGetInfoReq) (r *TGetInfoResp, err error) + GetInfo(ctx context.Context, req *TGetInfoReq) (_r *TGetInfoResp, _err error) // Parameters: // - Req - ExecuteStatement(ctx context.Context, req *TExecuteStatementReq) (r *TExecuteStatementResp, err error) + ExecuteStatement(ctx context.Context, req *TExecuteStatementReq) (_r *TExecuteStatementResp, _err error) // Parameters: // - Req - GetTypeInfo(ctx context.Context, req *TGetTypeInfoReq) (r *TGetTypeInfoResp, err error) + GetTypeInfo(ctx context.Context, req *TGetTypeInfoReq) (_r *TGetTypeInfoResp, _err error) // Parameters: // - Req - GetCatalogs(ctx context.Context, req *TGetCatalogsReq) (r *TGetCatalogsResp, err error) + GetCatalogs(ctx context.Context, req *TGetCatalogsReq) (_r *TGetCatalogsResp, _err error) // Parameters: // - Req - GetSchemas(ctx context.Context, req *TGetSchemasReq) (r *TGetSchemasResp, err error) + GetSchemas(ctx context.Context, req *TGetSchemasReq) (_r *TGetSchemasResp, _err error) // Parameters: // - Req - GetTables(ctx context.Context, req *TGetTablesReq) (r *TGetTablesResp, err error) + GetTables(ctx context.Context, req *TGetTablesReq) (_r *TGetTablesResp, _err error) // Parameters: // - Req - GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (r *TGetTableTypesResp, err error) + GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (_r *TGetTableTypesResp, _err error) // Parameters: // - Req - GetColumns(ctx context.Context, req *TGetColumnsReq) (r *TGetColumnsResp, err error) + GetColumns(ctx context.Context, req *TGetColumnsReq) (_r *TGetColumnsResp, _err error) // Parameters: // - Req - GetFunctions(ctx context.Context, req *TGetFunctionsReq) (r *TGetFunctionsResp, err error) + GetFunctions(ctx context.Context, req *TGetFunctionsReq) (_r *TGetFunctionsResp, _err error) // Parameters: // - Req - GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (r *TGetPrimaryKeysResp, err error) + GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (_r *TGetPrimaryKeysResp, _err error) // Parameters: // - Req - GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (r *TGetCrossReferenceResp, err error) + GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (_r *TGetCrossReferenceResp, _err error) // Parameters: // - Req - GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (r *TGetOperationStatusResp, err error) + GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (_r *TGetOperationStatusResp, _err error) // Parameters: // - Req - CancelOperation(ctx context.Context, req *TCancelOperationReq) (r *TCancelOperationResp, err error) + CancelOperation(ctx context.Context, req *TCancelOperationReq) (_r *TCancelOperationResp, _err error) // Parameters: // - Req - CloseOperation(ctx context.Context, req *TCloseOperationReq) (r *TCloseOperationResp, err error) + CloseOperation(ctx context.Context, req *TCloseOperationReq) (_r *TCloseOperationResp, _err error) // Parameters: // - Req - GetResultSetMetadata(ctx context.Context, req *TGetResultSetMetadataReq) (r *TGetResultSetMetadataResp, err error) + GetResultSetMetadata(ctx context.Context, req *TGetResultSetMetadataReq) (_r *TGetResultSetMetadataResp, _err error) // Parameters: // - Req - FetchResults(ctx context.Context, req *TFetchResultsReq) (r *TFetchResultsResp, err error) + FetchResults(ctx context.Context, req *TFetchResultsReq) (_r *TFetchResultsResp, _err error) // Parameters: // - Req - GetDelegationToken(ctx context.Context, req *TGetDelegationTokenReq) (r *TGetDelegationTokenResp, err error) + GetDelegationToken(ctx context.Context, req *TGetDelegationTokenReq) (_r *TGetDelegationTokenResp, _err error) // Parameters: // - Req - CancelDelegationToken(ctx context.Context, req *TCancelDelegationTokenReq) (r *TCancelDelegationTokenResp, err error) + CancelDelegationToken(ctx context.Context, req *TCancelDelegationTokenReq) (_r *TCancelDelegationTokenResp, _err error) // Parameters: // - Req - RenewDelegationToken(ctx context.Context, req *TRenewDelegationTokenReq) (r *TRenewDelegationTokenResp, err error) + RenewDelegationToken(ctx context.Context, req *TRenewDelegationTokenReq) (_r *TRenewDelegationTokenResp, _err error) // Parameters: // - Req - GetQueryId(ctx context.Context, req *TGetQueryIdReq) (r *TGetQueryIdResp, err error) + GetQueryId(ctx context.Context, req *TGetQueryIdReq) (_r *TGetQueryIdResp, _err error) // Parameters: // - Req - SetClientInfo(ctx context.Context, req *TSetClientInfoReq) (r *TSetClientInfoResp, err error) + SetClientInfo(ctx context.Context, req *TSetClientInfoReq) (_r *TSetClientInfoResp, _err error) } type TCLIServiceClient struct { @@ -16588,347 +16843,416 @@ func (p *TCLIServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta) { // Parameters: // - Req -func (p *TCLIServiceClient) OpenSession(ctx context.Context, req *TOpenSessionReq) (r *TOpenSessionResp, err error) { +func (p *TCLIServiceClient) OpenSession(ctx context.Context, req *TOpenSessionReq) (_r *TOpenSessionResp, _err error) { var _args57 TCLIServiceOpenSessionArgs _args57.Req = req - var _result58 TCLIServiceOpenSessionResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "OpenSession", &_args57, &_result58) - p.SetLastResponseMeta_(meta) - if err != nil { + var _result59 TCLIServiceOpenSessionResult + var _meta58 thrift.ResponseMeta + _meta58, _err = p.Client_().Call(ctx, "OpenSession", &_args57, &_result59) + p.SetLastResponseMeta_(_meta58) + if _err != nil { return } - return _result58.GetSuccess(), nil + if _ret60 := _result59.GetSuccess(); _ret60 != nil { + return _ret60, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "OpenSession failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CloseSession(ctx context.Context, req *TCloseSessionReq) (r *TCloseSessionResp, err error) { - var _args59 TCLIServiceCloseSessionArgs - _args59.Req = req - var _result60 TCLIServiceCloseSessionResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "CloseSession", &_args59, &_result60) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) CloseSession(ctx context.Context, req *TCloseSessionReq) (_r *TCloseSessionResp, _err error) { + var _args61 TCLIServiceCloseSessionArgs + _args61.Req = req + var _result63 TCLIServiceCloseSessionResult + var _meta62 thrift.ResponseMeta + _meta62, _err = p.Client_().Call(ctx, "CloseSession", &_args61, &_result63) + p.SetLastResponseMeta_(_meta62) + if _err != nil { return } - return _result60.GetSuccess(), nil + if _ret64 := _result63.GetSuccess(); _ret64 != nil { + return _ret64, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CloseSession failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetInfo(ctx context.Context, req *TGetInfoReq) (r *TGetInfoResp, err error) { - var _args61 TCLIServiceGetInfoArgs - _args61.Req = req - var _result62 TCLIServiceGetInfoResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetInfo", &_args61, &_result62) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetInfo(ctx context.Context, req *TGetInfoReq) (_r *TGetInfoResp, _err error) { + var _args65 TCLIServiceGetInfoArgs + _args65.Req = req + var _result67 TCLIServiceGetInfoResult + var _meta66 thrift.ResponseMeta + _meta66, _err = p.Client_().Call(ctx, "GetInfo", &_args65, &_result67) + p.SetLastResponseMeta_(_meta66) + if _err != nil { return } - return _result62.GetSuccess(), nil + if _ret68 := _result67.GetSuccess(); _ret68 != nil { + return _ret68, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetInfo failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) ExecuteStatement(ctx context.Context, req *TExecuteStatementReq) (r *TExecuteStatementResp, err error) { - var _args63 TCLIServiceExecuteStatementArgs - _args63.Req = req - var _result64 TCLIServiceExecuteStatementResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "ExecuteStatement", &_args63, &_result64) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) ExecuteStatement(ctx context.Context, req *TExecuteStatementReq) (_r *TExecuteStatementResp, _err error) { + var _args69 TCLIServiceExecuteStatementArgs + _args69.Req = req + var _result71 TCLIServiceExecuteStatementResult + var _meta70 thrift.ResponseMeta + _meta70, _err = p.Client_().Call(ctx, "ExecuteStatement", &_args69, &_result71) + p.SetLastResponseMeta_(_meta70) + if _err != nil { return } - return _result64.GetSuccess(), nil + if _ret72 := _result71.GetSuccess(); _ret72 != nil { + return _ret72, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "ExecuteStatement failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTypeInfo(ctx context.Context, req *TGetTypeInfoReq) (r *TGetTypeInfoResp, err error) { - var _args65 TCLIServiceGetTypeInfoArgs - _args65.Req = req - var _result66 TCLIServiceGetTypeInfoResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetTypeInfo", &_args65, &_result66) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetTypeInfo(ctx context.Context, req *TGetTypeInfoReq) (_r *TGetTypeInfoResp, _err error) { + var _args73 TCLIServiceGetTypeInfoArgs + _args73.Req = req + var _result75 TCLIServiceGetTypeInfoResult + var _meta74 thrift.ResponseMeta + _meta74, _err = p.Client_().Call(ctx, "GetTypeInfo", &_args73, &_result75) + p.SetLastResponseMeta_(_meta74) + if _err != nil { return } - return _result66.GetSuccess(), nil + if _ret76 := _result75.GetSuccess(); _ret76 != nil { + return _ret76, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTypeInfo failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetCatalogs(ctx context.Context, req *TGetCatalogsReq) (r *TGetCatalogsResp, err error) { - var _args67 TCLIServiceGetCatalogsArgs - _args67.Req = req - var _result68 TCLIServiceGetCatalogsResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetCatalogs", &_args67, &_result68) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetCatalogs(ctx context.Context, req *TGetCatalogsReq) (_r *TGetCatalogsResp, _err error) { + var _args77 TCLIServiceGetCatalogsArgs + _args77.Req = req + var _result79 TCLIServiceGetCatalogsResult + var _meta78 thrift.ResponseMeta + _meta78, _err = p.Client_().Call(ctx, "GetCatalogs", &_args77, &_result79) + p.SetLastResponseMeta_(_meta78) + if _err != nil { return } - return _result68.GetSuccess(), nil + if _ret80 := _result79.GetSuccess(); _ret80 != nil { + return _ret80, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCatalogs failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetSchemas(ctx context.Context, req *TGetSchemasReq) (r *TGetSchemasResp, err error) { - var _args69 TCLIServiceGetSchemasArgs - _args69.Req = req - var _result70 TCLIServiceGetSchemasResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetSchemas", &_args69, &_result70) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetSchemas(ctx context.Context, req *TGetSchemasReq) (_r *TGetSchemasResp, _err error) { + var _args81 TCLIServiceGetSchemasArgs + _args81.Req = req + var _result83 TCLIServiceGetSchemasResult + var _meta82 thrift.ResponseMeta + _meta82, _err = p.Client_().Call(ctx, "GetSchemas", &_args81, &_result83) + p.SetLastResponseMeta_(_meta82) + if _err != nil { return } - return _result70.GetSuccess(), nil + if _ret84 := _result83.GetSuccess(); _ret84 != nil { + return _ret84, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetSchemas failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTables(ctx context.Context, req *TGetTablesReq) (r *TGetTablesResp, err error) { - var _args71 TCLIServiceGetTablesArgs - _args71.Req = req - var _result72 TCLIServiceGetTablesResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetTables", &_args71, &_result72) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetTables(ctx context.Context, req *TGetTablesReq) (_r *TGetTablesResp, _err error) { + var _args85 TCLIServiceGetTablesArgs + _args85.Req = req + var _result87 TCLIServiceGetTablesResult + var _meta86 thrift.ResponseMeta + _meta86, _err = p.Client_().Call(ctx, "GetTables", &_args85, &_result87) + p.SetLastResponseMeta_(_meta86) + if _err != nil { return } - return _result72.GetSuccess(), nil + if _ret88 := _result87.GetSuccess(); _ret88 != nil { + return _ret88, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTables failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (r *TGetTableTypesResp, err error) { - var _args73 TCLIServiceGetTableTypesArgs - _args73.Req = req - var _result74 TCLIServiceGetTableTypesResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetTableTypes", &_args73, &_result74) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (_r *TGetTableTypesResp, _err error) { + var _args89 TCLIServiceGetTableTypesArgs + _args89.Req = req + var _result91 TCLIServiceGetTableTypesResult + var _meta90 thrift.ResponseMeta + _meta90, _err = p.Client_().Call(ctx, "GetTableTypes", &_args89, &_result91) + p.SetLastResponseMeta_(_meta90) + if _err != nil { return } - return _result74.GetSuccess(), nil + if _ret92 := _result91.GetSuccess(); _ret92 != nil { + return _ret92, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTableTypes failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetColumns(ctx context.Context, req *TGetColumnsReq) (r *TGetColumnsResp, err error) { - var _args75 TCLIServiceGetColumnsArgs - _args75.Req = req - var _result76 TCLIServiceGetColumnsResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetColumns", &_args75, &_result76) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetColumns(ctx context.Context, req *TGetColumnsReq) (_r *TGetColumnsResp, _err error) { + var _args93 TCLIServiceGetColumnsArgs + _args93.Req = req + var _result95 TCLIServiceGetColumnsResult + var _meta94 thrift.ResponseMeta + _meta94, _err = p.Client_().Call(ctx, "GetColumns", &_args93, &_result95) + p.SetLastResponseMeta_(_meta94) + if _err != nil { return } - return _result76.GetSuccess(), nil + if _ret96 := _result95.GetSuccess(); _ret96 != nil { + return _ret96, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetColumns failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetFunctions(ctx context.Context, req *TGetFunctionsReq) (r *TGetFunctionsResp, err error) { - var _args77 TCLIServiceGetFunctionsArgs - _args77.Req = req - var _result78 TCLIServiceGetFunctionsResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetFunctions", &_args77, &_result78) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetFunctions(ctx context.Context, req *TGetFunctionsReq) (_r *TGetFunctionsResp, _err error) { + var _args97 TCLIServiceGetFunctionsArgs + _args97.Req = req + var _result99 TCLIServiceGetFunctionsResult + var _meta98 thrift.ResponseMeta + _meta98, _err = p.Client_().Call(ctx, "GetFunctions", &_args97, &_result99) + p.SetLastResponseMeta_(_meta98) + if _err != nil { return } - return _result78.GetSuccess(), nil + if _ret100 := _result99.GetSuccess(); _ret100 != nil { + return _ret100, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetFunctions failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (r *TGetPrimaryKeysResp, err error) { - var _args79 TCLIServiceGetPrimaryKeysArgs - _args79.Req = req - var _result80 TCLIServiceGetPrimaryKeysResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetPrimaryKeys", &_args79, &_result80) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (_r *TGetPrimaryKeysResp, _err error) { + var _args101 TCLIServiceGetPrimaryKeysArgs + _args101.Req = req + var _result103 TCLIServiceGetPrimaryKeysResult + var _meta102 thrift.ResponseMeta + _meta102, _err = p.Client_().Call(ctx, "GetPrimaryKeys", &_args101, &_result103) + p.SetLastResponseMeta_(_meta102) + if _err != nil { return } - return _result80.GetSuccess(), nil + if _ret104 := _result103.GetSuccess(); _ret104 != nil { + return _ret104, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetPrimaryKeys failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (r *TGetCrossReferenceResp, err error) { - var _args81 TCLIServiceGetCrossReferenceArgs - _args81.Req = req - var _result82 TCLIServiceGetCrossReferenceResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetCrossReference", &_args81, &_result82) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (_r *TGetCrossReferenceResp, _err error) { + var _args105 TCLIServiceGetCrossReferenceArgs + _args105.Req = req + var _result107 TCLIServiceGetCrossReferenceResult + var _meta106 thrift.ResponseMeta + _meta106, _err = p.Client_().Call(ctx, "GetCrossReference", &_args105, &_result107) + p.SetLastResponseMeta_(_meta106) + if _err != nil { return } - return _result82.GetSuccess(), nil + if _ret108 := _result107.GetSuccess(); _ret108 != nil { + return _ret108, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCrossReference failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (r *TGetOperationStatusResp, err error) { - var _args83 TCLIServiceGetOperationStatusArgs - _args83.Req = req - var _result84 TCLIServiceGetOperationStatusResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetOperationStatus", &_args83, &_result84) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (_r *TGetOperationStatusResp, _err error) { + var _args109 TCLIServiceGetOperationStatusArgs + _args109.Req = req + var _result111 TCLIServiceGetOperationStatusResult + var _meta110 thrift.ResponseMeta + _meta110, _err = p.Client_().Call(ctx, "GetOperationStatus", &_args109, &_result111) + p.SetLastResponseMeta_(_meta110) + if _err != nil { return } - return _result84.GetSuccess(), nil + if _ret112 := _result111.GetSuccess(); _ret112 != nil { + return _ret112, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetOperationStatus failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CancelOperation(ctx context.Context, req *TCancelOperationReq) (r *TCancelOperationResp, err error) { - var _args85 TCLIServiceCancelOperationArgs - _args85.Req = req - var _result86 TCLIServiceCancelOperationResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "CancelOperation", &_args85, &_result86) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) CancelOperation(ctx context.Context, req *TCancelOperationReq) (_r *TCancelOperationResp, _err error) { + var _args113 TCLIServiceCancelOperationArgs + _args113.Req = req + var _result115 TCLIServiceCancelOperationResult + var _meta114 thrift.ResponseMeta + _meta114, _err = p.Client_().Call(ctx, "CancelOperation", &_args113, &_result115) + p.SetLastResponseMeta_(_meta114) + if _err != nil { return } - return _result86.GetSuccess(), nil + if _ret116 := _result115.GetSuccess(); _ret116 != nil { + return _ret116, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CancelOperation failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CloseOperation(ctx context.Context, req *TCloseOperationReq) (r *TCloseOperationResp, err error) { - var _args87 TCLIServiceCloseOperationArgs - _args87.Req = req - var _result88 TCLIServiceCloseOperationResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "CloseOperation", &_args87, &_result88) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) CloseOperation(ctx context.Context, req *TCloseOperationReq) (_r *TCloseOperationResp, _err error) { + var _args117 TCLIServiceCloseOperationArgs + _args117.Req = req + var _result119 TCLIServiceCloseOperationResult + var _meta118 thrift.ResponseMeta + _meta118, _err = p.Client_().Call(ctx, "CloseOperation", &_args117, &_result119) + p.SetLastResponseMeta_(_meta118) + if _err != nil { return } - return _result88.GetSuccess(), nil + if _ret120 := _result119.GetSuccess(); _ret120 != nil { + return _ret120, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CloseOperation failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetResultSetMetadata(ctx context.Context, req *TGetResultSetMetadataReq) (r *TGetResultSetMetadataResp, err error) { - var _args89 TCLIServiceGetResultSetMetadataArgs - _args89.Req = req - var _result90 TCLIServiceGetResultSetMetadataResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetResultSetMetadata", &_args89, &_result90) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetResultSetMetadata(ctx context.Context, req *TGetResultSetMetadataReq) (_r *TGetResultSetMetadataResp, _err error) { + var _args121 TCLIServiceGetResultSetMetadataArgs + _args121.Req = req + var _result123 TCLIServiceGetResultSetMetadataResult + var _meta122 thrift.ResponseMeta + _meta122, _err = p.Client_().Call(ctx, "GetResultSetMetadata", &_args121, &_result123) + p.SetLastResponseMeta_(_meta122) + if _err != nil { return } - return _result90.GetSuccess(), nil + if _ret124 := _result123.GetSuccess(); _ret124 != nil { + return _ret124, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetResultSetMetadata failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) FetchResults(ctx context.Context, req *TFetchResultsReq) (r *TFetchResultsResp, err error) { - var _args91 TCLIServiceFetchResultsArgs - _args91.Req = req - var _result92 TCLIServiceFetchResultsResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "FetchResults", &_args91, &_result92) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) FetchResults(ctx context.Context, req *TFetchResultsReq) (_r *TFetchResultsResp, _err error) { + var _args125 TCLIServiceFetchResultsArgs + _args125.Req = req + var _result127 TCLIServiceFetchResultsResult + var _meta126 thrift.ResponseMeta + _meta126, _err = p.Client_().Call(ctx, "FetchResults", &_args125, &_result127) + p.SetLastResponseMeta_(_meta126) + if _err != nil { return } - return _result92.GetSuccess(), nil + if _ret128 := _result127.GetSuccess(); _ret128 != nil { + return _ret128, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "FetchResults failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetDelegationToken(ctx context.Context, req *TGetDelegationTokenReq) (r *TGetDelegationTokenResp, err error) { - var _args93 TCLIServiceGetDelegationTokenArgs - _args93.Req = req - var _result94 TCLIServiceGetDelegationTokenResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetDelegationToken", &_args93, &_result94) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetDelegationToken(ctx context.Context, req *TGetDelegationTokenReq) (_r *TGetDelegationTokenResp, _err error) { + var _args129 TCLIServiceGetDelegationTokenArgs + _args129.Req = req + var _result131 TCLIServiceGetDelegationTokenResult + var _meta130 thrift.ResponseMeta + _meta130, _err = p.Client_().Call(ctx, "GetDelegationToken", &_args129, &_result131) + p.SetLastResponseMeta_(_meta130) + if _err != nil { return } - return _result94.GetSuccess(), nil + if _ret132 := _result131.GetSuccess(); _ret132 != nil { + return _ret132, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetDelegationToken failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CancelDelegationToken(ctx context.Context, req *TCancelDelegationTokenReq) (r *TCancelDelegationTokenResp, err error) { - var _args95 TCLIServiceCancelDelegationTokenArgs - _args95.Req = req - var _result96 TCLIServiceCancelDelegationTokenResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "CancelDelegationToken", &_args95, &_result96) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) CancelDelegationToken(ctx context.Context, req *TCancelDelegationTokenReq) (_r *TCancelDelegationTokenResp, _err error) { + var _args133 TCLIServiceCancelDelegationTokenArgs + _args133.Req = req + var _result135 TCLIServiceCancelDelegationTokenResult + var _meta134 thrift.ResponseMeta + _meta134, _err = p.Client_().Call(ctx, "CancelDelegationToken", &_args133, &_result135) + p.SetLastResponseMeta_(_meta134) + if _err != nil { return } - return _result96.GetSuccess(), nil + if _ret136 := _result135.GetSuccess(); _ret136 != nil { + return _ret136, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CancelDelegationToken failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) RenewDelegationToken(ctx context.Context, req *TRenewDelegationTokenReq) (r *TRenewDelegationTokenResp, err error) { - var _args97 TCLIServiceRenewDelegationTokenArgs - _args97.Req = req - var _result98 TCLIServiceRenewDelegationTokenResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "RenewDelegationToken", &_args97, &_result98) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) RenewDelegationToken(ctx context.Context, req *TRenewDelegationTokenReq) (_r *TRenewDelegationTokenResp, _err error) { + var _args137 TCLIServiceRenewDelegationTokenArgs + _args137.Req = req + var _result139 TCLIServiceRenewDelegationTokenResult + var _meta138 thrift.ResponseMeta + _meta138, _err = p.Client_().Call(ctx, "RenewDelegationToken", &_args137, &_result139) + p.SetLastResponseMeta_(_meta138) + if _err != nil { return } - return _result98.GetSuccess(), nil + if _ret140 := _result139.GetSuccess(); _ret140 != nil { + return _ret140, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "RenewDelegationToken failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetQueryId(ctx context.Context, req *TGetQueryIdReq) (r *TGetQueryIdResp, err error) { - var _args99 TCLIServiceGetQueryIdArgs - _args99.Req = req - var _result100 TCLIServiceGetQueryIdResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "GetQueryId", &_args99, &_result100) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) GetQueryId(ctx context.Context, req *TGetQueryIdReq) (_r *TGetQueryIdResp, _err error) { + var _args141 TCLIServiceGetQueryIdArgs + _args141.Req = req + var _result143 TCLIServiceGetQueryIdResult + var _meta142 thrift.ResponseMeta + _meta142, _err = p.Client_().Call(ctx, "GetQueryId", &_args141, &_result143) + p.SetLastResponseMeta_(_meta142) + if _err != nil { return } - return _result100.GetSuccess(), nil + if _ret144 := _result143.GetSuccess(); _ret144 != nil { + return _ret144, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetQueryId failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) SetClientInfo(ctx context.Context, req *TSetClientInfoReq) (r *TSetClientInfoResp, err error) { - var _args101 TCLIServiceSetClientInfoArgs - _args101.Req = req - var _result102 TCLIServiceSetClientInfoResult - var meta thrift.ResponseMeta - meta, err = p.Client_().Call(ctx, "SetClientInfo", &_args101, &_result102) - p.SetLastResponseMeta_(meta) - if err != nil { +func (p *TCLIServiceClient) SetClientInfo(ctx context.Context, req *TSetClientInfoReq) (_r *TSetClientInfoResp, _err error) { + var _args145 TCLIServiceSetClientInfoArgs + _args145.Req = req + var _result147 TCLIServiceSetClientInfoResult + var _meta146 thrift.ResponseMeta + _meta146, _err = p.Client_().Call(ctx, "SetClientInfo", &_args145, &_result147) + p.SetLastResponseMeta_(_meta146) + if _err != nil { return } - return _result102.GetSuccess(), nil + if _ret148 := _result147.GetSuccess(); _ret148 != nil { + return _ret148, nil + } + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "SetClientInfo failed: unknown result") } type TCLIServiceProcessor struct { @@ -16951,31 +17275,31 @@ func (p *TCLIServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFuncti func NewTCLIServiceProcessor(handler TCLIService) *TCLIServiceProcessor { - self103 := &TCLIServiceProcessor{handler:handler, processorMap:make(map[string]thrift.TProcessorFunction)} - self103.processorMap["OpenSession"] = &tCLIServiceProcessorOpenSession{handler:handler} - self103.processorMap["CloseSession"] = &tCLIServiceProcessorCloseSession{handler:handler} - self103.processorMap["GetInfo"] = &tCLIServiceProcessorGetInfo{handler:handler} - self103.processorMap["ExecuteStatement"] = &tCLIServiceProcessorExecuteStatement{handler:handler} - self103.processorMap["GetTypeInfo"] = &tCLIServiceProcessorGetTypeInfo{handler:handler} - self103.processorMap["GetCatalogs"] = &tCLIServiceProcessorGetCatalogs{handler:handler} - self103.processorMap["GetSchemas"] = &tCLIServiceProcessorGetSchemas{handler:handler} - self103.processorMap["GetTables"] = &tCLIServiceProcessorGetTables{handler:handler} - self103.processorMap["GetTableTypes"] = &tCLIServiceProcessorGetTableTypes{handler:handler} - self103.processorMap["GetColumns"] = &tCLIServiceProcessorGetColumns{handler:handler} - self103.processorMap["GetFunctions"] = &tCLIServiceProcessorGetFunctions{handler:handler} - self103.processorMap["GetPrimaryKeys"] = &tCLIServiceProcessorGetPrimaryKeys{handler:handler} - self103.processorMap["GetCrossReference"] = &tCLIServiceProcessorGetCrossReference{handler:handler} - self103.processorMap["GetOperationStatus"] = &tCLIServiceProcessorGetOperationStatus{handler:handler} - self103.processorMap["CancelOperation"] = &tCLIServiceProcessorCancelOperation{handler:handler} - self103.processorMap["CloseOperation"] = &tCLIServiceProcessorCloseOperation{handler:handler} - self103.processorMap["GetResultSetMetadata"] = &tCLIServiceProcessorGetResultSetMetadata{handler:handler} - self103.processorMap["FetchResults"] = &tCLIServiceProcessorFetchResults{handler:handler} - self103.processorMap["GetDelegationToken"] = &tCLIServiceProcessorGetDelegationToken{handler:handler} - self103.processorMap["CancelDelegationToken"] = &tCLIServiceProcessorCancelDelegationToken{handler:handler} - self103.processorMap["RenewDelegationToken"] = &tCLIServiceProcessorRenewDelegationToken{handler:handler} - self103.processorMap["GetQueryId"] = &tCLIServiceProcessorGetQueryId{handler:handler} - self103.processorMap["SetClientInfo"] = &tCLIServiceProcessorSetClientInfo{handler:handler} -return self103 + self149 := &TCLIServiceProcessor{handler:handler, processorMap:make(map[string]thrift.TProcessorFunction)} + self149.processorMap["OpenSession"] = &tCLIServiceProcessorOpenSession{handler:handler} + self149.processorMap["CloseSession"] = &tCLIServiceProcessorCloseSession{handler:handler} + self149.processorMap["GetInfo"] = &tCLIServiceProcessorGetInfo{handler:handler} + self149.processorMap["ExecuteStatement"] = &tCLIServiceProcessorExecuteStatement{handler:handler} + self149.processorMap["GetTypeInfo"] = &tCLIServiceProcessorGetTypeInfo{handler:handler} + self149.processorMap["GetCatalogs"] = &tCLIServiceProcessorGetCatalogs{handler:handler} + self149.processorMap["GetSchemas"] = &tCLIServiceProcessorGetSchemas{handler:handler} + self149.processorMap["GetTables"] = &tCLIServiceProcessorGetTables{handler:handler} + self149.processorMap["GetTableTypes"] = &tCLIServiceProcessorGetTableTypes{handler:handler} + self149.processorMap["GetColumns"] = &tCLIServiceProcessorGetColumns{handler:handler} + self149.processorMap["GetFunctions"] = &tCLIServiceProcessorGetFunctions{handler:handler} + self149.processorMap["GetPrimaryKeys"] = &tCLIServiceProcessorGetPrimaryKeys{handler:handler} + self149.processorMap["GetCrossReference"] = &tCLIServiceProcessorGetCrossReference{handler:handler} + self149.processorMap["GetOperationStatus"] = &tCLIServiceProcessorGetOperationStatus{handler:handler} + self149.processorMap["CancelOperation"] = &tCLIServiceProcessorCancelOperation{handler:handler} + self149.processorMap["CloseOperation"] = &tCLIServiceProcessorCloseOperation{handler:handler} + self149.processorMap["GetResultSetMetadata"] = &tCLIServiceProcessorGetResultSetMetadata{handler:handler} + self149.processorMap["FetchResults"] = &tCLIServiceProcessorFetchResults{handler:handler} + self149.processorMap["GetDelegationToken"] = &tCLIServiceProcessorGetDelegationToken{handler:handler} + self149.processorMap["CancelDelegationToken"] = &tCLIServiceProcessorCancelDelegationToken{handler:handler} + self149.processorMap["RenewDelegationToken"] = &tCLIServiceProcessorRenewDelegationToken{handler:handler} + self149.processorMap["GetQueryId"] = &tCLIServiceProcessorGetQueryId{handler:handler} + self149.processorMap["SetClientInfo"] = &tCLIServiceProcessorSetClientInfo{handler:handler} +return self149 } func (p *TCLIServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { @@ -16986,12 +17310,12 @@ func (p *TCLIServiceProcessor) Process(ctx context.Context, iprot, oprot thrift. } iprot.Skip(ctx, thrift.STRUCT) iprot.ReadMessageEnd(ctx) - x104 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function " + name) + x150 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function " + name) oprot.WriteMessageBegin(ctx, name, thrift.EXCEPTION, seqId) - x104.Write(ctx, oprot) + x150.Write(ctx, oprot) oprot.WriteMessageEnd(ctx) oprot.Flush(ctx) - return false, x104 + return false, x150 } @@ -17000,9 +17324,9 @@ type tCLIServiceProcessorOpenSession struct { } func (p *tCLIServiceProcessorOpenSession) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err151 error args := TCLIServiceOpenSessionArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "OpenSession", thrift.EXCEPTION, seqId) @@ -17040,36 +17364,47 @@ func (p *tCLIServiceProcessorOpenSession) Process(ctx context.Context, seqId int } result := TCLIServiceOpenSessionResult{} - var retval *TOpenSessionResp - if retval, err2 = p.handler.OpenSession(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.OpenSession(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing OpenSession: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "OpenSession", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc152 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing OpenSession: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "OpenSession", thrift.EXCEPTION, seqId); err2 != nil { + _write_err151 = thrift.WrapTException(err2) + } + if err2 := _exc152.Write(ctx, oprot); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) + } + if _write_err151 != nil { + return false, thrift.WrapTException(_write_err151) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "OpenSession", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "OpenSession", thrift.REPLY, seqId); err2 != nil { + _write_err151 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err151 == nil && err2 != nil { + _write_err151 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err151 != nil { + return false, thrift.WrapTException(_write_err151) } return true, err } @@ -17079,9 +17414,9 @@ type tCLIServiceProcessorCloseSession struct { } func (p *tCLIServiceProcessorCloseSession) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err153 error args := TCLIServiceCloseSessionArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "CloseSession", thrift.EXCEPTION, seqId) @@ -17119,36 +17454,47 @@ func (p *tCLIServiceProcessorCloseSession) Process(ctx context.Context, seqId in } result := TCLIServiceCloseSessionResult{} - var retval *TCloseSessionResp - if retval, err2 = p.handler.CloseSession(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.CloseSession(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseSession: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "CloseSession", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) - } else { + _exc154 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseSession: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "CloseSession", thrift.EXCEPTION, seqId); err2 != nil { + _write_err153 = thrift.WrapTException(err2) + } + if err2 := _exc154.Write(ctx, oprot); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) + } + if _write_err153 != nil { + return false, thrift.WrapTException(_write_err153) + } + return true, err + } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "CloseSession", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "CloseSession", thrift.REPLY, seqId); err2 != nil { + _write_err153 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err153 == nil && err2 != nil { + _write_err153 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err153 != nil { + return false, thrift.WrapTException(_write_err153) } return true, err } @@ -17158,9 +17504,9 @@ type tCLIServiceProcessorGetInfo struct { } func (p *tCLIServiceProcessorGetInfo) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err155 error args := TCLIServiceGetInfoArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetInfo", thrift.EXCEPTION, seqId) @@ -17198,36 +17544,47 @@ func (p *tCLIServiceProcessorGetInfo) Process(ctx context.Context, seqId int32, } result := TCLIServiceGetInfoResult{} - var retval *TGetInfoResp - if retval, err2 = p.handler.GetInfo(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetInfo(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetInfo: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetInfo", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc156 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetInfo: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetInfo", thrift.EXCEPTION, seqId); err2 != nil { + _write_err155 = thrift.WrapTException(err2) + } + if err2 := _exc156.Write(ctx, oprot); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) + } + if _write_err155 != nil { + return false, thrift.WrapTException(_write_err155) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetInfo", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetInfo", thrift.REPLY, seqId); err2 != nil { + _write_err155 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err155 == nil && err2 != nil { + _write_err155 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err155 != nil { + return false, thrift.WrapTException(_write_err155) } return true, err } @@ -17237,9 +17594,9 @@ type tCLIServiceProcessorExecuteStatement struct { } func (p *tCLIServiceProcessorExecuteStatement) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err157 error args := TCLIServiceExecuteStatementArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.EXCEPTION, seqId) @@ -17277,36 +17634,47 @@ func (p *tCLIServiceProcessorExecuteStatement) Process(ctx context.Context, seqI } result := TCLIServiceExecuteStatementResult{} - var retval *TExecuteStatementResp - if retval, err2 = p.handler.ExecuteStatement(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.ExecuteStatement(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing ExecuteStatement: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc158 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing ExecuteStatement: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.EXCEPTION, seqId); err2 != nil { + _write_err157 = thrift.WrapTException(err2) + } + if err2 := _exc158.Write(ctx, oprot); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) + } + if _write_err157 != nil { + return false, thrift.WrapTException(_write_err157) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.REPLY, seqId); err2 != nil { + _write_err157 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err157 == nil && err2 != nil { + _write_err157 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err157 != nil { + return false, thrift.WrapTException(_write_err157) } return true, err } @@ -17316,9 +17684,9 @@ type tCLIServiceProcessorGetTypeInfo struct { } func (p *tCLIServiceProcessorGetTypeInfo) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err159 error args := TCLIServiceGetTypeInfoArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.EXCEPTION, seqId) @@ -17356,36 +17724,47 @@ func (p *tCLIServiceProcessorGetTypeInfo) Process(ctx context.Context, seqId int } result := TCLIServiceGetTypeInfoResult{} - var retval *TGetTypeInfoResp - if retval, err2 = p.handler.GetTypeInfo(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetTypeInfo(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTypeInfo: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc160 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTypeInfo: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.EXCEPTION, seqId); err2 != nil { + _write_err159 = thrift.WrapTException(err2) + } + if err2 := _exc160.Write(ctx, oprot); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) + } + if _write_err159 != nil { + return false, thrift.WrapTException(_write_err159) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.REPLY, seqId); err2 != nil { + _write_err159 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err159 == nil && err2 != nil { + _write_err159 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err159 != nil { + return false, thrift.WrapTException(_write_err159) } return true, err } @@ -17395,9 +17774,9 @@ type tCLIServiceProcessorGetCatalogs struct { } func (p *tCLIServiceProcessorGetCatalogs) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err161 error args := TCLIServiceGetCatalogsArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.EXCEPTION, seqId) @@ -17435,36 +17814,47 @@ func (p *tCLIServiceProcessorGetCatalogs) Process(ctx context.Context, seqId int } result := TCLIServiceGetCatalogsResult{} - var retval *TGetCatalogsResp - if retval, err2 = p.handler.GetCatalogs(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetCatalogs(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCatalogs: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc162 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCatalogs: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.EXCEPTION, seqId); err2 != nil { + _write_err161 = thrift.WrapTException(err2) + } + if err2 := _exc162.Write(ctx, oprot); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) + } + if _write_err161 != nil { + return false, thrift.WrapTException(_write_err161) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.REPLY, seqId); err2 != nil { + _write_err161 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err161 == nil && err2 != nil { + _write_err161 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err161 != nil { + return false, thrift.WrapTException(_write_err161) } return true, err } @@ -17474,9 +17864,9 @@ type tCLIServiceProcessorGetSchemas struct { } func (p *tCLIServiceProcessorGetSchemas) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err163 error args := TCLIServiceGetSchemasArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.EXCEPTION, seqId) @@ -17514,36 +17904,47 @@ func (p *tCLIServiceProcessorGetSchemas) Process(ctx context.Context, seqId int3 } result := TCLIServiceGetSchemasResult{} - var retval *TGetSchemasResp - if retval, err2 = p.handler.GetSchemas(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetSchemas(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetSchemas: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc164 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetSchemas: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.EXCEPTION, seqId); err2 != nil { + _write_err163 = thrift.WrapTException(err2) + } + if err2 := _exc164.Write(ctx, oprot); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) + } + if _write_err163 != nil { + return false, thrift.WrapTException(_write_err163) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.REPLY, seqId); err2 != nil { + _write_err163 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err163 == nil && err2 != nil { + _write_err163 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err163 != nil { + return false, thrift.WrapTException(_write_err163) } return true, err } @@ -17553,9 +17954,9 @@ type tCLIServiceProcessorGetTables struct { } func (p *tCLIServiceProcessorGetTables) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err165 error args := TCLIServiceGetTablesArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetTables", thrift.EXCEPTION, seqId) @@ -17593,36 +17994,47 @@ func (p *tCLIServiceProcessorGetTables) Process(ctx context.Context, seqId int32 } result := TCLIServiceGetTablesResult{} - var retval *TGetTablesResp - if retval, err2 = p.handler.GetTables(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetTables(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTables: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetTables", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc166 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTables: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetTables", thrift.EXCEPTION, seqId); err2 != nil { + _write_err165 = thrift.WrapTException(err2) + } + if err2 := _exc166.Write(ctx, oprot); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) + } + if _write_err165 != nil { + return false, thrift.WrapTException(_write_err165) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetTables", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetTables", thrift.REPLY, seqId); err2 != nil { + _write_err165 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err165 == nil && err2 != nil { + _write_err165 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err165 != nil { + return false, thrift.WrapTException(_write_err165) } return true, err } @@ -17632,9 +18044,9 @@ type tCLIServiceProcessorGetTableTypes struct { } func (p *tCLIServiceProcessorGetTableTypes) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err167 error args := TCLIServiceGetTableTypesArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.EXCEPTION, seqId) @@ -17672,36 +18084,47 @@ func (p *tCLIServiceProcessorGetTableTypes) Process(ctx context.Context, seqId i } result := TCLIServiceGetTableTypesResult{} - var retval *TGetTableTypesResp - if retval, err2 = p.handler.GetTableTypes(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetTableTypes(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTableTypes: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc168 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTableTypes: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.EXCEPTION, seqId); err2 != nil { + _write_err167 = thrift.WrapTException(err2) + } + if err2 := _exc168.Write(ctx, oprot); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) + } + if _write_err167 != nil { + return false, thrift.WrapTException(_write_err167) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.REPLY, seqId); err2 != nil { + _write_err167 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err167 == nil && err2 != nil { + _write_err167 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err167 != nil { + return false, thrift.WrapTException(_write_err167) } return true, err } @@ -17711,9 +18134,9 @@ type tCLIServiceProcessorGetColumns struct { } func (p *tCLIServiceProcessorGetColumns) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err169 error args := TCLIServiceGetColumnsArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetColumns", thrift.EXCEPTION, seqId) @@ -17751,36 +18174,47 @@ func (p *tCLIServiceProcessorGetColumns) Process(ctx context.Context, seqId int3 } result := TCLIServiceGetColumnsResult{} - var retval *TGetColumnsResp - if retval, err2 = p.handler.GetColumns(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetColumns(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetColumns: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetColumns", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc170 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetColumns: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetColumns", thrift.EXCEPTION, seqId); err2 != nil { + _write_err169 = thrift.WrapTException(err2) + } + if err2 := _exc170.Write(ctx, oprot); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) + } + if _write_err169 != nil { + return false, thrift.WrapTException(_write_err169) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetColumns", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetColumns", thrift.REPLY, seqId); err2 != nil { + _write_err169 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err169 == nil && err2 != nil { + _write_err169 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err169 != nil { + return false, thrift.WrapTException(_write_err169) } return true, err } @@ -17790,9 +18224,9 @@ type tCLIServiceProcessorGetFunctions struct { } func (p *tCLIServiceProcessorGetFunctions) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err171 error args := TCLIServiceGetFunctionsArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.EXCEPTION, seqId) @@ -17830,36 +18264,47 @@ func (p *tCLIServiceProcessorGetFunctions) Process(ctx context.Context, seqId in } result := TCLIServiceGetFunctionsResult{} - var retval *TGetFunctionsResp - if retval, err2 = p.handler.GetFunctions(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetFunctions(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetFunctions: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc172 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetFunctions: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.EXCEPTION, seqId); err2 != nil { + _write_err171 = thrift.WrapTException(err2) + } + if err2 := _exc172.Write(ctx, oprot); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) + } + if _write_err171 != nil { + return false, thrift.WrapTException(_write_err171) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.REPLY, seqId); err2 != nil { + _write_err171 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err171 == nil && err2 != nil { + _write_err171 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err171 != nil { + return false, thrift.WrapTException(_write_err171) } return true, err } @@ -17869,9 +18314,9 @@ type tCLIServiceProcessorGetPrimaryKeys struct { } func (p *tCLIServiceProcessorGetPrimaryKeys) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err173 error args := TCLIServiceGetPrimaryKeysArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.EXCEPTION, seqId) @@ -17909,36 +18354,47 @@ func (p *tCLIServiceProcessorGetPrimaryKeys) Process(ctx context.Context, seqId } result := TCLIServiceGetPrimaryKeysResult{} - var retval *TGetPrimaryKeysResp - if retval, err2 = p.handler.GetPrimaryKeys(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetPrimaryKeys(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetPrimaryKeys: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc174 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetPrimaryKeys: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.EXCEPTION, seqId); err2 != nil { + _write_err173 = thrift.WrapTException(err2) + } + if err2 := _exc174.Write(ctx, oprot); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) + } + if _write_err173 != nil { + return false, thrift.WrapTException(_write_err173) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.REPLY, seqId); err2 != nil { + _write_err173 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err173 == nil && err2 != nil { + _write_err173 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err173 != nil { + return false, thrift.WrapTException(_write_err173) } return true, err } @@ -17948,9 +18404,9 @@ type tCLIServiceProcessorGetCrossReference struct { } func (p *tCLIServiceProcessorGetCrossReference) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err175 error args := TCLIServiceGetCrossReferenceArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.EXCEPTION, seqId) @@ -17988,36 +18444,47 @@ func (p *tCLIServiceProcessorGetCrossReference) Process(ctx context.Context, seq } result := TCLIServiceGetCrossReferenceResult{} - var retval *TGetCrossReferenceResp - if retval, err2 = p.handler.GetCrossReference(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetCrossReference(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCrossReference: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc176 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCrossReference: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.EXCEPTION, seqId); err2 != nil { + _write_err175 = thrift.WrapTException(err2) + } + if err2 := _exc176.Write(ctx, oprot); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) + } + if _write_err175 != nil { + return false, thrift.WrapTException(_write_err175) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.REPLY, seqId); err2 != nil { + _write_err175 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err175 == nil && err2 != nil { + _write_err175 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err175 != nil { + return false, thrift.WrapTException(_write_err175) } return true, err } @@ -18027,9 +18494,9 @@ type tCLIServiceProcessorGetOperationStatus struct { } func (p *tCLIServiceProcessorGetOperationStatus) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err177 error args := TCLIServiceGetOperationStatusArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.EXCEPTION, seqId) @@ -18067,36 +18534,47 @@ func (p *tCLIServiceProcessorGetOperationStatus) Process(ctx context.Context, se } result := TCLIServiceGetOperationStatusResult{} - var retval *TGetOperationStatusResp - if retval, err2 = p.handler.GetOperationStatus(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetOperationStatus(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetOperationStatus: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc178 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetOperationStatus: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.EXCEPTION, seqId); err2 != nil { + _write_err177 = thrift.WrapTException(err2) + } + if err2 := _exc178.Write(ctx, oprot); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) + } + if _write_err177 != nil { + return false, thrift.WrapTException(_write_err177) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.REPLY, seqId); err2 != nil { + _write_err177 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err177 == nil && err2 != nil { + _write_err177 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err177 != nil { + return false, thrift.WrapTException(_write_err177) } return true, err } @@ -18106,9 +18584,9 @@ type tCLIServiceProcessorCancelOperation struct { } func (p *tCLIServiceProcessorCancelOperation) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err179 error args := TCLIServiceCancelOperationArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.EXCEPTION, seqId) @@ -18146,36 +18624,47 @@ func (p *tCLIServiceProcessorCancelOperation) Process(ctx context.Context, seqId } result := TCLIServiceCancelOperationResult{} - var retval *TCancelOperationResp - if retval, err2 = p.handler.CancelOperation(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.CancelOperation(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelOperation: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc180 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelOperation: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.EXCEPTION, seqId); err2 != nil { + _write_err179 = thrift.WrapTException(err2) + } + if err2 := _exc180.Write(ctx, oprot); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) + } + if _write_err179 != nil { + return false, thrift.WrapTException(_write_err179) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.REPLY, seqId); err2 != nil { + _write_err179 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err179 == nil && err2 != nil { + _write_err179 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err179 != nil { + return false, thrift.WrapTException(_write_err179) } return true, err } @@ -18185,9 +18674,9 @@ type tCLIServiceProcessorCloseOperation struct { } func (p *tCLIServiceProcessorCloseOperation) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err181 error args := TCLIServiceCloseOperationArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.EXCEPTION, seqId) @@ -18225,36 +18714,47 @@ func (p *tCLIServiceProcessorCloseOperation) Process(ctx context.Context, seqId } result := TCLIServiceCloseOperationResult{} - var retval *TCloseOperationResp - if retval, err2 = p.handler.CloseOperation(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.CloseOperation(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseOperation: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc182 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseOperation: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.EXCEPTION, seqId); err2 != nil { + _write_err181 = thrift.WrapTException(err2) + } + if err2 := _exc182.Write(ctx, oprot); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) + } + if _write_err181 != nil { + return false, thrift.WrapTException(_write_err181) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.REPLY, seqId); err2 != nil { + _write_err181 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err181 == nil && err2 != nil { + _write_err181 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err181 != nil { + return false, thrift.WrapTException(_write_err181) } return true, err } @@ -18264,9 +18764,9 @@ type tCLIServiceProcessorGetResultSetMetadata struct { } func (p *tCLIServiceProcessorGetResultSetMetadata) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err183 error args := TCLIServiceGetResultSetMetadataArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.EXCEPTION, seqId) @@ -18304,36 +18804,47 @@ func (p *tCLIServiceProcessorGetResultSetMetadata) Process(ctx context.Context, } result := TCLIServiceGetResultSetMetadataResult{} - var retval *TGetResultSetMetadataResp - if retval, err2 = p.handler.GetResultSetMetadata(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetResultSetMetadata(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetResultSetMetadata: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc184 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetResultSetMetadata: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.EXCEPTION, seqId); err2 != nil { + _write_err183 = thrift.WrapTException(err2) + } + if err2 := _exc184.Write(ctx, oprot); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) + } + if _write_err183 != nil { + return false, thrift.WrapTException(_write_err183) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.REPLY, seqId); err2 != nil { + _write_err183 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err183 == nil && err2 != nil { + _write_err183 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err183 != nil { + return false, thrift.WrapTException(_write_err183) } return true, err } @@ -18343,9 +18854,9 @@ type tCLIServiceProcessorFetchResults struct { } func (p *tCLIServiceProcessorFetchResults) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err185 error args := TCLIServiceFetchResultsArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "FetchResults", thrift.EXCEPTION, seqId) @@ -18383,36 +18894,47 @@ func (p *tCLIServiceProcessorFetchResults) Process(ctx context.Context, seqId in } result := TCLIServiceFetchResultsResult{} - var retval *TFetchResultsResp - if retval, err2 = p.handler.FetchResults(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.FetchResults(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing FetchResults: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "FetchResults", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc186 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing FetchResults: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "FetchResults", thrift.EXCEPTION, seqId); err2 != nil { + _write_err185 = thrift.WrapTException(err2) + } + if err2 := _exc186.Write(ctx, oprot); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) + } + if _write_err185 != nil { + return false, thrift.WrapTException(_write_err185) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "FetchResults", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "FetchResults", thrift.REPLY, seqId); err2 != nil { + _write_err185 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err185 == nil && err2 != nil { + _write_err185 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err185 != nil { + return false, thrift.WrapTException(_write_err185) } return true, err } @@ -18422,9 +18944,9 @@ type tCLIServiceProcessorGetDelegationToken struct { } func (p *tCLIServiceProcessorGetDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err187 error args := TCLIServiceGetDelegationTokenArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.EXCEPTION, seqId) @@ -18462,36 +18984,47 @@ func (p *tCLIServiceProcessorGetDelegationToken) Process(ctx context.Context, se } result := TCLIServiceGetDelegationTokenResult{} - var retval *TGetDelegationTokenResp - if retval, err2 = p.handler.GetDelegationToken(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetDelegationToken(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetDelegationToken: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc188 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetDelegationToken: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { + _write_err187 = thrift.WrapTException(err2) + } + if err2 := _exc188.Write(ctx, oprot); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) + } + if _write_err187 != nil { + return false, thrift.WrapTException(_write_err187) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.REPLY, seqId); err2 != nil { + _write_err187 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err187 == nil && err2 != nil { + _write_err187 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err187 != nil { + return false, thrift.WrapTException(_write_err187) } return true, err } @@ -18501,9 +19034,9 @@ type tCLIServiceProcessorCancelDelegationToken struct { } func (p *tCLIServiceProcessorCancelDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err189 error args := TCLIServiceCancelDelegationTokenArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.EXCEPTION, seqId) @@ -18541,36 +19074,47 @@ func (p *tCLIServiceProcessorCancelDelegationToken) Process(ctx context.Context, } result := TCLIServiceCancelDelegationTokenResult{} - var retval *TCancelDelegationTokenResp - if retval, err2 = p.handler.CancelDelegationToken(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.CancelDelegationToken(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelDelegationToken: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc190 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelDelegationToken: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { + _write_err189 = thrift.WrapTException(err2) + } + if err2 := _exc190.Write(ctx, oprot); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) + } + if _write_err189 != nil { + return false, thrift.WrapTException(_write_err189) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.REPLY, seqId); err2 != nil { + _write_err189 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err189 == nil && err2 != nil { + _write_err189 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err189 != nil { + return false, thrift.WrapTException(_write_err189) } return true, err } @@ -18580,9 +19124,9 @@ type tCLIServiceProcessorRenewDelegationToken struct { } func (p *tCLIServiceProcessorRenewDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err191 error args := TCLIServiceRenewDelegationTokenArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.EXCEPTION, seqId) @@ -18620,36 +19164,47 @@ func (p *tCLIServiceProcessorRenewDelegationToken) Process(ctx context.Context, } result := TCLIServiceRenewDelegationTokenResult{} - var retval *TRenewDelegationTokenResp - if retval, err2 = p.handler.RenewDelegationToken(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.RenewDelegationToken(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing RenewDelegationToken: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc192 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing RenewDelegationToken: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { + _write_err191 = thrift.WrapTException(err2) + } + if err2 := _exc192.Write(ctx, oprot); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) + } + if _write_err191 != nil { + return false, thrift.WrapTException(_write_err191) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.REPLY, seqId); err2 != nil { + _write_err191 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err191 == nil && err2 != nil { + _write_err191 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err191 != nil { + return false, thrift.WrapTException(_write_err191) } return true, err } @@ -18659,9 +19214,9 @@ type tCLIServiceProcessorGetQueryId struct { } func (p *tCLIServiceProcessorGetQueryId) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err193 error args := TCLIServiceGetQueryIdArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "GetQueryId", thrift.EXCEPTION, seqId) @@ -18699,36 +19254,47 @@ func (p *tCLIServiceProcessorGetQueryId) Process(ctx context.Context, seqId int3 } result := TCLIServiceGetQueryIdResult{} - var retval *TGetQueryIdResp - if retval, err2 = p.handler.GetQueryId(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.GetQueryId(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetQueryId: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "GetQueryId", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc194 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetQueryId: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "GetQueryId", thrift.EXCEPTION, seqId); err2 != nil { + _write_err193 = thrift.WrapTException(err2) + } + if err2 := _exc194.Write(ctx, oprot); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) + } + if _write_err193 != nil { + return false, thrift.WrapTException(_write_err193) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "GetQueryId", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "GetQueryId", thrift.REPLY, seqId); err2 != nil { + _write_err193 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err193 == nil && err2 != nil { + _write_err193 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err193 != nil { + return false, thrift.WrapTException(_write_err193) } return true, err } @@ -18738,9 +19304,9 @@ type tCLIServiceProcessorSetClientInfo struct { } func (p *tCLIServiceProcessorSetClientInfo) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { + var _write_err195 error args := TCLIServiceSetClientInfoArgs{} - var err2 error - if err2 = args.Read(ctx, iprot); err2 != nil { + if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err2.Error()) oprot.WriteMessageBegin(ctx, "SetClientInfo", thrift.EXCEPTION, seqId) @@ -18778,36 +19344,47 @@ func (p *tCLIServiceProcessorSetClientInfo) Process(ctx context.Context, seqId i } result := TCLIServiceSetClientInfoResult{} - var retval *TSetClientInfoResp - if retval, err2 = p.handler.SetClientInfo(ctx, args.Req); err2 != nil { + if retval, err2 := p.handler.SetClientInfo(ctx, args.Req); err2 != nil { tickerCancel() - if err2 == thrift.ErrAbandonRequest { + err = thrift.WrapTException(err2) + if errors.Is(err2, thrift.ErrAbandonRequest) { return false, thrift.WrapTException(err2) } - x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing SetClientInfo: " + err2.Error()) - oprot.WriteMessageBegin(ctx, "SetClientInfo", thrift.EXCEPTION, seqId) - x.Write(ctx, oprot) - oprot.WriteMessageEnd(ctx) - oprot.Flush(ctx) - return true, thrift.WrapTException(err2) + _exc196 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing SetClientInfo: " + err2.Error()) + if err2 := oprot.WriteMessageBegin(ctx, "SetClientInfo", thrift.EXCEPTION, seqId); err2 != nil { + _write_err195 = thrift.WrapTException(err2) + } + if err2 := _exc196.Write(ctx, oprot); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) + } + if err2 := oprot.WriteMessageEnd(ctx); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) + } + if err2 := oprot.Flush(ctx); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) + } + if _write_err195 != nil { + return false, thrift.WrapTException(_write_err195) + } + return true, err } else { result.Success = retval } tickerCancel() - if err2 = oprot.WriteMessageBegin(ctx, "SetClientInfo", thrift.REPLY, seqId); err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageBegin(ctx, "SetClientInfo", thrift.REPLY, seqId); err2 != nil { + _write_err195 = thrift.WrapTException(err2) } - if err2 = result.Write(ctx, oprot); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) } - if err2 = oprot.WriteMessageEnd(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) } - if err2 = oprot.Flush(ctx); err == nil && err2 != nil { - err = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err195 == nil && err2 != nil { + _write_err195 = thrift.WrapTException(err2) } - if err != nil { - return + if _write_err195 != nil { + return false, thrift.WrapTException(_write_err195) } return true, err } @@ -18876,7 +19453,7 @@ func (p *TCLIServiceOpenSessionArgs) Read(ctx context.Context, iprot thrift.TPro func (p *TCLIServiceOpenSessionArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { p.Req = &TOpenSessionReq{ - ClientProtocol: 9, + ClientProtocol: 9, } if err := p.Req.Read(ctx, iprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err) @@ -18976,7 +19553,7 @@ func (p *TCLIServiceOpenSessionResult) Read(ctx context.Context, iprot thrift.TP func (p *TCLIServiceOpenSessionResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error { p.Success = &TOpenSessionResp{ - ServerProtocolVersion: 9, + ServerProtocolVersion: 9, } if err := p.Success.Read(ctx, iprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err) @@ -22246,7 +22823,7 @@ func (p *TCLIServiceFetchResultsArgs) Read(ctx context.Context, iprot thrift.TPr func (p *TCLIServiceFetchResultsArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { p.Req = &TFetchResultsReq{ - Orientation: 0, + Orientation: 0, } if err := p.Req.Read(ctx, iprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)