diff --git a/internal/cli_service/cli_service.go b/internal/cli_service/cli_service.go index b66e66b4..71952c69 100644 --- a/internal/cli_service/cli_service.go +++ b/internal/cli_service/cli_service.go @@ -47,6 +47,7 @@ const ( TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V6 TProtocolVersion = 42246 TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V7 TProtocolVersion = 42247 TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8 TProtocolVersion = 42248 + TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V9 TProtocolVersion = 42249 ) func (p TProtocolVersion) String() string { @@ -71,6 +72,7 @@ func (p TProtocolVersion) String() string { case TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V6: return "SPARK_CLI_SERVICE_PROTOCOL_V6" case TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V7: return "SPARK_CLI_SERVICE_PROTOCOL_V7" case TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8: return "SPARK_CLI_SERVICE_PROTOCOL_V8" + case TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V9: return "SPARK_CLI_SERVICE_PROTOCOL_V9" } return "" } @@ -97,6 +99,7 @@ func TProtocolVersionFromString(s string) (TProtocolVersion, error) { case "SPARK_CLI_SERVICE_PROTOCOL_V6": return TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V6, nil case "SPARK_CLI_SERVICE_PROTOCOL_V7": return TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V7, nil case "SPARK_CLI_SERVICE_PROTOCOL_V8": return TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8, nil + case "SPARK_CLI_SERVICE_PROTOCOL_V9": return TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V9, nil } return TProtocolVersion(0), fmt.Errorf("not a valid TProtocolVersion string") } @@ -413,115 +416,6 @@ func (p * TDBSqlArrowLayout) Value() (driver.Value, error) { } return int64(*p), nil } -type TOperationIdempotencyType int64 -const ( - TOperationIdempotencyType_UNKNOWN TOperationIdempotencyType = 0 - TOperationIdempotencyType_NON_IDEMPOTENT TOperationIdempotencyType = 1 - TOperationIdempotencyType_IDEMPOTENT TOperationIdempotencyType = 2 -) - -func (p TOperationIdempotencyType) String() string { - switch p { - case TOperationIdempotencyType_UNKNOWN: return "UNKNOWN" - case TOperationIdempotencyType_NON_IDEMPOTENT: return "NON_IDEMPOTENT" - case TOperationIdempotencyType_IDEMPOTENT: return "IDEMPOTENT" - } - return "" -} - -func TOperationIdempotencyTypeFromString(s string) (TOperationIdempotencyType, error) { - switch s { - case "UNKNOWN": return TOperationIdempotencyType_UNKNOWN, nil - case "NON_IDEMPOTENT": return TOperationIdempotencyType_NON_IDEMPOTENT, nil - case "IDEMPOTENT": return TOperationIdempotencyType_IDEMPOTENT, nil - } - return TOperationIdempotencyType(0), fmt.Errorf("not a valid TOperationIdempotencyType string") -} - - -func TOperationIdempotencyTypePtr(v TOperationIdempotencyType) *TOperationIdempotencyType { return &v } - -func (p TOperationIdempotencyType) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TOperationIdempotencyType) UnmarshalText(text []byte) error { -q, err := TOperationIdempotencyTypeFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TOperationIdempotencyType) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TOperationIdempotencyType(v) -return nil -} - -func (p * TOperationIdempotencyType) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} -type TOperationTimeoutLevel int64 -const ( - TOperationTimeoutLevel_CLUSTER TOperationTimeoutLevel = 0 - TOperationTimeoutLevel_SESSION TOperationTimeoutLevel = 1 -) - -func (p TOperationTimeoutLevel) String() string { - switch p { - case TOperationTimeoutLevel_CLUSTER: return "CLUSTER" - case TOperationTimeoutLevel_SESSION: return "SESSION" - } - return "" -} - -func TOperationTimeoutLevelFromString(s string) (TOperationTimeoutLevel, error) { - switch s { - case "CLUSTER": return TOperationTimeoutLevel_CLUSTER, nil - case "SESSION": return TOperationTimeoutLevel_SESSION, nil - } - return TOperationTimeoutLevel(0), fmt.Errorf("not a valid TOperationTimeoutLevel string") -} - - -func TOperationTimeoutLevelPtr(v TOperationTimeoutLevel) *TOperationTimeoutLevel { return &v } - -func (p TOperationTimeoutLevel) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TOperationTimeoutLevel) UnmarshalText(text []byte) error { -q, err := TOperationTimeoutLevelFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TOperationTimeoutLevel) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TOperationTimeoutLevel(v) -return nil -} - -func (p * TOperationTimeoutLevel) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} type TStatusCode int64 const ( TStatusCode_SUCCESS_STATUS TStatusCode = 0 @@ -920,115 +814,6 @@ func (p * TGetInfoType) Value() (driver.Value, error) { } return int64(*p), nil } -type TResultPersistenceMode int64 -const ( - TResultPersistenceMode_ONLY_LARGE_RESULTS TResultPersistenceMode = 0 - TResultPersistenceMode_ALL_QUERY_RESULTS TResultPersistenceMode = 1 - TResultPersistenceMode_ALL_RESULTS TResultPersistenceMode = 2 -) - -func (p TResultPersistenceMode) String() string { - switch p { - case TResultPersistenceMode_ONLY_LARGE_RESULTS: return "ONLY_LARGE_RESULTS" - case TResultPersistenceMode_ALL_QUERY_RESULTS: return "ALL_QUERY_RESULTS" - case TResultPersistenceMode_ALL_RESULTS: return "ALL_RESULTS" - } - return "" -} - -func TResultPersistenceModeFromString(s string) (TResultPersistenceMode, error) { - switch s { - case "ONLY_LARGE_RESULTS": return TResultPersistenceMode_ONLY_LARGE_RESULTS, nil - case "ALL_QUERY_RESULTS": return TResultPersistenceMode_ALL_QUERY_RESULTS, nil - case "ALL_RESULTS": return TResultPersistenceMode_ALL_RESULTS, nil - } - return TResultPersistenceMode(0), fmt.Errorf("not a valid TResultPersistenceMode string") -} - - -func TResultPersistenceModePtr(v TResultPersistenceMode) *TResultPersistenceMode { return &v } - -func (p TResultPersistenceMode) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TResultPersistenceMode) UnmarshalText(text []byte) error { -q, err := TResultPersistenceModeFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TResultPersistenceMode) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TResultPersistenceMode(v) -return nil -} - -func (p * TResultPersistenceMode) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} -type TDBSqlCloseOperationReason int64 -const ( - TDBSqlCloseOperationReason_NONE TDBSqlCloseOperationReason = 0 - TDBSqlCloseOperationReason_COMMAND_INACTIVITY_TIMEOUT TDBSqlCloseOperationReason = 1 -) - -func (p TDBSqlCloseOperationReason) String() string { - switch p { - case TDBSqlCloseOperationReason_NONE: return "NONE" - case TDBSqlCloseOperationReason_COMMAND_INACTIVITY_TIMEOUT: return "COMMAND_INACTIVITY_TIMEOUT" - } - return "" -} - -func TDBSqlCloseOperationReasonFromString(s string) (TDBSqlCloseOperationReason, error) { - switch s { - case "NONE": return TDBSqlCloseOperationReason_NONE, nil - case "COMMAND_INACTIVITY_TIMEOUT": return TDBSqlCloseOperationReason_COMMAND_INACTIVITY_TIMEOUT, nil - } - return TDBSqlCloseOperationReason(0), fmt.Errorf("not a valid TDBSqlCloseOperationReason string") -} - - -func TDBSqlCloseOperationReasonPtr(v TDBSqlCloseOperationReason) *TDBSqlCloseOperationReason { return &v } - -func (p TDBSqlCloseOperationReason) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TDBSqlCloseOperationReason) UnmarshalText(text []byte) error { -q, err := TDBSqlCloseOperationReasonFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TDBSqlCloseOperationReason) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TDBSqlCloseOperationReason(v) -return nil -} - -func (p * TDBSqlCloseOperationReason) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} type TCacheLookupResult_ int64 const ( TCacheLookupResult__CACHE_INELIGIBLE TCacheLookupResult_ = 0 @@ -1088,127 +873,6 @@ func (p * TCacheLookupResult_) Value() (driver.Value, error) { } return int64(*p), nil } -type TCloudFetchDisabledReason int64 -const ( - TCloudFetchDisabledReason_ARROW_SUPPORT TCloudFetchDisabledReason = 0 - TCloudFetchDisabledReason_CLOUD_FETCH_SUPPORT TCloudFetchDisabledReason = 1 - TCloudFetchDisabledReason_PROTOCOL_VERSION TCloudFetchDisabledReason = 2 - TCloudFetchDisabledReason_REGION_SUPPORT TCloudFetchDisabledReason = 3 - TCloudFetchDisabledReason_BLOCKLISTED_OPERATION TCloudFetchDisabledReason = 4 - TCloudFetchDisabledReason_SMALL_RESULT_SIZE TCloudFetchDisabledReason = 5 - TCloudFetchDisabledReason_CUSTOMER_STORAGE_SUPPORT TCloudFetchDisabledReason = 6 - TCloudFetchDisabledReason_UNKNOWN TCloudFetchDisabledReason = 7 -) - -func (p TCloudFetchDisabledReason) String() string { - switch p { - case TCloudFetchDisabledReason_ARROW_SUPPORT: return "ARROW_SUPPORT" - case TCloudFetchDisabledReason_CLOUD_FETCH_SUPPORT: return "CLOUD_FETCH_SUPPORT" - case TCloudFetchDisabledReason_PROTOCOL_VERSION: return "PROTOCOL_VERSION" - case TCloudFetchDisabledReason_REGION_SUPPORT: return "REGION_SUPPORT" - case TCloudFetchDisabledReason_BLOCKLISTED_OPERATION: return "BLOCKLISTED_OPERATION" - case TCloudFetchDisabledReason_SMALL_RESULT_SIZE: return "SMALL_RESULT_SIZE" - case TCloudFetchDisabledReason_CUSTOMER_STORAGE_SUPPORT: return "CUSTOMER_STORAGE_SUPPORT" - case TCloudFetchDisabledReason_UNKNOWN: return "UNKNOWN" - } - return "" -} - -func TCloudFetchDisabledReasonFromString(s string) (TCloudFetchDisabledReason, error) { - switch s { - case "ARROW_SUPPORT": return TCloudFetchDisabledReason_ARROW_SUPPORT, nil - case "CLOUD_FETCH_SUPPORT": return TCloudFetchDisabledReason_CLOUD_FETCH_SUPPORT, nil - case "PROTOCOL_VERSION": return TCloudFetchDisabledReason_PROTOCOL_VERSION, nil - case "REGION_SUPPORT": return TCloudFetchDisabledReason_REGION_SUPPORT, nil - case "BLOCKLISTED_OPERATION": return TCloudFetchDisabledReason_BLOCKLISTED_OPERATION, nil - case "SMALL_RESULT_SIZE": return TCloudFetchDisabledReason_SMALL_RESULT_SIZE, nil - case "CUSTOMER_STORAGE_SUPPORT": return TCloudFetchDisabledReason_CUSTOMER_STORAGE_SUPPORT, nil - case "UNKNOWN": return TCloudFetchDisabledReason_UNKNOWN, nil - } - return TCloudFetchDisabledReason(0), fmt.Errorf("not a valid TCloudFetchDisabledReason string") -} - - -func TCloudFetchDisabledReasonPtr(v TCloudFetchDisabledReason) *TCloudFetchDisabledReason { return &v } - -func (p TCloudFetchDisabledReason) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TCloudFetchDisabledReason) UnmarshalText(text []byte) error { -q, err := TCloudFetchDisabledReasonFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TCloudFetchDisabledReason) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TCloudFetchDisabledReason(v) -return nil -} - -func (p * TCloudFetchDisabledReason) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} -type TDBSqlManifestFileFormat int64 -const ( - TDBSqlManifestFileFormat_THRIFT_GET_RESULT_SET_METADATA_RESP TDBSqlManifestFileFormat = 0 -) - -func (p TDBSqlManifestFileFormat) String() string { - switch p { - case TDBSqlManifestFileFormat_THRIFT_GET_RESULT_SET_METADATA_RESP: return "THRIFT_GET_RESULT_SET_METADATA_RESP" - } - return "" -} - -func TDBSqlManifestFileFormatFromString(s string) (TDBSqlManifestFileFormat, error) { - switch s { - case "THRIFT_GET_RESULT_SET_METADATA_RESP": return TDBSqlManifestFileFormat_THRIFT_GET_RESULT_SET_METADATA_RESP, nil - } - return TDBSqlManifestFileFormat(0), fmt.Errorf("not a valid TDBSqlManifestFileFormat string") -} - - -func TDBSqlManifestFileFormatPtr(v TDBSqlManifestFileFormat) *TDBSqlManifestFileFormat { return &v } - -func (p TDBSqlManifestFileFormat) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TDBSqlManifestFileFormat) UnmarshalText(text []byte) error { -q, err := TDBSqlManifestFileFormatFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TDBSqlManifestFileFormat) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TDBSqlManifestFileFormat(v) -return nil -} - -func (p * TDBSqlManifestFileFormat) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} type TFetchOrientation int64 const ( TFetchOrientation_FETCH_NEXT TFetchOrientation = 0 @@ -1274,65 +938,6 @@ func (p * TFetchOrientation) Value() (driver.Value, error) { } return int64(*p), nil } -type TDBSqlFetchDisposition int64 -const ( - TDBSqlFetchDisposition_DISPOSITION_UNSPECIFIED TDBSqlFetchDisposition = 0 - TDBSqlFetchDisposition_DISPOSITION_INLINE TDBSqlFetchDisposition = 1 - TDBSqlFetchDisposition_DISPOSITION_EXTERNAL_LINKS TDBSqlFetchDisposition = 2 - TDBSqlFetchDisposition_DISPOSITION_INTERNAL_DBFS TDBSqlFetchDisposition = 3 -) - -func (p TDBSqlFetchDisposition) String() string { - switch p { - case TDBSqlFetchDisposition_DISPOSITION_UNSPECIFIED: return "DISPOSITION_UNSPECIFIED" - case TDBSqlFetchDisposition_DISPOSITION_INLINE: return "DISPOSITION_INLINE" - case TDBSqlFetchDisposition_DISPOSITION_EXTERNAL_LINKS: return "DISPOSITION_EXTERNAL_LINKS" - case TDBSqlFetchDisposition_DISPOSITION_INTERNAL_DBFS: return "DISPOSITION_INTERNAL_DBFS" - } - return "" -} - -func TDBSqlFetchDispositionFromString(s string) (TDBSqlFetchDisposition, error) { - switch s { - case "DISPOSITION_UNSPECIFIED": return TDBSqlFetchDisposition_DISPOSITION_UNSPECIFIED, nil - case "DISPOSITION_INLINE": return TDBSqlFetchDisposition_DISPOSITION_INLINE, nil - case "DISPOSITION_EXTERNAL_LINKS": return TDBSqlFetchDisposition_DISPOSITION_EXTERNAL_LINKS, nil - case "DISPOSITION_INTERNAL_DBFS": return TDBSqlFetchDisposition_DISPOSITION_INTERNAL_DBFS, nil - } - return TDBSqlFetchDisposition(0), fmt.Errorf("not a valid TDBSqlFetchDisposition string") -} - - -func TDBSqlFetchDispositionPtr(v TDBSqlFetchDisposition) *TDBSqlFetchDisposition { return &v } - -func (p TDBSqlFetchDisposition) MarshalText() ([]byte, error) { -return []byte(p.String()), nil -} - -func (p *TDBSqlFetchDisposition) UnmarshalText(text []byte) error { -q, err := TDBSqlFetchDispositionFromString(string(text)) -if (err != nil) { -return err -} -*p = q -return nil -} - -func (p *TDBSqlFetchDisposition) Scan(value interface{}) error { -v, ok := value.(int64) -if !ok { -return errors.New("Scan value is not int64") -} -*p = TDBSqlFetchDisposition(v) -return nil -} - -func (p * TDBSqlFetchDisposition) Value() (driver.Value, error) { - if p == nil { - return nil, nil - } -return int64(*p), nil -} type TJobExecutionStatus int64 const ( TJobExecutionStatus_IN_PROGRESS TJobExecutionStatus = 0 @@ -7829,120 +7434,90 @@ func (p *TSparkArrowResultLink) Validate() error { return nil } // Attributes: -// - FilePath // - StartRowOffset -// - RowCount -// - UncompressedBytes -// - CompressedBytes -// - FileLink -// - LinkExpiryTime -// - HttpHeaders -type TDBSqlCloudResultFile struct { - FilePath *string `thrift:"filePath,1" db:"filePath" json:"filePath,omitempty"` - StartRowOffset *int64 `thrift:"startRowOffset,2" db:"startRowOffset" json:"startRowOffset,omitempty"` - RowCount *int64 `thrift:"rowCount,3" db:"rowCount" json:"rowCount,omitempty"` - UncompressedBytes *int64 `thrift:"uncompressedBytes,4" db:"uncompressedBytes" json:"uncompressedBytes,omitempty"` - CompressedBytes *int64 `thrift:"compressedBytes,5" db:"compressedBytes" json:"compressedBytes,omitempty"` - FileLink *string `thrift:"fileLink,6" db:"fileLink" json:"fileLink,omitempty"` - LinkExpiryTime *int64 `thrift:"linkExpiryTime,7" db:"linkExpiryTime" json:"linkExpiryTime,omitempty"` - HttpHeaders map[string]string `thrift:"httpHeaders,8" db:"httpHeaders" json:"httpHeaders,omitempty"` +// - Rows +// - Columns +// - BinaryColumns +// - ColumnCount +// - ArrowBatches +// - ResultLinks +type TRowSet struct { + StartRowOffset int64 `thrift:"startRowOffset,1,required" db:"startRowOffset" json:"startRowOffset"` + Rows []*TRow `thrift:"rows,2,required" db:"rows" json:"rows"` + Columns []*TColumn `thrift:"columns,3" db:"columns" json:"columns,omitempty"` + BinaryColumns []byte `thrift:"binaryColumns,4" db:"binaryColumns" json:"binaryColumns,omitempty"` + ColumnCount *int32 `thrift:"columnCount,5" db:"columnCount" json:"columnCount,omitempty"` + // unused fields # 6 to 1280 + ArrowBatches []*TSparkArrowBatch `thrift:"arrowBatches,1281" db:"arrowBatches" json:"arrowBatches,omitempty"` + ResultLinks []*TSparkArrowResultLink `thrift:"resultLinks,1282" db:"resultLinks" json:"resultLinks,omitempty"` } -func NewTDBSqlCloudResultFile() *TDBSqlCloudResultFile { - return &TDBSqlCloudResultFile{} +func NewTRowSet() *TRowSet { + return &TRowSet{} } -var TDBSqlCloudResultFile_FilePath_DEFAULT string -func (p *TDBSqlCloudResultFile) GetFilePath() string { - if !p.IsSetFilePath() { - return TDBSqlCloudResultFile_FilePath_DEFAULT - } -return *p.FilePath -} -var TDBSqlCloudResultFile_StartRowOffset_DEFAULT int64 -func (p *TDBSqlCloudResultFile) GetStartRowOffset() int64 { - if !p.IsSetStartRowOffset() { - return TDBSqlCloudResultFile_StartRowOffset_DEFAULT - } -return *p.StartRowOffset -} -var TDBSqlCloudResultFile_RowCount_DEFAULT int64 -func (p *TDBSqlCloudResultFile) GetRowCount() int64 { - if !p.IsSetRowCount() { - return TDBSqlCloudResultFile_RowCount_DEFAULT - } -return *p.RowCount -} -var TDBSqlCloudResultFile_UncompressedBytes_DEFAULT int64 -func (p *TDBSqlCloudResultFile) GetUncompressedBytes() int64 { - if !p.IsSetUncompressedBytes() { - return TDBSqlCloudResultFile_UncompressedBytes_DEFAULT - } -return *p.UncompressedBytes -} -var TDBSqlCloudResultFile_CompressedBytes_DEFAULT int64 -func (p *TDBSqlCloudResultFile) GetCompressedBytes() int64 { - if !p.IsSetCompressedBytes() { - return TDBSqlCloudResultFile_CompressedBytes_DEFAULT - } -return *p.CompressedBytes + +func (p *TRowSet) GetStartRowOffset() int64 { + return p.StartRowOffset } -var TDBSqlCloudResultFile_FileLink_DEFAULT string -func (p *TDBSqlCloudResultFile) GetFileLink() string { - if !p.IsSetFileLink() { - return TDBSqlCloudResultFile_FileLink_DEFAULT - } -return *p.FileLink + +func (p *TRowSet) GetRows() []*TRow { + return p.Rows } -var TDBSqlCloudResultFile_LinkExpiryTime_DEFAULT int64 -func (p *TDBSqlCloudResultFile) GetLinkExpiryTime() int64 { - if !p.IsSetLinkExpiryTime() { - return TDBSqlCloudResultFile_LinkExpiryTime_DEFAULT - } -return *p.LinkExpiryTime +var TRowSet_Columns_DEFAULT []*TColumn + +func (p *TRowSet) GetColumns() []*TColumn { + return p.Columns } -var TDBSqlCloudResultFile_HttpHeaders_DEFAULT map[string]string +var TRowSet_BinaryColumns_DEFAULT []byte -func (p *TDBSqlCloudResultFile) GetHttpHeaders() map[string]string { - return p.HttpHeaders +func (p *TRowSet) GetBinaryColumns() []byte { + return p.BinaryColumns } -func (p *TDBSqlCloudResultFile) IsSetFilePath() bool { - return p.FilePath != nil +var TRowSet_ColumnCount_DEFAULT int32 +func (p *TRowSet) GetColumnCount() int32 { + if !p.IsSetColumnCount() { + return TRowSet_ColumnCount_DEFAULT + } +return *p.ColumnCount } +var TRowSet_ArrowBatches_DEFAULT []*TSparkArrowBatch -func (p *TDBSqlCloudResultFile) IsSetStartRowOffset() bool { - return p.StartRowOffset != nil +func (p *TRowSet) GetArrowBatches() []*TSparkArrowBatch { + return p.ArrowBatches } +var TRowSet_ResultLinks_DEFAULT []*TSparkArrowResultLink -func (p *TDBSqlCloudResultFile) IsSetRowCount() bool { - return p.RowCount != nil +func (p *TRowSet) GetResultLinks() []*TSparkArrowResultLink { + return p.ResultLinks } - -func (p *TDBSqlCloudResultFile) IsSetUncompressedBytes() bool { - return p.UncompressedBytes != nil +func (p *TRowSet) IsSetColumns() bool { + return p.Columns != nil } -func (p *TDBSqlCloudResultFile) IsSetCompressedBytes() bool { - return p.CompressedBytes != nil +func (p *TRowSet) IsSetBinaryColumns() bool { + return p.BinaryColumns != nil } -func (p *TDBSqlCloudResultFile) IsSetFileLink() bool { - return p.FileLink != nil +func (p *TRowSet) IsSetColumnCount() bool { + return p.ColumnCount != nil } -func (p *TDBSqlCloudResultFile) IsSetLinkExpiryTime() bool { - return p.LinkExpiryTime != nil +func (p *TRowSet) IsSetArrowBatches() bool { + return p.ArrowBatches != nil } -func (p *TDBSqlCloudResultFile) IsSetHttpHeaders() bool { - return p.HttpHeaders != nil +func (p *TRowSet) IsSetResultLinks() bool { + return p.ResultLinks != nil } -func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } + var issetStartRowOffset bool = false; + var issetRows bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -7952,27 +7527,29 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.I64 { if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetStartRowOffset = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 2: - if fieldTypeId == thrift.I64 { + if fieldTypeId == thrift.LIST { if err := p.ReadField2(ctx, iprot); err != nil { return err } + issetRows = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 3: - if fieldTypeId == thrift.I64 { + if fieldTypeId == thrift.LIST { if err := p.ReadField3(ctx, iprot); err != nil { return err } @@ -7982,7 +7559,7 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol } } case 4: - if fieldTypeId == thrift.I64 { + if fieldTypeId == thrift.STRING { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -7992,7 +7569,7 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol } } case 5: - if fieldTypeId == thrift.I64 { + if fieldTypeId == thrift.I32 { if err := p.ReadField5(ctx, iprot); err != nil { return err } @@ -8001,19 +7578,9 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol return err } } - case 6: - if fieldTypeId == thrift.STRING { - if err := p.ReadField6(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 7: - if fieldTypeId == thrift.I64 { - if err := p.ReadField7(ctx, iprot); err != nil { + case 1281: + if fieldTypeId == thrift.LIST { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -8021,9 +7588,9 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol return err } } - case 8: - if fieldTypeId == thrift.MAP { - if err := p.ReadField8(ctx, iprot); err != nil { + case 1282: + if fieldTypeId == thrift.LIST { + if err := p.ReadField1282(ctx, iprot); err != nil { return err } } else { @@ -8043,102 +7610,124 @@ func (p *TDBSqlCloudResultFile) Read(ctx context.Context, iprot thrift.TProtocol if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } + if !issetStartRowOffset{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field StartRowOffset is not set")); + } + if !issetRows{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Rows is not set")); + } return nil } -func (p *TDBSqlCloudResultFile) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { +func (p *TRowSet) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.FilePath = &v + p.StartRowOffset = v } return nil } -func (p *TDBSqlCloudResultFile) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - p.StartRowOffset = &v -} +func (p *TRowSet) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TRow, 0, size) + p.Rows = tSlice + for i := 0; i < size; i ++ { + _elem34 := &TRow{} + if err := _elem34.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem34), err) + } + p.Rows = append(p.Rows, _elem34) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } return nil } -func (p *TDBSqlCloudResultFile) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3: ", err) -} else { - p.RowCount = &v -} +func (p *TRowSet) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TColumn, 0, size) + p.Columns = tSlice + for i := 0; i < size; i ++ { + _elem35 := &TColumn{} + if err := _elem35.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem35), err) + } + p.Columns = append(p.Columns, _elem35) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } return nil } -func (p *TDBSqlCloudResultFile) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { +func (p *TRowSet) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBinary(ctx); err != nil { return thrift.PrependError("error reading field 4: ", err) } else { - p.UncompressedBytes = &v + p.BinaryColumns = v } return nil } -func (p *TDBSqlCloudResultFile) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { +func (p *TRowSet) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 5: ", err) } else { - p.CompressedBytes = &v -} - return nil -} - -func (p *TDBSqlCloudResultFile) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 6: ", err) -} else { - p.FileLink = &v + p.ColumnCount = &v } return nil } -func (p *TDBSqlCloudResultFile) ReadField7(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 7: ", err) -} else { - p.LinkExpiryTime = &v -} +func (p *TRowSet) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TSparkArrowBatch, 0, size) + p.ArrowBatches = tSlice + for i := 0; i < size; i ++ { + _elem36 := &TSparkArrowBatch{} + if err := _elem36.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem36), err) + } + p.ArrowBatches = append(p.ArrowBatches, _elem36) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } return nil } -func (p *TDBSqlCloudResultFile) ReadField8(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) +func (p *TRowSet) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) if err != nil { - return thrift.PrependError("error reading map begin: ", err) + return thrift.PrependError("error reading list begin: ", err) } - tMap := make(map[string]string, size) - p.HttpHeaders = tMap + tSlice := make([]*TSparkArrowResultLink, 0, size) + p.ResultLinks = tSlice for i := 0; i < size; i ++ { -var _key34 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key34 = v -} -var _val35 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val35 = v -} - p.HttpHeaders[_key34] = _val35 + _elem37 := &TSparkArrowResultLink{} + if err := _elem37.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem37), err) + } + p.ResultLinks = append(p.ResultLinks, _elem37) } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) } return nil } -func (p *TDBSqlCloudResultFile) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlCloudResultFile"); err != nil { +func (p *TRowSet) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TRowSet"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } @@ -8146,9 +7735,8 @@ func (p *TDBSqlCloudResultFile) Write(ctx context.Context, oprot thrift.TProtoco if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } if err := p.writeField5(ctx, oprot); err != nil { return err } - if err := p.writeField6(ctx, oprot); err != nil { return err } - if err := p.writeField7(ctx, oprot); err != nil { return err } - if err := p.writeField8(ctx, oprot); err != nil { return err } + if err := p.writeField1281(ctx, oprot); err != nil { return err } + if err := p.writeField1282(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -8157,275 +7745,266 @@ func (p *TDBSqlCloudResultFile) Write(ctx context.Context, oprot thrift.TProtoco return nil } -func (p *TDBSqlCloudResultFile) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetFilePath() { - if err := oprot.WriteFieldBegin(ctx, "filePath", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:filePath: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.FilePath)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.filePath (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:filePath: ", p), err) } - } +func (p *TRowSet) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "startRowOffset", thrift.I64, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:startRowOffset: ", p), err) } + if err := oprot.WriteI64(ctx, int64(p.StartRowOffset)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.startRowOffset (1) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:startRowOffset: ", p), err) } return err } -func (p *TDBSqlCloudResultFile) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStartRowOffset() { - if err := oprot.WriteFieldBegin(ctx, "startRowOffset", thrift.I64, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:startRowOffset: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.StartRowOffset)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.startRowOffset (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:startRowOffset: ", p), err) } +func (p *TRowSet) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "rows", thrift.LIST, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rows: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Rows)); err != nil { + return thrift.PrependError("error writing list begin: ", err) } - return err -} - -func (p *TDBSqlCloudResultFile) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRowCount() { - if err := oprot.WriteFieldBegin(ctx, "rowCount", thrift.I64, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rowCount: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.RowCount)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.rowCount (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rowCount: ", p), err) } + for _, v := range p.Rows { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rows: ", p), err) } return err } -func (p *TDBSqlCloudResultFile) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetUncompressedBytes() { - if err := oprot.WriteFieldBegin(ctx, "uncompressedBytes", thrift.I64, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:uncompressedBytes: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.UncompressedBytes)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.uncompressedBytes (4) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:uncompressedBytes: ", p), err) } +func (p *TRowSet) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetColumns() { + if err := oprot.WriteFieldBegin(ctx, "columns", thrift.LIST, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:columns: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Columns)); err != nil { + return thrift.PrependError("error writing list begin: ", err) + } + for _, v := range p.Columns { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:columns: ", p), err) } } return err } -func (p *TDBSqlCloudResultFile) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCompressedBytes() { - if err := oprot.WriteFieldBegin(ctx, "compressedBytes", thrift.I64, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:compressedBytes: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.CompressedBytes)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.compressedBytes (5) field write error: ", p), err) } +func (p *TRowSet) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetBinaryColumns() { + if err := oprot.WriteFieldBegin(ctx, "binaryColumns", thrift.STRING, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:binaryColumns: ", p), err) } + if err := oprot.WriteBinary(ctx, p.BinaryColumns); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.binaryColumns (4) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:compressedBytes: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:binaryColumns: ", p), err) } } return err } -func (p *TDBSqlCloudResultFile) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetFileLink() { - if err := oprot.WriteFieldBegin(ctx, "fileLink", thrift.STRING, 6); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:fileLink: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.FileLink)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.fileLink (6) field write error: ", p), err) } +func (p *TRowSet) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetColumnCount() { + if err := oprot.WriteFieldBegin(ctx, "columnCount", thrift.I32, 5); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:columnCount: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.ColumnCount)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.columnCount (5) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 6:fileLink: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 5:columnCount: ", p), err) } } return err } -func (p *TDBSqlCloudResultFile) writeField7(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetLinkExpiryTime() { - if err := oprot.WriteFieldBegin(ctx, "linkExpiryTime", thrift.I64, 7); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:linkExpiryTime: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.LinkExpiryTime)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.linkExpiryTime (7) field write error: ", p), err) } +func (p *TRowSet) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetArrowBatches() { + if err := oprot.WriteFieldBegin(ctx, "arrowBatches", thrift.LIST, 1281); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:arrowBatches: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ArrowBatches)); err != nil { + return thrift.PrependError("error writing list begin: ", err) + } + for _, v := range p.ArrowBatches { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 7:linkExpiryTime: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:arrowBatches: ", p), err) } } return err } -func (p *TDBSqlCloudResultFile) writeField8(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetHttpHeaders() { - if err := oprot.WriteFieldBegin(ctx, "httpHeaders", thrift.MAP, 8); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:httpHeaders: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.HttpHeaders)); err != nil { - return thrift.PrependError("error writing map begin: ", err) +func (p *TRowSet) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetResultLinks() { + if err := oprot.WriteFieldBegin(ctx, "resultLinks", thrift.LIST, 1282); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:resultLinks: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ResultLinks)); err != nil { + return thrift.PrependError("error writing list begin: ", err) } - for k, v := range p.HttpHeaders { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } + for _, v := range p.ResultLinks { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 8:httpHeaders: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:resultLinks: ", p), err) } } return err } -func (p *TDBSqlCloudResultFile) Equals(other *TDBSqlCloudResultFile) bool { +func (p *TRowSet) Equals(other *TRowSet) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.FilePath != other.FilePath { - if p.FilePath == nil || other.FilePath == nil { - return false - } - if (*p.FilePath) != (*other.FilePath) { return false } - } - if p.StartRowOffset != other.StartRowOffset { - if p.StartRowOffset == nil || other.StartRowOffset == nil { - return false - } - if (*p.StartRowOffset) != (*other.StartRowOffset) { return false } - } - if p.RowCount != other.RowCount { - if p.RowCount == nil || other.RowCount == nil { - return false - } - if (*p.RowCount) != (*other.RowCount) { return false } - } - if p.UncompressedBytes != other.UncompressedBytes { - if p.UncompressedBytes == nil || other.UncompressedBytes == nil { - return false - } - if (*p.UncompressedBytes) != (*other.UncompressedBytes) { return false } + if p.StartRowOffset != other.StartRowOffset { return false } + if len(p.Rows) != len(other.Rows) { return false } + for i, _tgt := range p.Rows { + _src38 := other.Rows[i] + if !_tgt.Equals(_src38) { return false } } - if p.CompressedBytes != other.CompressedBytes { - if p.CompressedBytes == nil || other.CompressedBytes == nil { - return false - } - if (*p.CompressedBytes) != (*other.CompressedBytes) { return false } + if len(p.Columns) != len(other.Columns) { return false } + for i, _tgt := range p.Columns { + _src39 := other.Columns[i] + if !_tgt.Equals(_src39) { return false } } - if p.FileLink != other.FileLink { - if p.FileLink == nil || other.FileLink == nil { + if bytes.Compare(p.BinaryColumns, other.BinaryColumns) != 0 { return false } + if p.ColumnCount != other.ColumnCount { + if p.ColumnCount == nil || other.ColumnCount == nil { return false } - if (*p.FileLink) != (*other.FileLink) { return false } + if (*p.ColumnCount) != (*other.ColumnCount) { return false } } - if p.LinkExpiryTime != other.LinkExpiryTime { - if p.LinkExpiryTime == nil || other.LinkExpiryTime == nil { - return false - } - if (*p.LinkExpiryTime) != (*other.LinkExpiryTime) { return false } + if len(p.ArrowBatches) != len(other.ArrowBatches) { return false } + for i, _tgt := range p.ArrowBatches { + _src40 := other.ArrowBatches[i] + if !_tgt.Equals(_src40) { return false } } - if len(p.HttpHeaders) != len(other.HttpHeaders) { return false } - for k, _tgt := range p.HttpHeaders { - _src36 := other.HttpHeaders[k] - if _tgt != _src36 { return false } + if len(p.ResultLinks) != len(other.ResultLinks) { return false } + for i, _tgt := range p.ResultLinks { + _src41 := other.ResultLinks[i] + if !_tgt.Equals(_src41) { return false } } return true } -func (p *TDBSqlCloudResultFile) String() string { +func (p *TRowSet) String() string { if p == nil { return "" } - return fmt.Sprintf("TDBSqlCloudResultFile(%+v)", *p) + return fmt.Sprintf("TRowSet(%+v)", *p) } -func (p *TDBSqlCloudResultFile) Validate() error { +func (p *TRowSet) Validate() error { return nil } // Attributes: -// - StartRowOffset -// - Rows -// - Columns -// - BinaryColumns -// - ColumnCount -// - ArrowBatches -// - ResultLinks -// - CloudFetchResults -type TRowSet struct { - StartRowOffset int64 `thrift:"startRowOffset,1,required" db:"startRowOffset" json:"startRowOffset"` - Rows []*TRow `thrift:"rows,2,required" db:"rows" json:"rows"` - Columns []*TColumn `thrift:"columns,3" db:"columns" json:"columns,omitempty"` - BinaryColumns []byte `thrift:"binaryColumns,4" db:"binaryColumns" json:"binaryColumns,omitempty"` - ColumnCount *int32 `thrift:"columnCount,5" db:"columnCount" json:"columnCount,omitempty"` - // unused fields # 6 to 1280 - ArrowBatches []*TSparkArrowBatch `thrift:"arrowBatches,1281" db:"arrowBatches" json:"arrowBatches,omitempty"` - ResultLinks []*TSparkArrowResultLink `thrift:"resultLinks,1282" db:"resultLinks" json:"resultLinks,omitempty"` - // unused fields # 1283 to 3328 - CloudFetchResults []*TDBSqlCloudResultFile `thrift:"cloudFetchResults,3329" db:"cloudFetchResults" json:"cloudFetchResults,omitempty"` +// - StatusCode +// - InfoMessages +// - SqlState +// - ErrorCode +// - ErrorMessage +// - DisplayMessage +// - ErrorDetailsJson +type TStatus struct { + StatusCode TStatusCode `thrift:"statusCode,1,required" db:"statusCode" json:"statusCode"` + InfoMessages []string `thrift:"infoMessages,2" db:"infoMessages" json:"infoMessages,omitempty"` + SqlState *string `thrift:"sqlState,3" db:"sqlState" json:"sqlState,omitempty"` + ErrorCode *int32 `thrift:"errorCode,4" db:"errorCode" json:"errorCode,omitempty"` + ErrorMessage *string `thrift:"errorMessage,5" db:"errorMessage" json:"errorMessage,omitempty"` + DisplayMessage *string `thrift:"displayMessage,6" db:"displayMessage" json:"displayMessage,omitempty"` + // unused fields # 7 to 1280 + ErrorDetailsJson *string `thrift:"errorDetailsJson,1281" db:"errorDetailsJson" json:"errorDetailsJson,omitempty"` } -func NewTRowSet() *TRowSet { - return &TRowSet{} +func NewTStatus() *TStatus { + return &TStatus{} } -func (p *TRowSet) GetStartRowOffset() int64 { - return p.StartRowOffset -} - -func (p *TRowSet) GetRows() []*TRow { - return p.Rows +func (p *TStatus) GetStatusCode() TStatusCode { + return p.StatusCode } -var TRowSet_Columns_DEFAULT []*TColumn +var TStatus_InfoMessages_DEFAULT []string -func (p *TRowSet) GetColumns() []*TColumn { - return p.Columns +func (p *TStatus) GetInfoMessages() []string { + return p.InfoMessages } -var TRowSet_BinaryColumns_DEFAULT []byte - -func (p *TRowSet) GetBinaryColumns() []byte { - return p.BinaryColumns +var TStatus_SqlState_DEFAULT string +func (p *TStatus) GetSqlState() string { + if !p.IsSetSqlState() { + return TStatus_SqlState_DEFAULT + } +return *p.SqlState } -var TRowSet_ColumnCount_DEFAULT int32 -func (p *TRowSet) GetColumnCount() int32 { - if !p.IsSetColumnCount() { - return TRowSet_ColumnCount_DEFAULT +var TStatus_ErrorCode_DEFAULT int32 +func (p *TStatus) GetErrorCode() int32 { + if !p.IsSetErrorCode() { + return TStatus_ErrorCode_DEFAULT } -return *p.ColumnCount +return *p.ErrorCode } -var TRowSet_ArrowBatches_DEFAULT []*TSparkArrowBatch - -func (p *TRowSet) GetArrowBatches() []*TSparkArrowBatch { - return p.ArrowBatches +var TStatus_ErrorMessage_DEFAULT string +func (p *TStatus) GetErrorMessage() string { + if !p.IsSetErrorMessage() { + return TStatus_ErrorMessage_DEFAULT + } +return *p.ErrorMessage } -var TRowSet_ResultLinks_DEFAULT []*TSparkArrowResultLink - -func (p *TRowSet) GetResultLinks() []*TSparkArrowResultLink { - return p.ResultLinks +var TStatus_DisplayMessage_DEFAULT string +func (p *TStatus) GetDisplayMessage() string { + if !p.IsSetDisplayMessage() { + return TStatus_DisplayMessage_DEFAULT + } +return *p.DisplayMessage } -var TRowSet_CloudFetchResults_DEFAULT []*TDBSqlCloudResultFile - -func (p *TRowSet) GetCloudFetchResults() []*TDBSqlCloudResultFile { - return p.CloudFetchResults +var TStatus_ErrorDetailsJson_DEFAULT string +func (p *TStatus) GetErrorDetailsJson() string { + if !p.IsSetErrorDetailsJson() { + return TStatus_ErrorDetailsJson_DEFAULT + } +return *p.ErrorDetailsJson } -func (p *TRowSet) IsSetColumns() bool { - return p.Columns != nil +func (p *TStatus) IsSetInfoMessages() bool { + return p.InfoMessages != nil } -func (p *TRowSet) IsSetBinaryColumns() bool { - return p.BinaryColumns != nil +func (p *TStatus) IsSetSqlState() bool { + return p.SqlState != nil } -func (p *TRowSet) IsSetColumnCount() bool { - return p.ColumnCount != nil +func (p *TStatus) IsSetErrorCode() bool { + return p.ErrorCode != nil } -func (p *TRowSet) IsSetArrowBatches() bool { - return p.ArrowBatches != nil +func (p *TStatus) IsSetErrorMessage() bool { + return p.ErrorMessage != nil } -func (p *TRowSet) IsSetResultLinks() bool { - return p.ResultLinks != nil +func (p *TStatus) IsSetDisplayMessage() bool { + return p.DisplayMessage != nil } -func (p *TRowSet) IsSetCloudFetchResults() bool { - return p.CloudFetchResults != nil +func (p *TStatus) IsSetErrorDetailsJson() bool { + return p.ErrorDetailsJson != nil } -func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } - var issetStartRowOffset bool = false; - var issetRows bool = false; + var issetStatusCode bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -8435,11 +8014,11 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.I64 { + if fieldTypeId == thrift.I32 { if err := p.ReadField1(ctx, iprot); err != nil { return err } - issetStartRowOffset = true + issetStatusCode = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -8450,14 +8029,13 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { if err := p.ReadField2(ctx, iprot); err != nil { return err } - issetRows = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 3: - if fieldTypeId == thrift.LIST { + if fieldTypeId == thrift.STRING { if err := p.ReadField3(ctx, iprot); err != nil { return err } @@ -8467,7 +8045,7 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { } } case 4: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.I32 { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -8477,7 +8055,7 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { } } case 5: - if fieldTypeId == thrift.I32 { + if fieldTypeId == thrift.STRING { if err := p.ReadField5(ctx, iprot); err != nil { return err } @@ -8486,9 +8064,9 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { return err } } - case 1281: - if fieldTypeId == thrift.LIST { - if err := p.ReadField1281(ctx, iprot); err != nil { + case 6: + if fieldTypeId == thrift.STRING { + if err := p.ReadField6(ctx, iprot); err != nil { return err } } else { @@ -8496,19 +8074,9 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { return err } } - case 1282: - if fieldTypeId == thrift.LIST { - if err := p.ReadField1282(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.LIST { - if err := p.ReadField3329(ctx, iprot); err != nil { + case 1281: + if fieldTypeId == thrift.STRING { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -8528,37 +8096,37 @@ func (p *TRowSet) Read(ctx context.Context, iprot thrift.TProtocol) error { if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } - if !issetStartRowOffset{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field StartRowOffset is not set")); - } - if !issetRows{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Rows is not set")); + if !issetStatusCode{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field StatusCode is not set")); } return nil } -func (p *TRowSet) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { +func (p *TStatus) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.StartRowOffset = v + temp := TStatusCode(v) + p.StatusCode = temp } return nil } -func (p *TRowSet) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TStatus) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { _, size, err := iprot.ReadListBegin(ctx) if err != nil { return thrift.PrependError("error reading list begin: ", err) } - tSlice := make([]*TRow, 0, size) - p.Rows = tSlice + tSlice := make([]string, 0, size) + p.InfoMessages = tSlice for i := 0; i < size; i ++ { - _elem37 := &TRow{} - if err := _elem37.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem37), err) - } - p.Rows = append(p.Rows, _elem37) +var _elem42 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) +} else { + _elem42 = v +} + p.InfoMessages = append(p.InfoMessages, _elem42) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -8566,106 +8134,53 @@ func (p *TRowSet) ReadField2(ctx context.Context, iprot thrift.TProtocol) error return nil } -func (p *TRowSet) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TColumn, 0, size) - p.Columns = tSlice - for i := 0; i < size; i ++ { - _elem38 := &TColumn{} - if err := _elem38.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem38), err) - } - p.Columns = append(p.Columns, _elem38) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } +func (p *TStatus) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 3: ", err) +} else { + p.SqlState = &v +} return nil } -func (p *TRowSet) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { +func (p *TStatus) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 4: ", err) } else { - p.BinaryColumns = v + p.ErrorCode = &v } return nil } -func (p *TRowSet) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { +func (p *TStatus) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 5: ", err) } else { - p.ColumnCount = &v + p.ErrorMessage = &v } return nil } -func (p *TRowSet) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TSparkArrowBatch, 0, size) - p.ArrowBatches = tSlice - for i := 0; i < size; i ++ { - _elem39 := &TSparkArrowBatch{} - if err := _elem39.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem39), err) - } - p.ArrowBatches = append(p.ArrowBatches, _elem39) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil +func (p *TStatus) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 6: ", err) +} else { + p.DisplayMessage = &v } - -func (p *TRowSet) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TSparkArrowResultLink, 0, size) - p.ResultLinks = tSlice - for i := 0; i < size; i ++ { - _elem40 := &TSparkArrowResultLink{} - if err := _elem40.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem40), err) - } - p.ResultLinks = append(p.ResultLinks, _elem40) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } return nil } -func (p *TRowSet) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TDBSqlCloudResultFile, 0, size) - p.CloudFetchResults = tSlice - for i := 0; i < size; i ++ { - _elem41 := &TDBSqlCloudResultFile{} - if err := _elem41.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem41), err) - } - p.CloudFetchResults = append(p.CloudFetchResults, _elem41) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } +func (p *TStatus) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 1281: ", err) +} else { + p.ErrorDetailsJson = &v +} return nil } -func (p *TRowSet) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TRowSet"); err != nil { +func (p *TStatus) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TStatus"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } @@ -8673,9 +8188,8 @@ func (p *TRowSet) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } if err := p.writeField5(ctx, oprot); err != nil { return err } + if err := p.writeField6(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -8684,254 +8198,186 @@ func (p *TRowSet) Write(ctx context.Context, oprot thrift.TProtocol) error { return nil } -func (p *TRowSet) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "startRowOffset", thrift.I64, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:startRowOffset: ", p), err) } - if err := oprot.WriteI64(ctx, int64(p.StartRowOffset)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.startRowOffset (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:startRowOffset: ", p), err) } - return err -} - -func (p *TRowSet) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "rows", thrift.LIST, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rows: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Rows)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.Rows { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } +func (p *TStatus) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "statusCode", thrift.I32, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:statusCode: ", p), err) } + if err := oprot.WriteI32(ctx, int32(p.StatusCode)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.statusCode (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rows: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:statusCode: ", p), err) } return err } -func (p *TRowSet) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetColumns() { - if err := oprot.WriteFieldBegin(ctx, "columns", thrift.LIST, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:columns: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Columns)); err != nil { +func (p *TStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetInfoMessages() { + if err := oprot.WriteFieldBegin(ctx, "infoMessages", thrift.LIST, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:infoMessages: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.InfoMessages)); err != nil { return thrift.PrependError("error writing list begin: ", err) } - for _, v := range p.Columns { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } + for _, v := range p.InfoMessages { + if err := oprot.WriteString(ctx, string(v)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } } if err := oprot.WriteListEnd(ctx); err != nil { return thrift.PrependError("error writing list end: ", err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:columns: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:infoMessages: ", p), err) } } return err } -func (p *TRowSet) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetBinaryColumns() { - if err := oprot.WriteFieldBegin(ctx, "binaryColumns", thrift.STRING, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:binaryColumns: ", p), err) } - if err := oprot.WriteBinary(ctx, p.BinaryColumns); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.binaryColumns (4) field write error: ", p), err) } +func (p *TStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetSqlState() { + if err := oprot.WriteFieldBegin(ctx, "sqlState", thrift.STRING, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sqlState: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.SqlState)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.sqlState (3) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:binaryColumns: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sqlState: ", p), err) } } return err } -func (p *TRowSet) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetColumnCount() { - if err := oprot.WriteFieldBegin(ctx, "columnCount", thrift.I32, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:columnCount: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ColumnCount)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.columnCount (5) field write error: ", p), err) } +func (p *TStatus) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetErrorCode() { + if err := oprot.WriteFieldBegin(ctx, "errorCode", thrift.I32, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:errorCode: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.ErrorCode)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.errorCode (4) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:columnCount: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:errorCode: ", p), err) } } return err } -func (p *TRowSet) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetArrowBatches() { - if err := oprot.WriteFieldBegin(ctx, "arrowBatches", thrift.LIST, 1281); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:arrowBatches: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ArrowBatches)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.ArrowBatches { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } +func (p *TStatus) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetErrorMessage() { + if err := oprot.WriteFieldBegin(ctx, "errorMessage", thrift.STRING, 5); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:errorMessage: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.ErrorMessage)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.errorMessage (5) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:arrowBatches: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 5:errorMessage: ", p), err) } } return err } -func (p *TRowSet) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultLinks() { - if err := oprot.WriteFieldBegin(ctx, "resultLinks", thrift.LIST, 1282); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:resultLinks: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ResultLinks)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.ResultLinks { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } +func (p *TStatus) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetDisplayMessage() { + if err := oprot.WriteFieldBegin(ctx, "displayMessage", thrift.STRING, 6); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:displayMessage: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.DisplayMessage)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.displayMessage (6) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:resultLinks: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 6:displayMessage: ", p), err) } } return err } -func (p *TRowSet) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCloudFetchResults() { - if err := oprot.WriteFieldBegin(ctx, "cloudFetchResults", thrift.LIST, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:cloudFetchResults: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.CloudFetchResults)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.CloudFetchResults { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } +func (p *TStatus) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetErrorDetailsJson() { + if err := oprot.WriteFieldBegin(ctx, "errorDetailsJson", thrift.STRING, 1281); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:errorDetailsJson: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.ErrorDetailsJson)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.errorDetailsJson (1281) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:cloudFetchResults: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:errorDetailsJson: ", p), err) } } return err } -func (p *TRowSet) Equals(other *TRowSet) bool { +func (p *TStatus) Equals(other *TStatus) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.StartRowOffset != other.StartRowOffset { return false } - if len(p.Rows) != len(other.Rows) { return false } - for i, _tgt := range p.Rows { - _src42 := other.Rows[i] - if !_tgt.Equals(_src42) { return false } + if p.StatusCode != other.StatusCode { return false } + if len(p.InfoMessages) != len(other.InfoMessages) { return false } + for i, _tgt := range p.InfoMessages { + _src43 := other.InfoMessages[i] + if _tgt != _src43 { return false } } - if len(p.Columns) != len(other.Columns) { return false } - for i, _tgt := range p.Columns { - _src43 := other.Columns[i] - if !_tgt.Equals(_src43) { return false } + if p.SqlState != other.SqlState { + if p.SqlState == nil || other.SqlState == nil { + return false + } + if (*p.SqlState) != (*other.SqlState) { return false } } - if bytes.Compare(p.BinaryColumns, other.BinaryColumns) != 0 { return false } - if p.ColumnCount != other.ColumnCount { - if p.ColumnCount == nil || other.ColumnCount == nil { + if p.ErrorCode != other.ErrorCode { + if p.ErrorCode == nil || other.ErrorCode == nil { return false } - if (*p.ColumnCount) != (*other.ColumnCount) { return false } + if (*p.ErrorCode) != (*other.ErrorCode) { return false } } - if len(p.ArrowBatches) != len(other.ArrowBatches) { return false } - for i, _tgt := range p.ArrowBatches { - _src44 := other.ArrowBatches[i] - if !_tgt.Equals(_src44) { return false } + if p.ErrorMessage != other.ErrorMessage { + if p.ErrorMessage == nil || other.ErrorMessage == nil { + return false + } + if (*p.ErrorMessage) != (*other.ErrorMessage) { return false } } - if len(p.ResultLinks) != len(other.ResultLinks) { return false } - for i, _tgt := range p.ResultLinks { - _src45 := other.ResultLinks[i] - if !_tgt.Equals(_src45) { return false } + if p.DisplayMessage != other.DisplayMessage { + if p.DisplayMessage == nil || other.DisplayMessage == nil { + return false + } + if (*p.DisplayMessage) != (*other.DisplayMessage) { return false } } - if len(p.CloudFetchResults) != len(other.CloudFetchResults) { return false } - for i, _tgt := range p.CloudFetchResults { - _src46 := other.CloudFetchResults[i] - if !_tgt.Equals(_src46) { return false } + if p.ErrorDetailsJson != other.ErrorDetailsJson { + if p.ErrorDetailsJson == nil || other.ErrorDetailsJson == nil { + return false + } + if (*p.ErrorDetailsJson) != (*other.ErrorDetailsJson) { return false } } return true } -func (p *TRowSet) String() string { +func (p *TStatus) String() string { if p == nil { return "" } - return fmt.Sprintf("TRowSet(%+v)", *p) + return fmt.Sprintf("TStatus(%+v)", *p) } -func (p *TRowSet) Validate() error { +func (p *TStatus) Validate() error { return nil } // Attributes: -// - Name -// - SqlStatement -// - Properties -// - ViewSchema -type TDBSqlTempView struct { - Name *string `thrift:"name,1" db:"name" json:"name,omitempty"` - SqlStatement *string `thrift:"sqlStatement,2" db:"sqlStatement" json:"sqlStatement,omitempty"` - Properties map[string]string `thrift:"properties,3" db:"properties" json:"properties,omitempty"` - ViewSchema *string `thrift:"viewSchema,4" db:"viewSchema" json:"viewSchema,omitempty"` +// - CatalogName +// - SchemaName +type TNamespace struct { + CatalogName *TIdentifier `thrift:"catalogName,1" db:"catalogName" json:"catalogName,omitempty"` + SchemaName *TIdentifier `thrift:"schemaName,2" db:"schemaName" json:"schemaName,omitempty"` } -func NewTDBSqlTempView() *TDBSqlTempView { - return &TDBSqlTempView{} +func NewTNamespace() *TNamespace { + return &TNamespace{} } -var TDBSqlTempView_Name_DEFAULT string -func (p *TDBSqlTempView) GetName() string { - if !p.IsSetName() { - return TDBSqlTempView_Name_DEFAULT - } -return *p.Name -} -var TDBSqlTempView_SqlStatement_DEFAULT string -func (p *TDBSqlTempView) GetSqlStatement() string { - if !p.IsSetSqlStatement() { - return TDBSqlTempView_SqlStatement_DEFAULT +var TNamespace_CatalogName_DEFAULT TIdentifier +func (p *TNamespace) GetCatalogName() TIdentifier { + if !p.IsSetCatalogName() { + return TNamespace_CatalogName_DEFAULT } -return *p.SqlStatement -} -var TDBSqlTempView_Properties_DEFAULT map[string]string - -func (p *TDBSqlTempView) GetProperties() map[string]string { - return p.Properties +return *p.CatalogName } -var TDBSqlTempView_ViewSchema_DEFAULT string -func (p *TDBSqlTempView) GetViewSchema() string { - if !p.IsSetViewSchema() { - return TDBSqlTempView_ViewSchema_DEFAULT +var TNamespace_SchemaName_DEFAULT TIdentifier +func (p *TNamespace) GetSchemaName() TIdentifier { + if !p.IsSetSchemaName() { + return TNamespace_SchemaName_DEFAULT } -return *p.ViewSchema -} -func (p *TDBSqlTempView) IsSetName() bool { - return p.Name != nil -} - -func (p *TDBSqlTempView) IsSetSqlStatement() bool { - return p.SqlStatement != nil +return *p.SchemaName } - -func (p *TDBSqlTempView) IsSetProperties() bool { - return p.Properties != nil +func (p *TNamespace) IsSetCatalogName() bool { + return p.CatalogName != nil } -func (p *TDBSqlTempView) IsSetViewSchema() bool { - return p.ViewSchema != nil +func (p *TNamespace) IsSetSchemaName() bool { + return p.SchemaName != nil } -func (p *TDBSqlTempView) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TNamespace) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } @@ -8964,26 +8410,6 @@ func (p *TDBSqlTempView) Read(ctx context.Context, iprot thrift.TProtocol) error return err } } - case 3: - if fieldTypeId == thrift.MAP { - if err := p.ReadField3(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 4: - if fieldTypeId == thrift.STRING { - if err := p.ReadField4(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -8999,69 +8425,32 @@ func (p *TDBSqlTempView) Read(ctx context.Context, iprot thrift.TProtocol) error return nil } -func (p *TDBSqlTempView) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TNamespace) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.Name = &v + temp := TIdentifier(v) + p.CatalogName = &temp } return nil } -func (p *TDBSqlTempView) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TNamespace) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 2: ", err) } else { - p.SqlStatement = &v -} - return nil -} - -func (p *TDBSqlTempView) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) - if err != nil { - return thrift.PrependError("error reading map begin: ", err) - } - tMap := make(map[string]string, size) - p.Properties = tMap - for i := 0; i < size; i ++ { -var _key47 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key47 = v -} -var _val48 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val48 = v -} - p.Properties[_key47] = _val48 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) - } - return nil -} - -func (p *TDBSqlTempView) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 4: ", err) -} else { - p.ViewSchema = &v + temp := TIdentifier(v) + p.SchemaName = &temp } return nil } -func (p *TDBSqlTempView) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlTempView"); err != nil { +func (p *TNamespace) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TNamespace"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3(ctx, oprot); err != nil { return err } - if err := p.writeField4(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -9070,132 +8459,88 @@ func (p *TDBSqlTempView) Write(ctx context.Context, oprot thrift.TProtocol) erro return nil } -func (p *TDBSqlTempView) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetName() { - if err := oprot.WriteFieldBegin(ctx, "name", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:name: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Name)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.name (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:name: ", p), err) } - } - return err -} - -func (p *TDBSqlTempView) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSqlStatement() { - if err := oprot.WriteFieldBegin(ctx, "sqlStatement", thrift.STRING, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:sqlStatement: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.SqlStatement)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.sqlStatement (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:sqlStatement: ", p), err) } - } - return err -} - -func (p *TDBSqlTempView) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetProperties() { - if err := oprot.WriteFieldBegin(ctx, "properties", thrift.MAP, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:properties: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Properties)); err != nil { - return thrift.PrependError("error writing map begin: ", err) - } - for k, v := range p.Properties { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) - } +func (p *TNamespace) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetCatalogName() { + if err := oprot.WriteFieldBegin(ctx, "catalogName", thrift.STRING, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:catalogName: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.CatalogName)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.catalogName (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:properties: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:catalogName: ", p), err) } } return err } -func (p *TDBSqlTempView) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetViewSchema() { - if err := oprot.WriteFieldBegin(ctx, "viewSchema", thrift.STRING, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:viewSchema: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.ViewSchema)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.viewSchema (4) field write error: ", p), err) } +func (p *TNamespace) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetSchemaName() { + if err := oprot.WriteFieldBegin(ctx, "schemaName", thrift.STRING, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:schemaName: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.SchemaName)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.schemaName (2) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:viewSchema: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:schemaName: ", p), err) } } return err } -func (p *TDBSqlTempView) Equals(other *TDBSqlTempView) bool { +func (p *TNamespace) Equals(other *TNamespace) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.Name != other.Name { - if p.Name == nil || other.Name == nil { - return false - } - if (*p.Name) != (*other.Name) { return false } - } - if p.SqlStatement != other.SqlStatement { - if p.SqlStatement == nil || other.SqlStatement == nil { + if p.CatalogName != other.CatalogName { + if p.CatalogName == nil || other.CatalogName == nil { return false } - if (*p.SqlStatement) != (*other.SqlStatement) { return false } - } - if len(p.Properties) != len(other.Properties) { return false } - for k, _tgt := range p.Properties { - _src49 := other.Properties[k] - if _tgt != _src49 { return false } + if (*p.CatalogName) != (*other.CatalogName) { return false } } - if p.ViewSchema != other.ViewSchema { - if p.ViewSchema == nil || other.ViewSchema == nil { + if p.SchemaName != other.SchemaName { + if p.SchemaName == nil || other.SchemaName == nil { return false } - if (*p.ViewSchema) != (*other.ViewSchema) { return false } + if (*p.SchemaName) != (*other.SchemaName) { return false } } return true } -func (p *TDBSqlTempView) String() string { +func (p *TNamespace) String() string { if p == nil { return "" } - return fmt.Sprintf("TDBSqlTempView(%+v)", *p) + return fmt.Sprintf("TNamespace(%+v)", *p) } -func (p *TDBSqlTempView) Validate() error { +func (p *TNamespace) Validate() error { return nil } // Attributes: -// - SupportsMultipleCatalogs -type TDBSqlSessionCapabilities struct { - SupportsMultipleCatalogs *bool `thrift:"supportsMultipleCatalogs,1" db:"supportsMultipleCatalogs" json:"supportsMultipleCatalogs,omitempty"` +// - GUID +// - Secret +type THandleIdentifier struct { + GUID []byte `thrift:"guid,1,required" db:"guid" json:"guid"` + Secret []byte `thrift:"secret,2,required" db:"secret" json:"secret"` } -func NewTDBSqlSessionCapabilities() *TDBSqlSessionCapabilities { - return &TDBSqlSessionCapabilities{} +func NewTHandleIdentifier() *THandleIdentifier { + return &THandleIdentifier{} } -var TDBSqlSessionCapabilities_SupportsMultipleCatalogs_DEFAULT bool -func (p *TDBSqlSessionCapabilities) GetSupportsMultipleCatalogs() bool { - if !p.IsSetSupportsMultipleCatalogs() { - return TDBSqlSessionCapabilities_SupportsMultipleCatalogs_DEFAULT - } -return *p.SupportsMultipleCatalogs -} -func (p *TDBSqlSessionCapabilities) IsSetSupportsMultipleCatalogs() bool { - return p.SupportsMultipleCatalogs != nil + +func (p *THandleIdentifier) GetGUID() []byte { + return p.GUID } -func (p *TDBSqlSessionCapabilities) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *THandleIdentifier) GetSecret() []byte { + return p.Secret +} +func (p *THandleIdentifier) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } + var issetGUID bool = false; + var issetSecret bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -9205,10 +8550,22 @@ func (p *TDBSqlSessionCapabilities) Read(ctx context.Context, iprot thrift.TProt if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.BOOL { + if fieldTypeId == thrift.STRING { if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetGUID = true + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + case 2: + if fieldTypeId == thrift.STRING { + if err := p.ReadField2(ctx, iprot); err != nil { + return err + } + issetSecret = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -9226,237 +8583,258 @@ func (p *TDBSqlSessionCapabilities) Read(ctx context.Context, iprot thrift.TProt if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } + if !issetGUID{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field GUID is not set")); + } + if !issetSecret{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Secret is not set")); + } return nil } -func (p *TDBSqlSessionCapabilities) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { +func (p *THandleIdentifier) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBinary(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.SupportsMultipleCatalogs = &v + p.GUID = v } return nil } -func (p *TDBSqlSessionCapabilities) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlSessionCapabilities"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { +func (p *THandleIdentifier) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBinary(ctx); err != nil { + return thrift.PrependError("error reading field 2: ", err) +} else { + p.Secret = v +} + return nil +} + +func (p *THandleIdentifier) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "THandleIdentifier"); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } + if p != nil { + if err := p.writeField1(ctx, oprot); err != nil { return err } + if err := p.writeField2(ctx, oprot); err != nil { return err } + } + if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } if err := oprot.WriteStructEnd(ctx); err != nil { return thrift.PrependError("write struct stop error: ", err) } return nil } -func (p *TDBSqlSessionCapabilities) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSupportsMultipleCatalogs() { - if err := oprot.WriteFieldBegin(ctx, "supportsMultipleCatalogs", thrift.BOOL, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:supportsMultipleCatalogs: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.SupportsMultipleCatalogs)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.supportsMultipleCatalogs (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:supportsMultipleCatalogs: ", p), err) } - } +func (p *THandleIdentifier) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "guid", thrift.STRING, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:guid: ", p), err) } + if err := oprot.WriteBinary(ctx, p.GUID); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.guid (1) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:guid: ", p), err) } + return err +} + +func (p *THandleIdentifier) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "secret", thrift.STRING, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:secret: ", p), err) } + if err := oprot.WriteBinary(ctx, p.Secret); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.secret (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:secret: ", p), err) } return err } -func (p *TDBSqlSessionCapabilities) Equals(other *TDBSqlSessionCapabilities) bool { +func (p *THandleIdentifier) Equals(other *THandleIdentifier) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.SupportsMultipleCatalogs != other.SupportsMultipleCatalogs { - if p.SupportsMultipleCatalogs == nil || other.SupportsMultipleCatalogs == nil { - return false - } - if (*p.SupportsMultipleCatalogs) != (*other.SupportsMultipleCatalogs) { return false } - } + if bytes.Compare(p.GUID, other.GUID) != 0 { return false } + if bytes.Compare(p.Secret, other.Secret) != 0 { return false } return true } -func (p *TDBSqlSessionCapabilities) String() string { +func (p *THandleIdentifier) String() string { if p == nil { return "" } - return fmt.Sprintf("TDBSqlSessionCapabilities(%+v)", *p) + return fmt.Sprintf("THandleIdentifier(%+v)", *p) } -func (p *TDBSqlSessionCapabilities) Validate() error { +func (p *THandleIdentifier) Validate() error { return nil } // Attributes: -// - ClassName -// - Usage -// - Name -// - Extended -// - Db -// - Arguments -// - Examples -// - Note -// - Group -// - Since -// - Deprecated -// - Source -type TExpressionInfo struct { - ClassName *string `thrift:"className,1" db:"className" json:"className,omitempty"` - Usage *string `thrift:"usage,2" db:"usage" json:"usage,omitempty"` - Name *string `thrift:"name,3" db:"name" json:"name,omitempty"` - Extended *string `thrift:"extended,4" db:"extended" json:"extended,omitempty"` - Db *string `thrift:"db,5" db:"db" json:"db,omitempty"` - Arguments *string `thrift:"arguments,6" db:"arguments" json:"arguments,omitempty"` - Examples *string `thrift:"examples,7" db:"examples" json:"examples,omitempty"` - Note *string `thrift:"note,8" db:"note" json:"note,omitempty"` - Group *string `thrift:"group,9" db:"group" json:"group,omitempty"` - Since *string `thrift:"since,10" db:"since" json:"since,omitempty"` - Deprecated *string `thrift:"deprecated,11" db:"deprecated" json:"deprecated,omitempty"` - Source *string `thrift:"source,12" db:"source" json:"source,omitempty"` -} - -func NewTExpressionInfo() *TExpressionInfo { - return &TExpressionInfo{} -} - -var TExpressionInfo_ClassName_DEFAULT string -func (p *TExpressionInfo) GetClassName() string { - if !p.IsSetClassName() { - return TExpressionInfo_ClassName_DEFAULT - } -return *p.ClassName -} -var TExpressionInfo_Usage_DEFAULT string -func (p *TExpressionInfo) GetUsage() string { - if !p.IsSetUsage() { - return TExpressionInfo_Usage_DEFAULT - } -return *p.Usage -} -var TExpressionInfo_Name_DEFAULT string -func (p *TExpressionInfo) GetName() string { - if !p.IsSetName() { - return TExpressionInfo_Name_DEFAULT - } -return *p.Name +// - SessionId +type TSessionHandle struct { + SessionId *THandleIdentifier `thrift:"sessionId,1,required" db:"sessionId" json:"sessionId"` } -var TExpressionInfo_Extended_DEFAULT string -func (p *TExpressionInfo) GetExtended() string { - if !p.IsSetExtended() { - return TExpressionInfo_Extended_DEFAULT - } -return *p.Extended + +func NewTSessionHandle() *TSessionHandle { + return &TSessionHandle{} } -var TExpressionInfo_Db_DEFAULT string -func (p *TExpressionInfo) GetDb() string { - if !p.IsSetDb() { - return TExpressionInfo_Db_DEFAULT + +var TSessionHandle_SessionId_DEFAULT *THandleIdentifier +func (p *TSessionHandle) GetSessionId() *THandleIdentifier { + if !p.IsSetSessionId() { + return TSessionHandle_SessionId_DEFAULT } -return *p.Db +return p.SessionId } -var TExpressionInfo_Arguments_DEFAULT string -func (p *TExpressionInfo) GetArguments() string { - if !p.IsSetArguments() { - return TExpressionInfo_Arguments_DEFAULT - } -return *p.Arguments +func (p *TSessionHandle) IsSetSessionId() bool { + return p.SessionId != nil } -var TExpressionInfo_Examples_DEFAULT string -func (p *TExpressionInfo) GetExamples() string { - if !p.IsSetExamples() { - return TExpressionInfo_Examples_DEFAULT + +func (p *TSessionHandle) Read(ctx context.Context, iprot thrift.TProtocol) error { + if _, err := iprot.ReadStructBegin(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } -return *p.Examples -} -var TExpressionInfo_Note_DEFAULT string -func (p *TExpressionInfo) GetNote() string { - if !p.IsSetNote() { - return TExpressionInfo_Note_DEFAULT + + var issetSessionId bool = false; + + for { + _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) + if err != nil { + return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) + } + if fieldTypeId == thrift.STOP { break; } + switch fieldId { + case 1: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1(ctx, iprot); err != nil { + return err + } + issetSessionId = true + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + default: + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + if err := iprot.ReadFieldEnd(ctx); err != nil { + return err + } } -return *p.Note -} -var TExpressionInfo_Group_DEFAULT string -func (p *TExpressionInfo) GetGroup() string { - if !p.IsSetGroup() { - return TExpressionInfo_Group_DEFAULT + if err := iprot.ReadStructEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } -return *p.Group -} -var TExpressionInfo_Since_DEFAULT string -func (p *TExpressionInfo) GetSince() string { - if !p.IsSetSince() { - return TExpressionInfo_Since_DEFAULT + if !issetSessionId{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionId is not set")); } -return *p.Since + return nil } -var TExpressionInfo_Deprecated_DEFAULT string -func (p *TExpressionInfo) GetDeprecated() string { - if !p.IsSetDeprecated() { - return TExpressionInfo_Deprecated_DEFAULT + +func (p *TSessionHandle) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.SessionId = &THandleIdentifier{} + if err := p.SessionId.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionId), err) } -return *p.Deprecated + return nil } -var TExpressionInfo_Source_DEFAULT string -func (p *TExpressionInfo) GetSource() string { - if !p.IsSetSource() { - return TExpressionInfo_Source_DEFAULT + +func (p *TSessionHandle) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TSessionHandle"); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } + if p != nil { + if err := p.writeField1(ctx, oprot); err != nil { return err } } -return *p.Source -} -func (p *TExpressionInfo) IsSetClassName() bool { - return p.ClassName != nil + if err := oprot.WriteFieldStop(ctx); err != nil { + return thrift.PrependError("write field stop error: ", err) } + if err := oprot.WriteStructEnd(ctx); err != nil { + return thrift.PrependError("write struct stop error: ", err) } + return nil } -func (p *TExpressionInfo) IsSetUsage() bool { - return p.Usage != nil +func (p *TSessionHandle) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionId: ", p), err) } + if err := p.SessionId.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionId), err) + } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionId: ", p), err) } + return err } -func (p *TExpressionInfo) IsSetName() bool { - return p.Name != nil +func (p *TSessionHandle) Equals(other *TSessionHandle) bool { + if p == other { + return true + } else if p == nil || other == nil { + return false + } + if !p.SessionId.Equals(other.SessionId) { return false } + return true } -func (p *TExpressionInfo) IsSetExtended() bool { - return p.Extended != nil +func (p *TSessionHandle) String() string { + if p == nil { + return "" + } + return fmt.Sprintf("TSessionHandle(%+v)", *p) } -func (p *TExpressionInfo) IsSetDb() bool { - return p.Db != nil +func (p *TSessionHandle) Validate() error { + return nil } - -func (p *TExpressionInfo) IsSetArguments() bool { - return p.Arguments != nil +// Attributes: +// - OperationId +// - OperationType +// - HasResultSet +// - ModifiedRowCount +type TOperationHandle struct { + OperationId *THandleIdentifier `thrift:"operationId,1,required" db:"operationId" json:"operationId"` + OperationType TOperationType `thrift:"operationType,2,required" db:"operationType" json:"operationType"` + HasResultSet bool `thrift:"hasResultSet,3,required" db:"hasResultSet" json:"hasResultSet"` + ModifiedRowCount *float64 `thrift:"modifiedRowCount,4" db:"modifiedRowCount" json:"modifiedRowCount,omitempty"` } -func (p *TExpressionInfo) IsSetExamples() bool { - return p.Examples != nil +func NewTOperationHandle() *TOperationHandle { + return &TOperationHandle{} } -func (p *TExpressionInfo) IsSetNote() bool { - return p.Note != nil +var TOperationHandle_OperationId_DEFAULT *THandleIdentifier +func (p *TOperationHandle) GetOperationId() *THandleIdentifier { + if !p.IsSetOperationId() { + return TOperationHandle_OperationId_DEFAULT + } +return p.OperationId } -func (p *TExpressionInfo) IsSetGroup() bool { - return p.Group != nil +func (p *TOperationHandle) GetOperationType() TOperationType { + return p.OperationType } -func (p *TExpressionInfo) IsSetSince() bool { - return p.Since != nil +func (p *TOperationHandle) GetHasResultSet() bool { + return p.HasResultSet } - -func (p *TExpressionInfo) IsSetDeprecated() bool { - return p.Deprecated != nil +var TOperationHandle_ModifiedRowCount_DEFAULT float64 +func (p *TOperationHandle) GetModifiedRowCount() float64 { + if !p.IsSetModifiedRowCount() { + return TOperationHandle_ModifiedRowCount_DEFAULT + } +return *p.ModifiedRowCount +} +func (p *TOperationHandle) IsSetOperationId() bool { + return p.OperationId != nil } -func (p *TExpressionInfo) IsSetSource() bool { - return p.Source != nil +func (p *TOperationHandle) IsSetModifiedRowCount() bool { + return p.ModifiedRowCount != nil } -func (p *TExpressionInfo) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOperationHandle) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } + var issetOperationId bool = false; + var issetOperationType bool = false; + var issetHasResultSet bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -9466,37 +8844,40 @@ func (p *TExpressionInfo) Read(ctx context.Context, iprot thrift.TProtocol) erro if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetOperationId = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 2: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.I32 { if err := p.ReadField2(ctx, iprot); err != nil { return err } + issetOperationType = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 3: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.BOOL { if err := p.ReadField3(ctx, iprot); err != nil { return err } + issetHasResultSet = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 4: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.DOUBLE { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -9505,89 +8886,9 @@ func (p *TExpressionInfo) Read(ctx context.Context, iprot thrift.TProtocol) erro return err } } - case 5: - if fieldTypeId == thrift.STRING { - if err := p.ReadField5(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 6: - if fieldTypeId == thrift.STRING { - if err := p.ReadField6(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 7: - if fieldTypeId == thrift.STRING { - if err := p.ReadField7(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 8: - if fieldTypeId == thrift.STRING { - if err := p.ReadField8(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 9: - if fieldTypeId == thrift.STRING { - if err := p.ReadField9(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 10: - if fieldTypeId == thrift.STRING { - if err := p.ReadField10(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 11: - if fieldTypeId == thrift.STRING { - if err := p.ReadField11(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 12: - if fieldTypeId == thrift.STRING { - if err := p.ReadField12(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err + default: + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err } } if err := iprot.ReadFieldEnd(ctx); err != nil { @@ -9597,133 +8898,62 @@ func (p *TExpressionInfo) Read(ctx context.Context, iprot thrift.TProtocol) erro if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } + if !issetOperationId{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field OperationId is not set")); + } + if !issetOperationType{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field OperationType is not set")); + } + if !issetHasResultSet{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field HasResultSet is not set")); + } return nil } -func (p *TExpressionInfo) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - p.ClassName = &v -} +func (p *TOperationHandle) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.OperationId = &THandleIdentifier{} + if err := p.OperationId.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) + } return nil } -func (p *TExpressionInfo) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { +func (p *TOperationHandle) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 2: ", err) } else { - p.Usage = &v + temp := TOperationType(v) + p.OperationType = temp } return nil } -func (p *TExpressionInfo) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { +func (p *TOperationHandle) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { return thrift.PrependError("error reading field 3: ", err) } else { - p.Name = &v + p.HasResultSet = v } return nil } -func (p *TExpressionInfo) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { +func (p *TOperationHandle) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadDouble(ctx); err != nil { return thrift.PrependError("error reading field 4: ", err) } else { - p.Extended = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 5: ", err) -} else { - p.Db = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 6: ", err) -} else { - p.Arguments = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField7(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 7: ", err) -} else { - p.Examples = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField8(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 8: ", err) -} else { - p.Note = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField9(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 9: ", err) -} else { - p.Group = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField10(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 10: ", err) -} else { - p.Since = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField11(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 11: ", err) -} else { - p.Deprecated = &v -} - return nil -} - -func (p *TExpressionInfo) ReadField12(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 12: ", err) -} else { - p.Source = &v + p.ModifiedRowCount = &v } return nil } -func (p *TExpressionInfo) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TExpressionInfo"); err != nil { +func (p *TOperationHandle) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TOperationHandle"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField5(ctx, oprot); err != nil { return err } - if err := p.writeField6(ctx, oprot); err != nil { return err } - if err := p.writeField7(ctx, oprot); err != nil { return err } - if err := p.writeField8(ctx, oprot); err != nil { return err } - if err := p.writeField9(ctx, oprot); err != nil { return err } - if err := p.writeField10(ctx, oprot); err != nil { return err } - if err := p.writeField11(ctx, oprot); err != nil { return err } - if err := p.writeField12(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -9732,451 +8962,198 @@ func (p *TExpressionInfo) Write(ctx context.Context, oprot thrift.TProtocol) err return nil } -func (p *TExpressionInfo) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetClassName() { - if err := oprot.WriteFieldBegin(ctx, "className", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:className: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.ClassName)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.className (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:className: ", p), err) } +func (p *TOperationHandle) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:operationId: ", p), err) } + if err := p.OperationId.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:operationId: ", p), err) } return err } -func (p *TExpressionInfo) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetUsage() { - if err := oprot.WriteFieldBegin(ctx, "usage", thrift.STRING, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:usage: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Usage)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.usage (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:usage: ", p), err) } - } +func (p *TOperationHandle) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "operationType", thrift.I32, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:operationType: ", p), err) } + if err := oprot.WriteI32(ctx, int32(p.OperationType)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.operationType (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:operationType: ", p), err) } return err } -func (p *TExpressionInfo) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetName() { - if err := oprot.WriteFieldBegin(ctx, "name", thrift.STRING, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:name: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Name)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.name (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:name: ", p), err) } - } +func (p *TOperationHandle) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "hasResultSet", thrift.BOOL, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:hasResultSet: ", p), err) } + if err := oprot.WriteBool(ctx, bool(p.HasResultSet)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.hasResultSet (3) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:hasResultSet: ", p), err) } return err } -func (p *TExpressionInfo) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExtended() { - if err := oprot.WriteFieldBegin(ctx, "extended", thrift.STRING, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:extended: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Extended)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.extended (4) field write error: ", p), err) } +func (p *TOperationHandle) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetModifiedRowCount() { + if err := oprot.WriteFieldBegin(ctx, "modifiedRowCount", thrift.DOUBLE, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:modifiedRowCount: ", p), err) } + if err := oprot.WriteDouble(ctx, float64(*p.ModifiedRowCount)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.modifiedRowCount (4) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:extended: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:modifiedRowCount: ", p), err) } } return err } -func (p *TExpressionInfo) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetDb() { - if err := oprot.WriteFieldBegin(ctx, "db", thrift.STRING, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:db: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Db)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.db (5) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:db: ", p), err) } +func (p *TOperationHandle) Equals(other *TOperationHandle) bool { + if p == other { + return true + } else if p == nil || other == nil { + return false } - return err + if !p.OperationId.Equals(other.OperationId) { return false } + if p.OperationType != other.OperationType { return false } + if p.HasResultSet != other.HasResultSet { return false } + if p.ModifiedRowCount != other.ModifiedRowCount { + if p.ModifiedRowCount == nil || other.ModifiedRowCount == nil { + return false + } + if (*p.ModifiedRowCount) != (*other.ModifiedRowCount) { return false } + } + return true } -func (p *TExpressionInfo) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetArguments() { - if err := oprot.WriteFieldBegin(ctx, "arguments", thrift.STRING, 6); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:arguments: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Arguments)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.arguments (6) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 6:arguments: ", p), err) } +func (p *TOperationHandle) String() string { + if p == nil { + return "" } - return err + return fmt.Sprintf("TOperationHandle(%+v)", *p) } -func (p *TExpressionInfo) writeField7(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExamples() { - if err := oprot.WriteFieldBegin(ctx, "examples", thrift.STRING, 7); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:examples: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Examples)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.examples (7) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 7:examples: ", p), err) } - } - return err +func (p *TOperationHandle) Validate() error { + return nil +} +// Attributes: +// - ClientProtocol +// - Username +// - Password +// - Configuration +// - GetInfos +// - ClientProtocolI64 +// - ConnectionProperties +// - InitialNamespace +// - CanUseMultipleCatalogs +type TOpenSessionReq struct { + ClientProtocol TProtocolVersion `thrift:"client_protocol,1" db:"client_protocol" json:"client_protocol"` + Username *string `thrift:"username,2" db:"username" json:"username,omitempty"` + Password *string `thrift:"password,3" db:"password" json:"password,omitempty"` + Configuration map[string]string `thrift:"configuration,4" db:"configuration" json:"configuration,omitempty"` + // unused fields # 5 to 1280 + GetInfos []TGetInfoType `thrift:"getInfos,1281" db:"getInfos" json:"getInfos,omitempty"` + ClientProtocolI64 *int64 `thrift:"client_protocol_i64,1282" db:"client_protocol_i64" json:"client_protocol_i64,omitempty"` + ConnectionProperties map[string]string `thrift:"connectionProperties,1283" db:"connectionProperties" json:"connectionProperties,omitempty"` + InitialNamespace *TNamespace `thrift:"initialNamespace,1284" db:"initialNamespace" json:"initialNamespace,omitempty"` + CanUseMultipleCatalogs *bool `thrift:"canUseMultipleCatalogs,1285" db:"canUseMultipleCatalogs" json:"canUseMultipleCatalogs,omitempty"` } -func (p *TExpressionInfo) writeField8(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetNote() { - if err := oprot.WriteFieldBegin(ctx, "note", thrift.STRING, 8); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:note: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Note)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.note (8) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 8:note: ", p), err) } - } - return err +func NewTOpenSessionReq() *TOpenSessionReq { + return &TOpenSessionReq{ +ClientProtocol: -7, +} } -func (p *TExpressionInfo) writeField9(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetGroup() { - if err := oprot.WriteFieldBegin(ctx, "group", thrift.STRING, 9); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:group: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Group)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.group (9) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 9:group: ", p), err) } +var TOpenSessionReq_ClientProtocol_DEFAULT TProtocolVersion = -7 + +func (p *TOpenSessionReq) GetClientProtocol() TProtocolVersion { + return p.ClientProtocol +} +var TOpenSessionReq_Username_DEFAULT string +func (p *TOpenSessionReq) GetUsername() string { + if !p.IsSetUsername() { + return TOpenSessionReq_Username_DEFAULT } - return err +return *p.Username } - -func (p *TExpressionInfo) writeField10(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSince() { - if err := oprot.WriteFieldBegin(ctx, "since", thrift.STRING, 10); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:since: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Since)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.since (10) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 10:since: ", p), err) } +var TOpenSessionReq_Password_DEFAULT string +func (p *TOpenSessionReq) GetPassword() string { + if !p.IsSetPassword() { + return TOpenSessionReq_Password_DEFAULT } - return err +return *p.Password } +var TOpenSessionReq_Configuration_DEFAULT map[string]string -func (p *TExpressionInfo) writeField11(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetDeprecated() { - if err := oprot.WriteFieldBegin(ctx, "deprecated", thrift.STRING, 11); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 11:deprecated: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Deprecated)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.deprecated (11) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 11:deprecated: ", p), err) } - } - return err +func (p *TOpenSessionReq) GetConfiguration() map[string]string { + return p.Configuration } +var TOpenSessionReq_GetInfos_DEFAULT []TGetInfoType -func (p *TExpressionInfo) writeField12(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSource() { - if err := oprot.WriteFieldBegin(ctx, "source", thrift.STRING, 12); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 12:source: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Source)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.source (12) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 12:source: ", p), err) } +func (p *TOpenSessionReq) GetGetInfos() []TGetInfoType { + return p.GetInfos +} +var TOpenSessionReq_ClientProtocolI64_DEFAULT int64 +func (p *TOpenSessionReq) GetClientProtocolI64() int64 { + if !p.IsSetClientProtocolI64() { + return TOpenSessionReq_ClientProtocolI64_DEFAULT } - return err +return *p.ClientProtocolI64 } +var TOpenSessionReq_ConnectionProperties_DEFAULT map[string]string -func (p *TExpressionInfo) Equals(other *TExpressionInfo) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if p.ClassName != other.ClassName { - if p.ClassName == nil || other.ClassName == nil { - return false - } - if (*p.ClassName) != (*other.ClassName) { return false } - } - if p.Usage != other.Usage { - if p.Usage == nil || other.Usage == nil { - return false - } - if (*p.Usage) != (*other.Usage) { return false } - } - if p.Name != other.Name { - if p.Name == nil || other.Name == nil { - return false - } - if (*p.Name) != (*other.Name) { return false } - } - if p.Extended != other.Extended { - if p.Extended == nil || other.Extended == nil { - return false - } - if (*p.Extended) != (*other.Extended) { return false } - } - if p.Db != other.Db { - if p.Db == nil || other.Db == nil { - return false - } - if (*p.Db) != (*other.Db) { return false } - } - if p.Arguments != other.Arguments { - if p.Arguments == nil || other.Arguments == nil { - return false - } - if (*p.Arguments) != (*other.Arguments) { return false } - } - if p.Examples != other.Examples { - if p.Examples == nil || other.Examples == nil { - return false - } - if (*p.Examples) != (*other.Examples) { return false } - } - if p.Note != other.Note { - if p.Note == nil || other.Note == nil { - return false - } - if (*p.Note) != (*other.Note) { return false } - } - if p.Group != other.Group { - if p.Group == nil || other.Group == nil { - return false - } - if (*p.Group) != (*other.Group) { return false } - } - if p.Since != other.Since { - if p.Since == nil || other.Since == nil { - return false - } - if (*p.Since) != (*other.Since) { return false } - } - if p.Deprecated != other.Deprecated { - if p.Deprecated == nil || other.Deprecated == nil { - return false - } - if (*p.Deprecated) != (*other.Deprecated) { return false } - } - if p.Source != other.Source { - if p.Source == nil || other.Source == nil { - return false - } - if (*p.Source) != (*other.Source) { return false } - } - return true -} - -func (p *TExpressionInfo) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TExpressionInfo(%+v)", *p) -} - -func (p *TExpressionInfo) Validate() error { - return nil -} -// Attributes: -// - Value -type TDBSqlConfValue struct { - Value *string `thrift:"value,1" db:"value" json:"value,omitempty"` -} - -func NewTDBSqlConfValue() *TDBSqlConfValue { - return &TDBSqlConfValue{} -} - -var TDBSqlConfValue_Value_DEFAULT string -func (p *TDBSqlConfValue) GetValue() string { - if !p.IsSetValue() { - return TDBSqlConfValue_Value_DEFAULT - } -return *p.Value -} -func (p *TDBSqlConfValue) IsSetValue() bool { - return p.Value != nil -} - -func (p *TDBSqlConfValue) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRING { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - return nil -} - -func (p *TDBSqlConfValue) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - p.Value = &v -} - return nil -} - -func (p *TDBSqlConfValue) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlConfValue"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TDBSqlConfValue) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetValue() { - if err := oprot.WriteFieldBegin(ctx, "value", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:value: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Value)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.value (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:value: ", p), err) } - } - return err -} - -func (p *TDBSqlConfValue) Equals(other *TDBSqlConfValue) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if p.Value != other.Value { - if p.Value == nil || other.Value == nil { - return false - } - if (*p.Value) != (*other.Value) { return false } - } - return true -} - -func (p *TDBSqlConfValue) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TDBSqlConfValue(%+v)", *p) -} - -func (p *TDBSqlConfValue) Validate() error { - return nil -} -// Attributes: -// - Confs -// - TempViews -// - CurrentDatabase -// - CurrentCatalog -// - SessionCapabilities -// - ExpressionsInfos -// - InternalConfs -type TDBSqlSessionConf struct { - Confs map[string]string `thrift:"confs,1" db:"confs" json:"confs,omitempty"` - TempViews []*TDBSqlTempView `thrift:"tempViews,2" db:"tempViews" json:"tempViews,omitempty"` - CurrentDatabase *string `thrift:"currentDatabase,3" db:"currentDatabase" json:"currentDatabase,omitempty"` - CurrentCatalog *string `thrift:"currentCatalog,4" db:"currentCatalog" json:"currentCatalog,omitempty"` - SessionCapabilities *TDBSqlSessionCapabilities `thrift:"sessionCapabilities,5" db:"sessionCapabilities" json:"sessionCapabilities,omitempty"` - ExpressionsInfos []*TExpressionInfo `thrift:"expressionsInfos,6" db:"expressionsInfos" json:"expressionsInfos,omitempty"` - InternalConfs map[string]*TDBSqlConfValue `thrift:"internalConfs,7" db:"internalConfs" json:"internalConfs,omitempty"` -} - -func NewTDBSqlSessionConf() *TDBSqlSessionConf { - return &TDBSqlSessionConf{} -} - -var TDBSqlSessionConf_Confs_DEFAULT map[string]string - -func (p *TDBSqlSessionConf) GetConfs() map[string]string { - return p.Confs -} -var TDBSqlSessionConf_TempViews_DEFAULT []*TDBSqlTempView - -func (p *TDBSqlSessionConf) GetTempViews() []*TDBSqlTempView { - return p.TempViews +func (p *TOpenSessionReq) GetConnectionProperties() map[string]string { + return p.ConnectionProperties } -var TDBSqlSessionConf_CurrentDatabase_DEFAULT string -func (p *TDBSqlSessionConf) GetCurrentDatabase() string { - if !p.IsSetCurrentDatabase() { - return TDBSqlSessionConf_CurrentDatabase_DEFAULT +var TOpenSessionReq_InitialNamespace_DEFAULT *TNamespace +func (p *TOpenSessionReq) GetInitialNamespace() *TNamespace { + if !p.IsSetInitialNamespace() { + return TOpenSessionReq_InitialNamespace_DEFAULT } -return *p.CurrentDatabase +return p.InitialNamespace } -var TDBSqlSessionConf_CurrentCatalog_DEFAULT string -func (p *TDBSqlSessionConf) GetCurrentCatalog() string { - if !p.IsSetCurrentCatalog() { - return TDBSqlSessionConf_CurrentCatalog_DEFAULT +var TOpenSessionReq_CanUseMultipleCatalogs_DEFAULT bool +func (p *TOpenSessionReq) GetCanUseMultipleCatalogs() bool { + if !p.IsSetCanUseMultipleCatalogs() { + return TOpenSessionReq_CanUseMultipleCatalogs_DEFAULT } -return *p.CurrentCatalog +return *p.CanUseMultipleCatalogs } -var TDBSqlSessionConf_SessionCapabilities_DEFAULT *TDBSqlSessionCapabilities -func (p *TDBSqlSessionConf) GetSessionCapabilities() *TDBSqlSessionCapabilities { - if !p.IsSetSessionCapabilities() { - return TDBSqlSessionConf_SessionCapabilities_DEFAULT - } -return p.SessionCapabilities +func (p *TOpenSessionReq) IsSetClientProtocol() bool { + return p.ClientProtocol != TOpenSessionReq_ClientProtocol_DEFAULT } -var TDBSqlSessionConf_ExpressionsInfos_DEFAULT []*TExpressionInfo -func (p *TDBSqlSessionConf) GetExpressionsInfos() []*TExpressionInfo { - return p.ExpressionsInfos +func (p *TOpenSessionReq) IsSetUsername() bool { + return p.Username != nil } -var TDBSqlSessionConf_InternalConfs_DEFAULT map[string]*TDBSqlConfValue -func (p *TDBSqlSessionConf) GetInternalConfs() map[string]*TDBSqlConfValue { - return p.InternalConfs -} -func (p *TDBSqlSessionConf) IsSetConfs() bool { - return p.Confs != nil +func (p *TOpenSessionReq) IsSetPassword() bool { + return p.Password != nil } -func (p *TDBSqlSessionConf) IsSetTempViews() bool { - return p.TempViews != nil +func (p *TOpenSessionReq) IsSetConfiguration() bool { + return p.Configuration != nil } -func (p *TDBSqlSessionConf) IsSetCurrentDatabase() bool { - return p.CurrentDatabase != nil +func (p *TOpenSessionReq) IsSetGetInfos() bool { + return p.GetInfos != nil } -func (p *TDBSqlSessionConf) IsSetCurrentCatalog() bool { - return p.CurrentCatalog != nil +func (p *TOpenSessionReq) IsSetClientProtocolI64() bool { + return p.ClientProtocolI64 != nil } -func (p *TDBSqlSessionConf) IsSetSessionCapabilities() bool { - return p.SessionCapabilities != nil +func (p *TOpenSessionReq) IsSetConnectionProperties() bool { + return p.ConnectionProperties != nil } -func (p *TDBSqlSessionConf) IsSetExpressionsInfos() bool { - return p.ExpressionsInfos != nil +func (p *TOpenSessionReq) IsSetInitialNamespace() bool { + return p.InitialNamespace != nil } -func (p *TDBSqlSessionConf) IsSetInternalConfs() bool { - return p.InternalConfs != nil +func (p *TOpenSessionReq) IsSetCanUseMultipleCatalogs() bool { + return p.CanUseMultipleCatalogs != nil } -func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } @@ -10190,7 +9167,7 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.MAP { + if fieldTypeId == thrift.I32 { if err := p.ReadField1(ctx, iprot); err != nil { return err } @@ -10200,7 +9177,7 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er } } case 2: - if fieldTypeId == thrift.LIST { + if fieldTypeId == thrift.STRING { if err := p.ReadField2(ctx, iprot); err != nil { return err } @@ -10220,7 +9197,7 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er } } case 4: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.MAP { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -10229,9 +9206,9 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er return err } } - case 5: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField5(ctx, iprot); err != nil { + case 1281: + if fieldTypeId == thrift.LIST { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -10239,9 +9216,9 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er return err } } - case 6: - if fieldTypeId == thrift.LIST { - if err := p.ReadField6(ctx, iprot); err != nil { + case 1282: + if fieldTypeId == thrift.I64 { + if err := p.ReadField1282(ctx, iprot); err != nil { return err } } else { @@ -10249,9 +9226,29 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er return err } } - case 7: + case 1283: if fieldTypeId == thrift.MAP { - if err := p.ReadField7(ctx, iprot); err != nil { + if err := p.ReadField1283(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + case 1284: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1284(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + case 1285: + if fieldTypeId == thrift.BOOL { + if err := p.ReadField1285(ctx, iprot); err != nil { return err } } else { @@ -10274,93 +9271,78 @@ func (p *TDBSqlSessionConf) Read(ctx context.Context, iprot thrift.TProtocol) er return nil } -func (p *TDBSqlSessionConf) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) - if err != nil { - return thrift.PrependError("error reading map begin: ", err) - } - tMap := make(map[string]string, size) - p.Confs = tMap - for i := 0; i < size; i ++ { -var _key50 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) +func (p *TOpenSessionReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { + return thrift.PrependError("error reading field 1: ", err) } else { - _key50 = v + temp := TProtocolVersion(v) + p.ClientProtocol = temp } -var _val51 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val51 = v -} - p.Confs[_key50] = _val51 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) - } - return nil + return nil } -func (p *TDBSqlSessionConf) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TDBSqlTempView, 0, size) - p.TempViews = tSlice - for i := 0; i < size; i ++ { - _elem52 := &TDBSqlTempView{} - if err := _elem52.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem52), err) - } - p.TempViews = append(p.TempViews, _elem52) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } +func (p *TOpenSessionReq) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 2: ", err) +} else { + p.Username = &v +} return nil } -func (p *TDBSqlSessionConf) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionReq) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 3: ", err) } else { - p.CurrentDatabase = &v + p.Password = &v } return nil } -func (p *TDBSqlSessionConf) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 4: ", err) +func (p *TOpenSessionReq) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + _, _, size, err := iprot.ReadMapBegin(ctx) + if err != nil { + return thrift.PrependError("error reading map begin: ", err) + } + tMap := make(map[string]string, size) + p.Configuration = tMap + for i := 0; i < size; i ++ { +var _key44 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) } else { - p.CurrentCatalog = &v + _key44 = v } - return nil +var _val45 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) +} else { + _val45 = v } - -func (p *TDBSqlSessionConf) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionCapabilities = &TDBSqlSessionCapabilities{} - if err := p.SessionCapabilities.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionCapabilities), err) + p.Configuration[_key44] = _val45 + } + if err := iprot.ReadMapEnd(ctx); err != nil { + return thrift.PrependError("error reading map end: ", err) } return nil } -func (p *TDBSqlSessionConf) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionReq) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { _, size, err := iprot.ReadListBegin(ctx) if err != nil { return thrift.PrependError("error reading list begin: ", err) } - tSlice := make([]*TExpressionInfo, 0, size) - p.ExpressionsInfos = tSlice + tSlice := make([]TGetInfoType, 0, size) + p.GetInfos = tSlice for i := 0; i < size; i ++ { - _elem53 := &TExpressionInfo{} - if err := _elem53.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem53), err) - } - p.ExpressionsInfos = append(p.ExpressionsInfos, _elem53) +var _elem46 TGetInfoType + if v, err := iprot.ReadI32(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) +} else { + temp := TGetInfoType(v) + _elem46 = temp +} + p.GetInfos = append(p.GetInfos, _elem46) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -10368,25 +9350,36 @@ func (p *TDBSqlSessionConf) ReadField6(ctx context.Context, iprot thrift.TProto return nil } -func (p *TDBSqlSessionConf) ReadField7(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionReq) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { + return thrift.PrependError("error reading field 1282: ", err) +} else { + p.ClientProtocolI64 = &v +} + return nil +} + +func (p *TOpenSessionReq) ReadField1283(ctx context.Context, iprot thrift.TProtocol) error { _, _, size, err := iprot.ReadMapBegin(ctx) if err != nil { return thrift.PrependError("error reading map begin: ", err) } - tMap := make(map[string]*TDBSqlConfValue, size) - p.InternalConfs = tMap + tMap := make(map[string]string, size) + p.ConnectionProperties = tMap for i := 0; i < size; i ++ { -var _key54 string +var _key47 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _key54 = v + _key47 = v } - _val55 := &TDBSqlConfValue{} - if err := _val55.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _val55), err) - } - p.InternalConfs[_key54] = _val55 +var _val48 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) +} else { + _val48 = v +} + p.ConnectionProperties[_key47] = _val48 } if err := iprot.ReadMapEnd(ctx); err != nil { return thrift.PrependError("error reading map end: ", err) @@ -10394,17 +9387,36 @@ var _key54 string return nil } -func (p *TDBSqlSessionConf) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlSessionConf"); err != nil { +func (p *TOpenSessionReq) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { + p.InitialNamespace = &TNamespace{} + if err := p.InitialNamespace.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.InitialNamespace), err) + } + return nil +} + +func (p *TOpenSessionReq) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { + return thrift.PrependError("error reading field 1285: ", err) +} else { + p.CanUseMultipleCatalogs = &v +} + return nil +} + +func (p *TOpenSessionReq) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TOpenSessionReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField5(ctx, oprot); err != nil { return err } - if err := p.writeField6(ctx, oprot); err != nil { return err } - if err := p.writeField7(ctx, oprot); err != nil { return err } + if err := p.writeField1281(ctx, oprot); err != nil { return err } + if err := p.writeField1282(ctx, oprot); err != nil { return err } + if err := p.writeField1283(ctx, oprot); err != nil { return err } + if err := p.writeField1284(ctx, oprot); err != nil { return err } + if err := p.writeField1285(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -10413,14 +9425,50 @@ func (p *TDBSqlSessionConf) Write(ctx context.Context, oprot thrift.TProtocol) e return nil } -func (p *TDBSqlSessionConf) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetConfs() { - if err := oprot.WriteFieldBegin(ctx, "confs", thrift.MAP, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:confs: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Confs)); err != nil { +func (p *TOpenSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetClientProtocol() { + if err := oprot.WriteFieldBegin(ctx, "client_protocol", thrift.I32, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:client_protocol: ", p), err) } + if err := oprot.WriteI32(ctx, int32(p.ClientProtocol)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.client_protocol (1) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:client_protocol: ", p), err) } + } + return err +} + +func (p *TOpenSessionReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetUsername() { + if err := oprot.WriteFieldBegin(ctx, "username", thrift.STRING, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:username: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.Username)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.username (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:username: ", p), err) } + } + return err +} + +func (p *TOpenSessionReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetPassword() { + if err := oprot.WriteFieldBegin(ctx, "password", thrift.STRING, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:password: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.Password)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.password (3) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:password: ", p), err) } + } + return err +} + +func (p *TOpenSessionReq) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetConfiguration() { + if err := oprot.WriteFieldBegin(ctx, "configuration", thrift.MAP, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:configuration: ", p), err) } + if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Configuration)); err != nil { return thrift.PrependError("error writing map begin: ", err) } - for k, v := range p.Confs { + for k, v := range p.Configuration { if err := oprot.WriteString(ctx, string(k)); err != nil { return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } if err := oprot.WriteString(ctx, string(v)); err != nil { @@ -10430,274 +9478,247 @@ func (p *TDBSqlSessionConf) writeField1(ctx context.Context, oprot thrift.TProto return thrift.PrependError("error writing map end: ", err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:confs: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:configuration: ", p), err) } } return err } -func (p *TDBSqlSessionConf) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetTempViews() { - if err := oprot.WriteFieldBegin(ctx, "tempViews", thrift.LIST, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tempViews: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.TempViews)); err != nil { +func (p *TOpenSessionReq) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetGetInfos() { + if err := oprot.WriteFieldBegin(ctx, "getInfos", thrift.LIST, 1281); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:getInfos: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.I32, len(p.GetInfos)); err != nil { return thrift.PrependError("error writing list begin: ", err) } - for _, v := range p.TempViews { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } + for _, v := range p.GetInfos { + if err := oprot.WriteI32(ctx, int32(v)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } } if err := oprot.WriteListEnd(ctx); err != nil { return thrift.PrependError("error writing list end: ", err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tempViews: ", p), err) } - } - return err -} - -func (p *TDBSqlSessionConf) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCurrentDatabase() { - if err := oprot.WriteFieldBegin(ctx, "currentDatabase", thrift.STRING, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:currentDatabase: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.CurrentDatabase)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.currentDatabase (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:currentDatabase: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:getInfos: ", p), err) } } return err } -func (p *TDBSqlSessionConf) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCurrentCatalog() { - if err := oprot.WriteFieldBegin(ctx, "currentCatalog", thrift.STRING, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:currentCatalog: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.CurrentCatalog)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.currentCatalog (4) field write error: ", p), err) } +func (p *TOpenSessionReq) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetClientProtocolI64() { + if err := oprot.WriteFieldBegin(ctx, "client_protocol_i64", thrift.I64, 1282); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:client_protocol_i64: ", p), err) } + if err := oprot.WriteI64(ctx, int64(*p.ClientProtocolI64)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.client_protocol_i64 (1282) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:currentCatalog: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:client_protocol_i64: ", p), err) } } return err } -func (p *TDBSqlSessionConf) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionCapabilities() { - if err := oprot.WriteFieldBegin(ctx, "sessionCapabilities", thrift.STRUCT, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:sessionCapabilities: ", p), err) } - if err := p.SessionCapabilities.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionCapabilities), err) +func (p *TOpenSessionReq) writeField1283(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetConnectionProperties() { + if err := oprot.WriteFieldBegin(ctx, "connectionProperties", thrift.MAP, 1283); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1283:connectionProperties: ", p), err) } + if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.ConnectionProperties)); err != nil { + return thrift.PrependError("error writing map begin: ", err) + } + for k, v := range p.ConnectionProperties { + if err := oprot.WriteString(ctx, string(k)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } + if err := oprot.WriteString(ctx, string(v)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } + } + if err := oprot.WriteMapEnd(ctx); err != nil { + return thrift.PrependError("error writing map end: ", err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:sessionCapabilities: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1283:connectionProperties: ", p), err) } } return err } -func (p *TDBSqlSessionConf) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExpressionsInfos() { - if err := oprot.WriteFieldBegin(ctx, "expressionsInfos", thrift.LIST, 6); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:expressionsInfos: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ExpressionsInfos)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.ExpressionsInfos { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) +func (p *TOpenSessionReq) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetInitialNamespace() { + if err := oprot.WriteFieldBegin(ctx, "initialNamespace", thrift.STRUCT, 1284); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:initialNamespace: ", p), err) } + if err := p.InitialNamespace.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.InitialNamespace), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 6:expressionsInfos: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:initialNamespace: ", p), err) } } return err } -func (p *TDBSqlSessionConf) writeField7(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetInternalConfs() { - if err := oprot.WriteFieldBegin(ctx, "internalConfs", thrift.MAP, 7); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:internalConfs: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRUCT, len(p.InternalConfs)); err != nil { - return thrift.PrependError("error writing map begin: ", err) - } - for k, v := range p.InternalConfs { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) - } +func (p *TOpenSessionReq) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetCanUseMultipleCatalogs() { + if err := oprot.WriteFieldBegin(ctx, "canUseMultipleCatalogs", thrift.BOOL, 1285); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:canUseMultipleCatalogs: ", p), err) } + if err := oprot.WriteBool(ctx, bool(*p.CanUseMultipleCatalogs)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.canUseMultipleCatalogs (1285) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 7:internalConfs: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:canUseMultipleCatalogs: ", p), err) } } return err } -func (p *TDBSqlSessionConf) Equals(other *TDBSqlSessionConf) bool { +func (p *TOpenSessionReq) Equals(other *TOpenSessionReq) bool { if p == other { return true } else if p == nil || other == nil { return false } - if len(p.Confs) != len(other.Confs) { return false } - for k, _tgt := range p.Confs { - _src56 := other.Confs[k] - if _tgt != _src56 { return false } - } - if len(p.TempViews) != len(other.TempViews) { return false } - for i, _tgt := range p.TempViews { - _src57 := other.TempViews[i] - if !_tgt.Equals(_src57) { return false } + if p.ClientProtocol != other.ClientProtocol { return false } + if p.Username != other.Username { + if p.Username == nil || other.Username == nil { + return false + } + if (*p.Username) != (*other.Username) { return false } } - if p.CurrentDatabase != other.CurrentDatabase { - if p.CurrentDatabase == nil || other.CurrentDatabase == nil { + if p.Password != other.Password { + if p.Password == nil || other.Password == nil { return false } - if (*p.CurrentDatabase) != (*other.CurrentDatabase) { return false } + if (*p.Password) != (*other.Password) { return false } + } + if len(p.Configuration) != len(other.Configuration) { return false } + for k, _tgt := range p.Configuration { + _src49 := other.Configuration[k] + if _tgt != _src49 { return false } + } + if len(p.GetInfos) != len(other.GetInfos) { return false } + for i, _tgt := range p.GetInfos { + _src50 := other.GetInfos[i] + if _tgt != _src50 { return false } } - if p.CurrentCatalog != other.CurrentCatalog { - if p.CurrentCatalog == nil || other.CurrentCatalog == nil { + if p.ClientProtocolI64 != other.ClientProtocolI64 { + if p.ClientProtocolI64 == nil || other.ClientProtocolI64 == nil { return false } - if (*p.CurrentCatalog) != (*other.CurrentCatalog) { return false } + if (*p.ClientProtocolI64) != (*other.ClientProtocolI64) { return false } } - if !p.SessionCapabilities.Equals(other.SessionCapabilities) { return false } - if len(p.ExpressionsInfos) != len(other.ExpressionsInfos) { return false } - for i, _tgt := range p.ExpressionsInfos { - _src58 := other.ExpressionsInfos[i] - if !_tgt.Equals(_src58) { return false } + if len(p.ConnectionProperties) != len(other.ConnectionProperties) { return false } + for k, _tgt := range p.ConnectionProperties { + _src51 := other.ConnectionProperties[k] + if _tgt != _src51 { return false } } - if len(p.InternalConfs) != len(other.InternalConfs) { return false } - for k, _tgt := range p.InternalConfs { - _src59 := other.InternalConfs[k] - if !_tgt.Equals(_src59) { return false } + if !p.InitialNamespace.Equals(other.InitialNamespace) { return false } + if p.CanUseMultipleCatalogs != other.CanUseMultipleCatalogs { + if p.CanUseMultipleCatalogs == nil || other.CanUseMultipleCatalogs == nil { + return false + } + if (*p.CanUseMultipleCatalogs) != (*other.CanUseMultipleCatalogs) { return false } } return true } -func (p *TDBSqlSessionConf) String() string { +func (p *TOpenSessionReq) String() string { if p == nil { return "" } - return fmt.Sprintf("TDBSqlSessionConf(%+v)", *p) + return fmt.Sprintf("TOpenSessionReq(%+v)", *p) } -func (p *TDBSqlSessionConf) Validate() error { +func (p *TOpenSessionReq) Validate() error { return nil } // Attributes: -// - StatusCode -// - InfoMessages -// - SqlState -// - ErrorCode -// - ErrorMessage -// - DisplayMessage -// - ErrorDetailsJson -// - ResponseValidation -type TStatus struct { - StatusCode TStatusCode `thrift:"statusCode,1,required" db:"statusCode" json:"statusCode"` - InfoMessages []string `thrift:"infoMessages,2" db:"infoMessages" json:"infoMessages,omitempty"` - SqlState *string `thrift:"sqlState,3" db:"sqlState" json:"sqlState,omitempty"` - ErrorCode *int32 `thrift:"errorCode,4" db:"errorCode" json:"errorCode,omitempty"` - ErrorMessage *string `thrift:"errorMessage,5" db:"errorMessage" json:"errorMessage,omitempty"` - DisplayMessage *string `thrift:"displayMessage,6" db:"displayMessage" json:"displayMessage,omitempty"` - // unused fields # 7 to 1280 - ErrorDetailsJson *string `thrift:"errorDetailsJson,1281" db:"errorDetailsJson" json:"errorDetailsJson,omitempty"` - // unused fields # 1282 to 3328 - ResponseValidation []byte `thrift:"responseValidation,3329" db:"responseValidation" json:"responseValidation,omitempty"` +// - Status +// - ServerProtocolVersion +// - SessionHandle +// - Configuration +// - InitialNamespace +// - CanUseMultipleCatalogs +// - GetInfos +type TOpenSessionResp struct { + Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` + ServerProtocolVersion TProtocolVersion `thrift:"serverProtocolVersion,2,required" db:"serverProtocolVersion" json:"serverProtocolVersion"` + SessionHandle *TSessionHandle `thrift:"sessionHandle,3" db:"sessionHandle" json:"sessionHandle,omitempty"` + Configuration map[string]string `thrift:"configuration,4" db:"configuration" json:"configuration,omitempty"` + // unused fields # 5 to 1280 + GetInfos []*TGetInfoValue `thrift:"getInfos,1281" db:"getInfos" json:"getInfos,omitempty"` + // unused fields # 1282 to 1283 + InitialNamespace *TNamespace `thrift:"initialNamespace,1284" db:"initialNamespace" json:"initialNamespace,omitempty"` + CanUseMultipleCatalogs *bool `thrift:"canUseMultipleCatalogs,1285" db:"canUseMultipleCatalogs" json:"canUseMultipleCatalogs,omitempty"` } -func NewTStatus() *TStatus { - return &TStatus{} +func NewTOpenSessionResp() *TOpenSessionResp { + return &TOpenSessionResp{} } - -func (p *TStatus) GetStatusCode() TStatusCode { - return p.StatusCode +var TOpenSessionResp_Status_DEFAULT *TStatus +func (p *TOpenSessionResp) GetStatus() *TStatus { + if !p.IsSetStatus() { + return TOpenSessionResp_Status_DEFAULT + } +return p.Status } -var TStatus_InfoMessages_DEFAULT []string -func (p *TStatus) GetInfoMessages() []string { - return p.InfoMessages -} -var TStatus_SqlState_DEFAULT string -func (p *TStatus) GetSqlState() string { - if !p.IsSetSqlState() { - return TStatus_SqlState_DEFAULT - } -return *p.SqlState +func (p *TOpenSessionResp) GetServerProtocolVersion() TProtocolVersion { + return p.ServerProtocolVersion } -var TStatus_ErrorCode_DEFAULT int32 -func (p *TStatus) GetErrorCode() int32 { - if !p.IsSetErrorCode() { - return TStatus_ErrorCode_DEFAULT +var TOpenSessionResp_SessionHandle_DEFAULT *TSessionHandle +func (p *TOpenSessionResp) GetSessionHandle() *TSessionHandle { + if !p.IsSetSessionHandle() { + return TOpenSessionResp_SessionHandle_DEFAULT } -return *p.ErrorCode +return p.SessionHandle } -var TStatus_ErrorMessage_DEFAULT string -func (p *TStatus) GetErrorMessage() string { - if !p.IsSetErrorMessage() { - return TStatus_ErrorMessage_DEFAULT - } -return *p.ErrorMessage +var TOpenSessionResp_Configuration_DEFAULT map[string]string + +func (p *TOpenSessionResp) GetConfiguration() map[string]string { + return p.Configuration } -var TStatus_DisplayMessage_DEFAULT string -func (p *TStatus) GetDisplayMessage() string { - if !p.IsSetDisplayMessage() { - return TStatus_DisplayMessage_DEFAULT +var TOpenSessionResp_InitialNamespace_DEFAULT *TNamespace +func (p *TOpenSessionResp) GetInitialNamespace() *TNamespace { + if !p.IsSetInitialNamespace() { + return TOpenSessionResp_InitialNamespace_DEFAULT } -return *p.DisplayMessage +return p.InitialNamespace } -var TStatus_ErrorDetailsJson_DEFAULT string -func (p *TStatus) GetErrorDetailsJson() string { - if !p.IsSetErrorDetailsJson() { - return TStatus_ErrorDetailsJson_DEFAULT +var TOpenSessionResp_CanUseMultipleCatalogs_DEFAULT bool +func (p *TOpenSessionResp) GetCanUseMultipleCatalogs() bool { + if !p.IsSetCanUseMultipleCatalogs() { + return TOpenSessionResp_CanUseMultipleCatalogs_DEFAULT } -return *p.ErrorDetailsJson +return *p.CanUseMultipleCatalogs } -var TStatus_ResponseValidation_DEFAULT []byte +var TOpenSessionResp_GetInfos_DEFAULT []*TGetInfoValue -func (p *TStatus) GetResponseValidation() []byte { - return p.ResponseValidation -} -func (p *TStatus) IsSetInfoMessages() bool { - return p.InfoMessages != nil +func (p *TOpenSessionResp) GetGetInfos() []*TGetInfoValue { + return p.GetInfos } - -func (p *TStatus) IsSetSqlState() bool { - return p.SqlState != nil +func (p *TOpenSessionResp) IsSetStatus() bool { + return p.Status != nil } -func (p *TStatus) IsSetErrorCode() bool { - return p.ErrorCode != nil +func (p *TOpenSessionResp) IsSetSessionHandle() bool { + return p.SessionHandle != nil } -func (p *TStatus) IsSetErrorMessage() bool { - return p.ErrorMessage != nil +func (p *TOpenSessionResp) IsSetConfiguration() bool { + return p.Configuration != nil } -func (p *TStatus) IsSetDisplayMessage() bool { - return p.DisplayMessage != nil +func (p *TOpenSessionResp) IsSetInitialNamespace() bool { + return p.InitialNamespace != nil } -func (p *TStatus) IsSetErrorDetailsJson() bool { - return p.ErrorDetailsJson != nil +func (p *TOpenSessionResp) IsSetCanUseMultipleCatalogs() bool { + return p.CanUseMultipleCatalogs != nil } -func (p *TStatus) IsSetResponseValidation() bool { - return p.ResponseValidation != nil +func (p *TOpenSessionResp) IsSetGetInfos() bool { + return p.GetInfos != nil } -func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } - var issetStatusCode bool = false; + var issetStatus bool = false; + var issetServerProtocolVersion bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -10707,28 +9728,29 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.I32 { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField1(ctx, iprot); err != nil { return err } - issetStatusCode = true + issetStatus = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 2: - if fieldTypeId == thrift.LIST { + if fieldTypeId == thrift.I32 { if err := p.ReadField2(ctx, iprot); err != nil { return err } + issetServerProtocolVersion = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 3: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField3(ctx, iprot); err != nil { return err } @@ -10738,7 +9760,7 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { } } case 4: - if fieldTypeId == thrift.I32 { + if fieldTypeId == thrift.MAP { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -10747,9 +9769,9 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { return err } } - case 5: - if fieldTypeId == thrift.STRING { - if err := p.ReadField5(ctx, iprot); err != nil { + case 1284: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1284(ctx, iprot); err != nil { return err } } else { @@ -10757,9 +9779,9 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { return err } } - case 6: - if fieldTypeId == thrift.STRING { - if err := p.ReadField6(ctx, iprot); err != nil { + case 1285: + if fieldTypeId == thrift.BOOL { + if err := p.ReadField1285(ctx, iprot); err != nil { return err } } else { @@ -10768,7 +9790,7 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { } } case 1281: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.LIST { if err := p.ReadField1281(ctx, iprot); err != nil { return err } @@ -10777,16 +9799,6 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { return err } } - case 3329: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -10799,110 +9811,117 @@ func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error { if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } - if !issetStatusCode{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field StatusCode is not set")); + if !issetStatus{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set")); + } + if !issetServerProtocolVersion{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ServerProtocolVersion is not set")); } return nil } -func (p *TStatus) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TOpenSessionResp) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.Status = &TStatus{} + if err := p.Status.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Status), err) + } + return nil +} + +func (p *TOpenSessionResp) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) + return thrift.PrependError("error reading field 2: ", err) } else { - temp := TStatusCode(v) - p.StatusCode = temp + temp := TProtocolVersion(v) + p.ServerProtocolVersion = temp } return nil } -func (p *TStatus) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) +func (p *TOpenSessionResp) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + p.SessionHandle = &TSessionHandle{} + if err := p.SessionHandle.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) + } + return nil +} + +func (p *TOpenSessionResp) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + _, _, size, err := iprot.ReadMapBegin(ctx) if err != nil { - return thrift.PrependError("error reading list begin: ", err) + return thrift.PrependError("error reading map begin: ", err) } - tSlice := make([]string, 0, size) - p.InfoMessages = tSlice + tMap := make(map[string]string, size) + p.Configuration = tMap for i := 0; i < size; i ++ { -var _elem60 string +var _key52 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _elem60 = v -} - p.InfoMessages = append(p.InfoMessages, _elem60) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil + _key52 = v } - -func (p *TStatus) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3: ", err) +var _val53 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) } else { - p.SqlState = &v + _val53 = v } + p.Configuration[_key52] = _val53 + } + if err := iprot.ReadMapEnd(ctx); err != nil { + return thrift.PrependError("error reading map end: ", err) + } return nil } -func (p *TStatus) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 4: ", err) -} else { - p.ErrorCode = &v -} +func (p *TOpenSessionResp) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { + p.InitialNamespace = &TNamespace{} + if err := p.InitialNamespace.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.InitialNamespace), err) + } return nil } -func (p *TStatus) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 5: ", err) +func (p *TOpenSessionResp) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { + return thrift.PrependError("error reading field 1285: ", err) } else { - p.ErrorMessage = &v + p.CanUseMultipleCatalogs = &v } return nil } -func (p *TStatus) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 6: ", err) -} else { - p.DisplayMessage = &v -} +func (p *TOpenSessionResp) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TGetInfoValue, 0, size) + p.GetInfos = tSlice + for i := 0; i < size; i ++ { + _elem54 := &TGetInfoValue{} + if err := _elem54.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem54), err) + } + p.GetInfos = append(p.GetInfos, _elem54) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } return nil } -func (p *TStatus) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 1281: ", err) -} else { - p.ErrorDetailsJson = &v -} - return nil -} - -func (p *TStatus) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ResponseValidation = v -} - return nil -} - -func (p *TStatus) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TStatus"); err != nil { +func (p *TOpenSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TOpenSessionResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField5(ctx, oprot); err != nil { return err } - if err := p.writeField6(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } + if err := p.writeField1284(ctx, oprot); err != nil { return err } + if err := p.writeField1285(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -10911,203 +9930,174 @@ func (p *TStatus) Write(ctx context.Context, oprot thrift.TProtocol) error { return nil } -func (p *TStatus) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "statusCode", thrift.I32, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:statusCode: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.StatusCode)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.statusCode (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:statusCode: ", p), err) } - return err -} - -func (p *TStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetInfoMessages() { - if err := oprot.WriteFieldBegin(ctx, "infoMessages", thrift.LIST, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:infoMessages: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.InfoMessages)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.InfoMessages { - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:infoMessages: ", p), err) } +func (p *TOpenSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } + if err := p.Status.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } return err } -func (p *TStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSqlState() { - if err := oprot.WriteFieldBegin(ctx, "sqlState", thrift.STRING, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sqlState: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.SqlState)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.sqlState (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sqlState: ", p), err) } - } +func (p *TOpenSessionResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "serverProtocolVersion", thrift.I32, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:serverProtocolVersion: ", p), err) } + if err := oprot.WriteI32(ctx, int32(p.ServerProtocolVersion)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.serverProtocolVersion (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:serverProtocolVersion: ", p), err) } return err } -func (p *TStatus) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetErrorCode() { - if err := oprot.WriteFieldBegin(ctx, "errorCode", thrift.I32, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:errorCode: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ErrorCode)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.errorCode (4) field write error: ", p), err) } +func (p *TOpenSessionResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetSessionHandle() { + if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sessionHandle: ", p), err) } + if err := p.SessionHandle.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:errorCode: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sessionHandle: ", p), err) } } return err } -func (p *TStatus) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetErrorMessage() { - if err := oprot.WriteFieldBegin(ctx, "errorMessage", thrift.STRING, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:errorMessage: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.ErrorMessage)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.errorMessage (5) field write error: ", p), err) } +func (p *TOpenSessionResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetConfiguration() { + if err := oprot.WriteFieldBegin(ctx, "configuration", thrift.MAP, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:configuration: ", p), err) } + if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Configuration)); err != nil { + return thrift.PrependError("error writing map begin: ", err) + } + for k, v := range p.Configuration { + if err := oprot.WriteString(ctx, string(k)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } + if err := oprot.WriteString(ctx, string(v)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } + } + if err := oprot.WriteMapEnd(ctx); err != nil { + return thrift.PrependError("error writing map end: ", err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:errorMessage: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:configuration: ", p), err) } } return err } -func (p *TStatus) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetDisplayMessage() { - if err := oprot.WriteFieldBegin(ctx, "displayMessage", thrift.STRING, 6); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:displayMessage: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.DisplayMessage)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.displayMessage (6) field write error: ", p), err) } +func (p *TOpenSessionResp) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetGetInfos() { + if err := oprot.WriteFieldBegin(ctx, "getInfos", thrift.LIST, 1281); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:getInfos: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.GetInfos)); err != nil { + return thrift.PrependError("error writing list begin: ", err) + } + for _, v := range p.GetInfos { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 6:displayMessage: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:getInfos: ", p), err) } } return err } -func (p *TStatus) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetErrorDetailsJson() { - if err := oprot.WriteFieldBegin(ctx, "errorDetailsJson", thrift.STRING, 1281); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:errorDetailsJson: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.ErrorDetailsJson)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.errorDetailsJson (1281) field write error: ", p), err) } +func (p *TOpenSessionResp) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetInitialNamespace() { + if err := oprot.WriteFieldBegin(ctx, "initialNamespace", thrift.STRUCT, 1284); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:initialNamespace: ", p), err) } + if err := p.InitialNamespace.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.InitialNamespace), err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:errorDetailsJson: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:initialNamespace: ", p), err) } } return err } -func (p *TStatus) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResponseValidation() { - if err := oprot.WriteFieldBegin(ctx, "responseValidation", thrift.STRING, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:responseValidation: ", p), err) } - if err := oprot.WriteBinary(ctx, p.ResponseValidation); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.responseValidation (3329) field write error: ", p), err) } +func (p *TOpenSessionResp) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetCanUseMultipleCatalogs() { + if err := oprot.WriteFieldBegin(ctx, "canUseMultipleCatalogs", thrift.BOOL, 1285); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:canUseMultipleCatalogs: ", p), err) } + if err := oprot.WriteBool(ctx, bool(*p.CanUseMultipleCatalogs)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.canUseMultipleCatalogs (1285) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:responseValidation: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:canUseMultipleCatalogs: ", p), err) } } return err } -func (p *TStatus) Equals(other *TStatus) bool { +func (p *TOpenSessionResp) Equals(other *TOpenSessionResp) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.StatusCode != other.StatusCode { return false } - if len(p.InfoMessages) != len(other.InfoMessages) { return false } - for i, _tgt := range p.InfoMessages { - _src61 := other.InfoMessages[i] - if _tgt != _src61 { return false } - } - if p.SqlState != other.SqlState { - if p.SqlState == nil || other.SqlState == nil { - return false - } - if (*p.SqlState) != (*other.SqlState) { return false } - } - if p.ErrorCode != other.ErrorCode { - if p.ErrorCode == nil || other.ErrorCode == nil { - return false - } - if (*p.ErrorCode) != (*other.ErrorCode) { return false } - } - if p.ErrorMessage != other.ErrorMessage { - if p.ErrorMessage == nil || other.ErrorMessage == nil { - return false - } - if (*p.ErrorMessage) != (*other.ErrorMessage) { return false } + if !p.Status.Equals(other.Status) { return false } + if p.ServerProtocolVersion != other.ServerProtocolVersion { return false } + if !p.SessionHandle.Equals(other.SessionHandle) { return false } + if len(p.Configuration) != len(other.Configuration) { return false } + for k, _tgt := range p.Configuration { + _src55 := other.Configuration[k] + if _tgt != _src55 { return false } } - if p.DisplayMessage != other.DisplayMessage { - if p.DisplayMessage == nil || other.DisplayMessage == nil { - return false - } - if (*p.DisplayMessage) != (*other.DisplayMessage) { return false } + if len(p.GetInfos) != len(other.GetInfos) { return false } + for i, _tgt := range p.GetInfos { + _src56 := other.GetInfos[i] + if !_tgt.Equals(_src56) { return false } } - if p.ErrorDetailsJson != other.ErrorDetailsJson { - if p.ErrorDetailsJson == nil || other.ErrorDetailsJson == nil { + if !p.InitialNamespace.Equals(other.InitialNamespace) { return false } + if p.CanUseMultipleCatalogs != other.CanUseMultipleCatalogs { + if p.CanUseMultipleCatalogs == nil || other.CanUseMultipleCatalogs == nil { return false } - if (*p.ErrorDetailsJson) != (*other.ErrorDetailsJson) { return false } + if (*p.CanUseMultipleCatalogs) != (*other.CanUseMultipleCatalogs) { return false } } - if bytes.Compare(p.ResponseValidation, other.ResponseValidation) != 0 { return false } return true } -func (p *TStatus) String() string { +func (p *TOpenSessionResp) String() string { if p == nil { return "" } - return fmt.Sprintf("TStatus(%+v)", *p) + return fmt.Sprintf("TOpenSessionResp(%+v)", *p) } -func (p *TStatus) Validate() error { +func (p *TOpenSessionResp) Validate() error { return nil } // Attributes: -// - CatalogName -// - SchemaName -type TNamespace struct { - CatalogName *TIdentifier `thrift:"catalogName,1" db:"catalogName" json:"catalogName,omitempty"` - SchemaName *TIdentifier `thrift:"schemaName,2" db:"schemaName" json:"schemaName,omitempty"` +// - SessionHandle +type TCloseSessionReq struct { + SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` } -func NewTNamespace() *TNamespace { - return &TNamespace{} +func NewTCloseSessionReq() *TCloseSessionReq { + return &TCloseSessionReq{} } -var TNamespace_CatalogName_DEFAULT TIdentifier -func (p *TNamespace) GetCatalogName() TIdentifier { - if !p.IsSetCatalogName() { - return TNamespace_CatalogName_DEFAULT - } -return *p.CatalogName -} -var TNamespace_SchemaName_DEFAULT TIdentifier -func (p *TNamespace) GetSchemaName() TIdentifier { - if !p.IsSetSchemaName() { - return TNamespace_SchemaName_DEFAULT +var TCloseSessionReq_SessionHandle_DEFAULT *TSessionHandle +func (p *TCloseSessionReq) GetSessionHandle() *TSessionHandle { + if !p.IsSetSessionHandle() { + return TCloseSessionReq_SessionHandle_DEFAULT } -return *p.SchemaName -} -func (p *TNamespace) IsSetCatalogName() bool { - return p.CatalogName != nil +return p.SessionHandle } - -func (p *TNamespace) IsSetSchemaName() bool { - return p.SchemaName != nil +func (p *TCloseSessionReq) IsSetSessionHandle() bool { + return p.SessionHandle != nil } -func (p *TNamespace) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TCloseSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } + var issetSessionHandle bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -11117,20 +10107,11 @@ func (p *TNamespace) Read(ctx context.Context, iprot thrift.TProtocol) error { if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField1(ctx, iprot); err != nil { return err } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.STRING { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } + issetSessionHandle = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -11148,35 +10129,25 @@ func (p *TNamespace) Read(ctx context.Context, iprot thrift.TProtocol) error { if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } + if !issetSessionHandle{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionHandle is not set")); + } return nil } -func (p *TNamespace) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - temp := TIdentifier(v) - p.CatalogName = &temp -} - return nil -} - -func (p *TNamespace) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - temp := TIdentifier(v) - p.SchemaName = &temp -} +func (p *TCloseSessionReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.SessionHandle = &TSessionHandle{} + if err := p.SessionHandle.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) + } return nil } -func (p *TNamespace) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TNamespace"); err != nil { +func (p *TCloseSessionReq) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TCloseSessionReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -11185,102 +10156,64 @@ func (p *TNamespace) Write(ctx context.Context, oprot thrift.TProtocol) error { return nil } -func (p *TNamespace) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCatalogName() { - if err := oprot.WriteFieldBegin(ctx, "catalogName", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:catalogName: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.CatalogName)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.catalogName (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:catalogName: ", p), err) } - } - return err -} - -func (p *TNamespace) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSchemaName() { - if err := oprot.WriteFieldBegin(ctx, "schemaName", thrift.STRING, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:schemaName: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.SchemaName)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.schemaName (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:schemaName: ", p), err) } +func (p *TCloseSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionHandle: ", p), err) } + if err := p.SessionHandle.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionHandle: ", p), err) } return err } -func (p *TNamespace) Equals(other *TNamespace) bool { +func (p *TCloseSessionReq) Equals(other *TCloseSessionReq) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.CatalogName != other.CatalogName { - if p.CatalogName == nil || other.CatalogName == nil { - return false - } - if (*p.CatalogName) != (*other.CatalogName) { return false } - } - if p.SchemaName != other.SchemaName { - if p.SchemaName == nil || other.SchemaName == nil { - return false - } - if (*p.SchemaName) != (*other.SchemaName) { return false } - } + if !p.SessionHandle.Equals(other.SessionHandle) { return false } return true } -func (p *TNamespace) String() string { +func (p *TCloseSessionReq) String() string { if p == nil { return "" } - return fmt.Sprintf("TNamespace(%+v)", *p) + return fmt.Sprintf("TCloseSessionReq(%+v)", *p) } -func (p *TNamespace) Validate() error { +func (p *TCloseSessionReq) Validate() error { return nil } // Attributes: -// - GUID -// - Secret -// - ExecutionVersion -type THandleIdentifier struct { - GUID []byte `thrift:"guid,1,required" db:"guid" json:"guid"` - Secret []byte `thrift:"secret,2,required" db:"secret" json:"secret"` - // unused fields # 3 to 3328 - ExecutionVersion *int16 `thrift:"executionVersion,3329" db:"executionVersion" json:"executionVersion,omitempty"` -} - -func NewTHandleIdentifier() *THandleIdentifier { - return &THandleIdentifier{} +// - Status +type TCloseSessionResp struct { + Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` } - -func (p *THandleIdentifier) GetGUID() []byte { - return p.GUID +func NewTCloseSessionResp() *TCloseSessionResp { + return &TCloseSessionResp{} } -func (p *THandleIdentifier) GetSecret() []byte { - return p.Secret -} -var THandleIdentifier_ExecutionVersion_DEFAULT int16 -func (p *THandleIdentifier) GetExecutionVersion() int16 { - if !p.IsSetExecutionVersion() { - return THandleIdentifier_ExecutionVersion_DEFAULT +var TCloseSessionResp_Status_DEFAULT *TStatus +func (p *TCloseSessionResp) GetStatus() *TStatus { + if !p.IsSetStatus() { + return TCloseSessionResp_Status_DEFAULT } -return *p.ExecutionVersion +return p.Status } -func (p *THandleIdentifier) IsSetExecutionVersion() bool { - return p.ExecutionVersion != nil +func (p *TCloseSessionResp) IsSetStatus() bool { + return p.Status != nil } -func (p *THandleIdentifier) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TCloseSessionResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } - var issetGUID bool = false; - var issetSecret bool = false; + var issetStatus bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -11290,32 +10223,11 @@ func (p *THandleIdentifier) Read(ctx context.Context, iprot thrift.TProtocol) er if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField1(ctx, iprot); err != nil { return err } - issetGUID = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.STRING { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - issetSecret = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.I16 { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } + issetStatus = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -11333,49 +10245,25 @@ func (p *THandleIdentifier) Read(ctx context.Context, iprot thrift.TProtocol) er if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } - if !issetGUID{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field GUID is not set")); - } - if !issetSecret{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Secret is not set")); + if !issetStatus{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set")); } return nil } -func (p *THandleIdentifier) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - p.GUID = v -} - return nil -} - -func (p *THandleIdentifier) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - p.Secret = v -} - return nil -} - -func (p *THandleIdentifier) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI16(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ExecutionVersion = &v -} +func (p *TCloseSessionResp) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.Status = &TStatus{} + if err := p.Status.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Status), err) + } return nil } -func (p *THandleIdentifier) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "THandleIdentifier"); err != nil { +func (p *TCloseSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TCloseSessionResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -11384,288 +10272,152 @@ func (p *THandleIdentifier) Write(ctx context.Context, oprot thrift.TProtocol) e return nil } -func (p *THandleIdentifier) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "guid", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:guid: ", p), err) } - if err := oprot.WriteBinary(ctx, p.GUID); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.guid (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:guid: ", p), err) } - return err -} - -func (p *THandleIdentifier) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "secret", thrift.STRING, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:secret: ", p), err) } - if err := oprot.WriteBinary(ctx, p.Secret); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.secret (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:secret: ", p), err) } - return err -} - -func (p *THandleIdentifier) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExecutionVersion() { - if err := oprot.WriteFieldBegin(ctx, "executionVersion", thrift.I16, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:executionVersion: ", p), err) } - if err := oprot.WriteI16(ctx, int16(*p.ExecutionVersion)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.executionVersion (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:executionVersion: ", p), err) } +func (p *TCloseSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } + if err := p.Status.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } return err } -func (p *THandleIdentifier) Equals(other *THandleIdentifier) bool { +func (p *TCloseSessionResp) Equals(other *TCloseSessionResp) bool { if p == other { return true } else if p == nil || other == nil { return false } - if bytes.Compare(p.GUID, other.GUID) != 0 { return false } - if bytes.Compare(p.Secret, other.Secret) != 0 { return false } - if p.ExecutionVersion != other.ExecutionVersion { - if p.ExecutionVersion == nil || other.ExecutionVersion == nil { - return false - } - if (*p.ExecutionVersion) != (*other.ExecutionVersion) { return false } - } + if !p.Status.Equals(other.Status) { return false } return true } -func (p *THandleIdentifier) String() string { +func (p *TCloseSessionResp) String() string { if p == nil { return "" } - return fmt.Sprintf("THandleIdentifier(%+v)", *p) + return fmt.Sprintf("TCloseSessionResp(%+v)", *p) } -func (p *THandleIdentifier) Validate() error { +func (p *TCloseSessionResp) Validate() error { return nil } // Attributes: -// - SessionId -// - ServerProtocolVersion -type TSessionHandle struct { - SessionId *THandleIdentifier `thrift:"sessionId,1,required" db:"sessionId" json:"sessionId"` - // unused fields # 2 to 3328 - ServerProtocolVersion *TProtocolVersion `thrift:"serverProtocolVersion,3329" db:"serverProtocolVersion" json:"serverProtocolVersion,omitempty"` +// - StringValue +// - SmallIntValue +// - IntegerBitmask +// - IntegerFlag +// - BinaryValue +// - LenValue +type TGetInfoValue struct { + StringValue *string `thrift:"stringValue,1" db:"stringValue" json:"stringValue,omitempty"` + SmallIntValue *int16 `thrift:"smallIntValue,2" db:"smallIntValue" json:"smallIntValue,omitempty"` + IntegerBitmask *int32 `thrift:"integerBitmask,3" db:"integerBitmask" json:"integerBitmask,omitempty"` + IntegerFlag *int32 `thrift:"integerFlag,4" db:"integerFlag" json:"integerFlag,omitempty"` + BinaryValue *int32 `thrift:"binaryValue,5" db:"binaryValue" json:"binaryValue,omitempty"` + LenValue *int64 `thrift:"lenValue,6" db:"lenValue" json:"lenValue,omitempty"` } -func NewTSessionHandle() *TSessionHandle { - return &TSessionHandle{} +func NewTGetInfoValue() *TGetInfoValue { + return &TGetInfoValue{} } -var TSessionHandle_SessionId_DEFAULT *THandleIdentifier -func (p *TSessionHandle) GetSessionId() *THandleIdentifier { - if !p.IsSetSessionId() { - return TSessionHandle_SessionId_DEFAULT +var TGetInfoValue_StringValue_DEFAULT string +func (p *TGetInfoValue) GetStringValue() string { + if !p.IsSetStringValue() { + return TGetInfoValue_StringValue_DEFAULT } -return p.SessionId +return *p.StringValue } -var TSessionHandle_ServerProtocolVersion_DEFAULT TProtocolVersion -func (p *TSessionHandle) GetServerProtocolVersion() TProtocolVersion { - if !p.IsSetServerProtocolVersion() { - return TSessionHandle_ServerProtocolVersion_DEFAULT +var TGetInfoValue_SmallIntValue_DEFAULT int16 +func (p *TGetInfoValue) GetSmallIntValue() int16 { + if !p.IsSetSmallIntValue() { + return TGetInfoValue_SmallIntValue_DEFAULT } -return *p.ServerProtocolVersion +return *p.SmallIntValue } -func (p *TSessionHandle) IsSetSessionId() bool { - return p.SessionId != nil +var TGetInfoValue_IntegerBitmask_DEFAULT int32 +func (p *TGetInfoValue) GetIntegerBitmask() int32 { + if !p.IsSetIntegerBitmask() { + return TGetInfoValue_IntegerBitmask_DEFAULT + } +return *p.IntegerBitmask } - -func (p *TSessionHandle) IsSetServerProtocolVersion() bool { - return p.ServerProtocolVersion != nil -} - -func (p *TSessionHandle) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetSessionId bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetSessionId = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - if !issetSessionId{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionId is not set")); +var TGetInfoValue_IntegerFlag_DEFAULT int32 +func (p *TGetInfoValue) GetIntegerFlag() int32 { + if !p.IsSetIntegerFlag() { + return TGetInfoValue_IntegerFlag_DEFAULT } - return nil +return *p.IntegerFlag } - -func (p *TSessionHandle) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionId = &THandleIdentifier{} - if err := p.SessionId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionId), err) +var TGetInfoValue_BinaryValue_DEFAULT int32 +func (p *TGetInfoValue) GetBinaryValue() int32 { + if !p.IsSetBinaryValue() { + return TGetInfoValue_BinaryValue_DEFAULT } - return nil -} - -func (p *TSessionHandle) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - temp := TProtocolVersion(v) - p.ServerProtocolVersion = &temp -} - return nil +return *p.BinaryValue } - -func (p *TSessionHandle) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TSessionHandle"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } +var TGetInfoValue_LenValue_DEFAULT int64 +func (p *TGetInfoValue) GetLenValue() int64 { + if !p.IsSetLenValue() { + return TGetInfoValue_LenValue_DEFAULT } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil +return *p.LenValue } - -func (p *TSessionHandle) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionId: ", p), err) } - if err := p.SessionId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionId), err) +func (p *TGetInfoValue) CountSetFieldsTGetInfoValue() int { + count := 0 + if (p.IsSetStringValue()) { + count++ } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionId: ", p), err) } - return err -} - -func (p *TSessionHandle) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetServerProtocolVersion() { - if err := oprot.WriteFieldBegin(ctx, "serverProtocolVersion", thrift.I32, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:serverProtocolVersion: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ServerProtocolVersion)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.serverProtocolVersion (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:serverProtocolVersion: ", p), err) } + if (p.IsSetSmallIntValue()) { + count++ } - return err -} - -func (p *TSessionHandle) Equals(other *TSessionHandle) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false + if (p.IsSetIntegerBitmask()) { + count++ } - if !p.SessionId.Equals(other.SessionId) { return false } - if p.ServerProtocolVersion != other.ServerProtocolVersion { - if p.ServerProtocolVersion == nil || other.ServerProtocolVersion == nil { - return false - } - if (*p.ServerProtocolVersion) != (*other.ServerProtocolVersion) { return false } + if (p.IsSetIntegerFlag()) { + count++ } - return true -} - -func (p *TSessionHandle) String() string { - if p == nil { - return "" + if (p.IsSetBinaryValue()) { + count++ } - return fmt.Sprintf("TSessionHandle(%+v)", *p) -} + if (p.IsSetLenValue()) { + count++ + } + return count -func (p *TSessionHandle) Validate() error { - return nil -} -// Attributes: -// - OperationId -// - OperationType -// - HasResultSet -// - ModifiedRowCount -type TOperationHandle struct { - OperationId *THandleIdentifier `thrift:"operationId,1,required" db:"operationId" json:"operationId"` - OperationType TOperationType `thrift:"operationType,2,required" db:"operationType" json:"operationType"` - HasResultSet bool `thrift:"hasResultSet,3,required" db:"hasResultSet" json:"hasResultSet"` - ModifiedRowCount *float64 `thrift:"modifiedRowCount,4" db:"modifiedRowCount" json:"modifiedRowCount,omitempty"` } -func NewTOperationHandle() *TOperationHandle { - return &TOperationHandle{} +func (p *TGetInfoValue) IsSetStringValue() bool { + return p.StringValue != nil } -var TOperationHandle_OperationId_DEFAULT *THandleIdentifier -func (p *TOperationHandle) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TOperationHandle_OperationId_DEFAULT - } -return p.OperationId +func (p *TGetInfoValue) IsSetSmallIntValue() bool { + return p.SmallIntValue != nil } -func (p *TOperationHandle) GetOperationType() TOperationType { - return p.OperationType +func (p *TGetInfoValue) IsSetIntegerBitmask() bool { + return p.IntegerBitmask != nil } -func (p *TOperationHandle) GetHasResultSet() bool { - return p.HasResultSet -} -var TOperationHandle_ModifiedRowCount_DEFAULT float64 -func (p *TOperationHandle) GetModifiedRowCount() float64 { - if !p.IsSetModifiedRowCount() { - return TOperationHandle_ModifiedRowCount_DEFAULT - } -return *p.ModifiedRowCount +func (p *TGetInfoValue) IsSetIntegerFlag() bool { + return p.IntegerFlag != nil } -func (p *TOperationHandle) IsSetOperationId() bool { - return p.OperationId != nil + +func (p *TGetInfoValue) IsSetBinaryValue() bool { + return p.BinaryValue != nil } -func (p *TOperationHandle) IsSetModifiedRowCount() bool { - return p.ModifiedRowCount != nil +func (p *TGetInfoValue) IsSetLenValue() bool { + return p.LenValue != nil } -func (p *TOperationHandle) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TGetInfoValue) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } - var issetOperationId bool = false; - var issetOperationType bool = false; - var issetHasResultSet bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -11675,40 +10427,37 @@ func (p *TOperationHandle) Read(ctx context.Context, iprot thrift.TProtocol) err if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.STRUCT { + if fieldTypeId == thrift.STRING { if err := p.ReadField1(ctx, iprot); err != nil { return err } - issetOperationId = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 2: - if fieldTypeId == thrift.I32 { + if fieldTypeId == thrift.I16 { if err := p.ReadField2(ctx, iprot); err != nil { return err } - issetOperationType = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 3: - if fieldTypeId == thrift.BOOL { + if fieldTypeId == thrift.I32 { if err := p.ReadField3(ctx, iprot); err != nil { return err } - issetHasResultSet = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 4: - if fieldTypeId == thrift.DOUBLE { + if fieldTypeId == thrift.I32 { if err := p.ReadField4(ctx, iprot); err != nil { return err } @@ -11717,6 +10466,26 @@ func (p *TOperationHandle) Read(ctx context.Context, iprot thrift.TProtocol) err return err } } + case 5: + if fieldTypeId == thrift.I32 { + if err := p.ReadField5(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + case 6: + if fieldTypeId == thrift.I64 { + if err := p.ReadField6(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -11729,62 +10498,76 @@ func (p *TOperationHandle) Read(ctx context.Context, iprot thrift.TProtocol) err if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } - if !issetOperationId{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field OperationId is not set")); - } - if !issetOperationType{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field OperationType is not set")); - } - if !issetHasResultSet{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field HasResultSet is not set")); - } return nil } -func (p *TOperationHandle) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } +func (p *TGetInfoValue) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 1: ", err) +} else { + p.StringValue = &v +} return nil } -func (p *TOperationHandle) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { +func (p *TGetInfoValue) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI16(ctx); err != nil { return thrift.PrependError("error reading field 2: ", err) } else { - temp := TOperationType(v) - p.OperationType = temp + p.SmallIntValue = &v } return nil } -func (p *TOperationHandle) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { +func (p *TGetInfoValue) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 3: ", err) } else { - p.HasResultSet = v + p.IntegerBitmask = &v } return nil } -func (p *TOperationHandle) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { +func (p *TGetInfoValue) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 4: ", err) } else { - p.ModifiedRowCount = &v + p.IntegerFlag = &v } return nil } -func (p *TOperationHandle) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TOperationHandle"); err != nil { +func (p *TGetInfoValue) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { + return thrift.PrependError("error reading field 5: ", err) +} else { + p.BinaryValue = &v +} + return nil +} + +func (p *TGetInfoValue) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { + return thrift.PrependError("error reading field 6: ", err) +} else { + p.LenValue = &v +} + return nil +} + +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) + } + if err := oprot.WriteStructBegin(ctx, "TGetInfoValue"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } + if err := p.writeField5(ctx, oprot); err != nil { return err } + if err := p.writeField6(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -11793,216 +10576,167 @@ func (p *TOperationHandle) Write(ctx context.Context, oprot thrift.TProtocol) er return nil } -func (p *TOperationHandle) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) +func (p *TGetInfoValue) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetStringValue() { + if err := oprot.WriteFieldBegin(ctx, "stringValue", thrift.STRING, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:stringValue: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.StringValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.stringValue (1) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:stringValue: ", p), err) } } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:operationId: ", p), err) } return err } -func (p *TOperationHandle) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "operationType", thrift.I32, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:operationType: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.OperationType)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.operationType (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:operationType: ", p), err) } +func (p *TGetInfoValue) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetSmallIntValue() { + if err := oprot.WriteFieldBegin(ctx, "smallIntValue", thrift.I16, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:smallIntValue: ", p), err) } + if err := oprot.WriteI16(ctx, int16(*p.SmallIntValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.smallIntValue (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:smallIntValue: ", p), err) } + } return err } -func (p *TOperationHandle) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "hasResultSet", thrift.BOOL, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:hasResultSet: ", p), err) } - if err := oprot.WriteBool(ctx, bool(p.HasResultSet)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.hasResultSet (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:hasResultSet: ", p), err) } +func (p *TGetInfoValue) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetIntegerBitmask() { + if err := oprot.WriteFieldBegin(ctx, "integerBitmask", thrift.I32, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:integerBitmask: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.IntegerBitmask)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.integerBitmask (3) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:integerBitmask: ", p), err) } + } return err } -func (p *TOperationHandle) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetModifiedRowCount() { - if err := oprot.WriteFieldBegin(ctx, "modifiedRowCount", thrift.DOUBLE, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:modifiedRowCount: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.ModifiedRowCount)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.modifiedRowCount (4) field write error: ", p), err) } +func (p *TGetInfoValue) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetIntegerFlag() { + if err := oprot.WriteFieldBegin(ctx, "integerFlag", thrift.I32, 4); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:integerFlag: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.IntegerFlag)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.integerFlag (4) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:modifiedRowCount: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 4:integerFlag: ", p), err) } } return err } -func (p *TOperationHandle) Equals(other *TOperationHandle) bool { +func (p *TGetInfoValue) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetBinaryValue() { + if err := oprot.WriteFieldBegin(ctx, "binaryValue", thrift.I32, 5); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:binaryValue: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.BinaryValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.binaryValue (5) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 5:binaryValue: ", p), err) } + } + return err +} + +func (p *TGetInfoValue) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetLenValue() { + if err := oprot.WriteFieldBegin(ctx, "lenValue", thrift.I64, 6); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:lenValue: ", p), err) } + if err := oprot.WriteI64(ctx, int64(*p.LenValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.lenValue (6) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 6:lenValue: ", p), err) } + } + return err +} + +func (p *TGetInfoValue) Equals(other *TGetInfoValue) bool { if p == other { return true } else if p == nil || other == nil { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if p.OperationType != other.OperationType { return false } - if p.HasResultSet != other.HasResultSet { return false } - if p.ModifiedRowCount != other.ModifiedRowCount { - if p.ModifiedRowCount == nil || other.ModifiedRowCount == nil { + if p.StringValue != other.StringValue { + if p.StringValue == nil || other.StringValue == nil { return false } - if (*p.ModifiedRowCount) != (*other.ModifiedRowCount) { return false } + if (*p.StringValue) != (*other.StringValue) { return false } + } + if p.SmallIntValue != other.SmallIntValue { + if p.SmallIntValue == nil || other.SmallIntValue == nil { + return false + } + if (*p.SmallIntValue) != (*other.SmallIntValue) { return false } + } + if p.IntegerBitmask != other.IntegerBitmask { + if p.IntegerBitmask == nil || other.IntegerBitmask == nil { + return false + } + if (*p.IntegerBitmask) != (*other.IntegerBitmask) { return false } + } + if p.IntegerFlag != other.IntegerFlag { + if p.IntegerFlag == nil || other.IntegerFlag == nil { + return false + } + if (*p.IntegerFlag) != (*other.IntegerFlag) { return false } + } + if p.BinaryValue != other.BinaryValue { + if p.BinaryValue == nil || other.BinaryValue == nil { + return false + } + if (*p.BinaryValue) != (*other.BinaryValue) { return false } + } + if p.LenValue != other.LenValue { + if p.LenValue == nil || other.LenValue == nil { + return false + } + if (*p.LenValue) != (*other.LenValue) { return false } } return true } -func (p *TOperationHandle) String() string { +func (p *TGetInfoValue) String() string { if p == nil { return "" } - return fmt.Sprintf("TOperationHandle(%+v)", *p) + return fmt.Sprintf("TGetInfoValue(%+v)", *p) } -func (p *TOperationHandle) Validate() error { +func (p *TGetInfoValue) Validate() error { return nil } // Attributes: -// - ClientProtocol -// - Username -// - Password -// - Configuration -// - GetInfos -// - ClientProtocolI64 -// - ConnectionProperties -// - InitialNamespace -// - CanUseMultipleCatalogs -// - SessionId -type TOpenSessionReq struct { - ClientProtocol TProtocolVersion `thrift:"client_protocol,1" db:"client_protocol" json:"client_protocol"` - Username *string `thrift:"username,2" db:"username" json:"username,omitempty"` - Password *string `thrift:"password,3" db:"password" json:"password,omitempty"` - Configuration map[string]string `thrift:"configuration,4" db:"configuration" json:"configuration,omitempty"` - // unused fields # 5 to 1280 - GetInfos []TGetInfoType `thrift:"getInfos,1281" db:"getInfos" json:"getInfos,omitempty"` - ClientProtocolI64 *int64 `thrift:"client_protocol_i64,1282" db:"client_protocol_i64" json:"client_protocol_i64,omitempty"` - ConnectionProperties map[string]string `thrift:"connectionProperties,1283" db:"connectionProperties" json:"connectionProperties,omitempty"` - InitialNamespace *TNamespace `thrift:"initialNamespace,1284" db:"initialNamespace" json:"initialNamespace,omitempty"` - CanUseMultipleCatalogs *bool `thrift:"canUseMultipleCatalogs,1285" db:"canUseMultipleCatalogs" json:"canUseMultipleCatalogs,omitempty"` - // unused fields # 1286 to 3328 - SessionId *THandleIdentifier `thrift:"sessionId,3329" db:"sessionId" json:"sessionId,omitempty"` +// - SessionHandle +// - InfoType +type TGetInfoReq struct { + SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` + InfoType TGetInfoType `thrift:"infoType,2,required" db:"infoType" json:"infoType"` } -func NewTOpenSessionReq() *TOpenSessionReq { - return &TOpenSessionReq{ -ClientProtocol: -7, -} +func NewTGetInfoReq() *TGetInfoReq { + return &TGetInfoReq{} } -var TOpenSessionReq_ClientProtocol_DEFAULT TProtocolVersion = -7 - -func (p *TOpenSessionReq) GetClientProtocol() TProtocolVersion { - return p.ClientProtocol -} -var TOpenSessionReq_Username_DEFAULT string -func (p *TOpenSessionReq) GetUsername() string { - if !p.IsSetUsername() { - return TOpenSessionReq_Username_DEFAULT - } -return *p.Username -} -var TOpenSessionReq_Password_DEFAULT string -func (p *TOpenSessionReq) GetPassword() string { - if !p.IsSetPassword() { - return TOpenSessionReq_Password_DEFAULT +var TGetInfoReq_SessionHandle_DEFAULT *TSessionHandle +func (p *TGetInfoReq) GetSessionHandle() *TSessionHandle { + if !p.IsSetSessionHandle() { + return TGetInfoReq_SessionHandle_DEFAULT } -return *p.Password -} -var TOpenSessionReq_Configuration_DEFAULT map[string]string - -func (p *TOpenSessionReq) GetConfiguration() map[string]string { - return p.Configuration +return p.SessionHandle } -var TOpenSessionReq_GetInfos_DEFAULT []TGetInfoType -func (p *TOpenSessionReq) GetGetInfos() []TGetInfoType { - return p.GetInfos +func (p *TGetInfoReq) GetInfoType() TGetInfoType { + return p.InfoType } -var TOpenSessionReq_ClientProtocolI64_DEFAULT int64 -func (p *TOpenSessionReq) GetClientProtocolI64() int64 { - if !p.IsSetClientProtocolI64() { - return TOpenSessionReq_ClientProtocolI64_DEFAULT - } -return *p.ClientProtocolI64 +func (p *TGetInfoReq) IsSetSessionHandle() bool { + return p.SessionHandle != nil } -var TOpenSessionReq_ConnectionProperties_DEFAULT map[string]string -func (p *TOpenSessionReq) GetConnectionProperties() map[string]string { - return p.ConnectionProperties -} -var TOpenSessionReq_InitialNamespace_DEFAULT *TNamespace -func (p *TOpenSessionReq) GetInitialNamespace() *TNamespace { - if !p.IsSetInitialNamespace() { - return TOpenSessionReq_InitialNamespace_DEFAULT - } -return p.InitialNamespace -} -var TOpenSessionReq_CanUseMultipleCatalogs_DEFAULT bool -func (p *TOpenSessionReq) GetCanUseMultipleCatalogs() bool { - if !p.IsSetCanUseMultipleCatalogs() { - return TOpenSessionReq_CanUseMultipleCatalogs_DEFAULT - } -return *p.CanUseMultipleCatalogs -} -var TOpenSessionReq_SessionId_DEFAULT *THandleIdentifier -func (p *TOpenSessionReq) GetSessionId() *THandleIdentifier { - if !p.IsSetSessionId() { - return TOpenSessionReq_SessionId_DEFAULT - } -return p.SessionId -} -func (p *TOpenSessionReq) IsSetClientProtocol() bool { - return p.ClientProtocol != TOpenSessionReq_ClientProtocol_DEFAULT -} - -func (p *TOpenSessionReq) IsSetUsername() bool { - return p.Username != nil -} - -func (p *TOpenSessionReq) IsSetPassword() bool { - return p.Password != nil -} - -func (p *TOpenSessionReq) IsSetConfiguration() bool { - return p.Configuration != nil -} - -func (p *TOpenSessionReq) IsSetGetInfos() bool { - return p.GetInfos != nil -} - -func (p *TOpenSessionReq) IsSetClientProtocolI64() bool { - return p.ClientProtocolI64 != nil -} - -func (p *TOpenSessionReq) IsSetConnectionProperties() bool { - return p.ConnectionProperties != nil -} - -func (p *TOpenSessionReq) IsSetInitialNamespace() bool { - return p.InitialNamespace != nil -} - -func (p *TOpenSessionReq) IsSetCanUseMultipleCatalogs() bool { - return p.CanUseMultipleCatalogs != nil -} - -func (p *TOpenSessionReq) IsSetSessionId() bool { - return p.SessionId != nil -} - -func (p *TOpenSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) +func (p *TGetInfoReq) Read(ctx context.Context, iprot thrift.TProtocol) error { + if _, err := iprot.ReadStructBegin(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } + var issetSessionHandle bool = false; + var issetInfoType bool = false; for { _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) @@ -12012,100 +10746,22 @@ func (p *TOpenSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) erro if fieldTypeId == thrift.STOP { break; } switch fieldId { case 1: - if fieldTypeId == thrift.I32 { + if fieldTypeId == thrift.STRUCT { if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetSessionHandle = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } case 2: - if fieldTypeId == thrift.STRING { + if fieldTypeId == thrift.I32 { if err := p.ReadField2(ctx, iprot); err != nil { return err } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 4: - if fieldTypeId == thrift.MAP { - if err := p.ReadField4(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.LIST { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1282: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1282(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1283: - if fieldTypeId == thrift.MAP { - if err := p.ReadField1283(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1284: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1284(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1285: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1285(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } + issetInfoType = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -12123,1680 +10779,99 @@ func (p *TOpenSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) erro if err := iprot.ReadStructEnd(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) } + if !issetSessionHandle{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionHandle is not set")); + } + if !issetInfoType{ + return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field InfoType is not set")); + } return nil } -func (p *TOpenSessionReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - temp := TProtocolVersion(v) - p.ClientProtocol = temp -} +func (p *TGetInfoReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { + p.SessionHandle = &TSessionHandle{} + if err := p.SessionHandle.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) + } return nil } -func (p *TOpenSessionReq) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { +func (p *TGetInfoReq) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI32(ctx); err != nil { return thrift.PrependError("error reading field 2: ", err) } else { - p.Username = &v + temp := TGetInfoType(v) + p.InfoType = temp } return nil } -func (p *TOpenSessionReq) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3: ", err) -} else { - p.Password = &v -} +func (p *TGetInfoReq) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TGetInfoReq"); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } + if p != nil { + if err := p.writeField1(ctx, oprot); err != nil { return err } + if err := p.writeField2(ctx, oprot); err != nil { return err } + } + if err := oprot.WriteFieldStop(ctx); err != nil { + return thrift.PrependError("write field stop error: ", err) } + if err := oprot.WriteStructEnd(ctx); err != nil { + return thrift.PrependError("write struct stop error: ", err) } return nil } -func (p *TOpenSessionReq) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) - if err != nil { - return thrift.PrependError("error reading map begin: ", err) +func (p *TGetInfoReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionHandle: ", p), err) } + if err := p.SessionHandle.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) } - tMap := make(map[string]string, size) - p.Configuration = tMap - for i := 0; i < size; i ++ { -var _key62 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key62 = v + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionHandle: ", p), err) } + return err } -var _val63 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val63 = v + +func (p *TGetInfoReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "infoType", thrift.I32, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:infoType: ", p), err) } + if err := oprot.WriteI32(ctx, int32(p.InfoType)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.infoType (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:infoType: ", p), err) } + return err } - p.Configuration[_key62] = _val63 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) + +func (p *TGetInfoReq) Equals(other *TGetInfoReq) bool { + if p == other { + return true + } else if p == nil || other == nil { + return false } - return nil + if !p.SessionHandle.Equals(other.SessionHandle) { return false } + if p.InfoType != other.InfoType { return false } + return true } -func (p *TOpenSessionReq) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) +func (p *TGetInfoReq) String() string { + if p == nil { + return "" } - tSlice := make([]TGetInfoType, 0, size) - p.GetInfos = tSlice - for i := 0; i < size; i ++ { -var _elem64 TGetInfoType - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - temp := TGetInfoType(v) - _elem64 = temp + return fmt.Sprintf("TGetInfoReq(%+v)", *p) } - p.GetInfos = append(p.GetInfos, _elem64) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } + +func (p *TGetInfoReq) Validate() error { return nil } - -func (p *TOpenSessionReq) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 1282: ", err) -} else { - p.ClientProtocolI64 = &v +// Attributes: +// - Status +// - InfoValue +type TGetInfoResp struct { + Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` + InfoValue *TGetInfoValue `thrift:"infoValue,2,required" db:"infoValue" json:"infoValue"` } - return nil -} - -func (p *TOpenSessionReq) ReadField1283(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) - if err != nil { - return thrift.PrependError("error reading map begin: ", err) - } - tMap := make(map[string]string, size) - p.ConnectionProperties = tMap - for i := 0; i < size; i ++ { -var _key65 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key65 = v -} -var _val66 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val66 = v -} - p.ConnectionProperties[_key65] = _val66 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) - } - return nil -} - -func (p *TOpenSessionReq) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { - p.InitialNamespace = &TNamespace{} - if err := p.InitialNamespace.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.InitialNamespace), err) - } - return nil -} - -func (p *TOpenSessionReq) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 1285: ", err) -} else { - p.CanUseMultipleCatalogs = &v -} - return nil -} - -func (p *TOpenSessionReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionId = &THandleIdentifier{} - if err := p.SessionId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionId), err) - } - return nil -} - -func (p *TOpenSessionReq) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TOpenSessionReq"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3(ctx, oprot); err != nil { return err } - if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField1283(ctx, oprot); err != nil { return err } - if err := p.writeField1284(ctx, oprot); err != nil { return err } - if err := p.writeField1285(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TOpenSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetClientProtocol() { - if err := oprot.WriteFieldBegin(ctx, "client_protocol", thrift.I32, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:client_protocol: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.ClientProtocol)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.client_protocol (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:client_protocol: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetUsername() { - if err := oprot.WriteFieldBegin(ctx, "username", thrift.STRING, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:username: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Username)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.username (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:username: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetPassword() { - if err := oprot.WriteFieldBegin(ctx, "password", thrift.STRING, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:password: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Password)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.password (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:password: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetConfiguration() { - if err := oprot.WriteFieldBegin(ctx, "configuration", thrift.MAP, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:configuration: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Configuration)); err != nil { - return thrift.PrependError("error writing map begin: ", err) - } - for k, v := range p.Configuration { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:configuration: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetGetInfos() { - if err := oprot.WriteFieldBegin(ctx, "getInfos", thrift.LIST, 1281); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:getInfos: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.I32, len(p.GetInfos)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.GetInfos { - if err := oprot.WriteI32(ctx, int32(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:getInfos: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetClientProtocolI64() { - if err := oprot.WriteFieldBegin(ctx, "client_protocol_i64", thrift.I64, 1282); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:client_protocol_i64: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.ClientProtocolI64)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.client_protocol_i64 (1282) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:client_protocol_i64: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField1283(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetConnectionProperties() { - if err := oprot.WriteFieldBegin(ctx, "connectionProperties", thrift.MAP, 1283); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1283:connectionProperties: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.ConnectionProperties)); err != nil { - return thrift.PrependError("error writing map begin: ", err) - } - for k, v := range p.ConnectionProperties { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1283:connectionProperties: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetInitialNamespace() { - if err := oprot.WriteFieldBegin(ctx, "initialNamespace", thrift.STRUCT, 1284); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:initialNamespace: ", p), err) } - if err := p.InitialNamespace.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.InitialNamespace), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:initialNamespace: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCanUseMultipleCatalogs() { - if err := oprot.WriteFieldBegin(ctx, "canUseMultipleCatalogs", thrift.BOOL, 1285); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:canUseMultipleCatalogs: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.CanUseMultipleCatalogs)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.canUseMultipleCatalogs (1285) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:canUseMultipleCatalogs: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionId() { - if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:sessionId: ", p), err) } - if err := p.SessionId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:sessionId: ", p), err) } - } - return err -} - -func (p *TOpenSessionReq) Equals(other *TOpenSessionReq) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if p.ClientProtocol != other.ClientProtocol { return false } - if p.Username != other.Username { - if p.Username == nil || other.Username == nil { - return false - } - if (*p.Username) != (*other.Username) { return false } - } - if p.Password != other.Password { - if p.Password == nil || other.Password == nil { - return false - } - if (*p.Password) != (*other.Password) { return false } - } - if len(p.Configuration) != len(other.Configuration) { return false } - for k, _tgt := range p.Configuration { - _src67 := other.Configuration[k] - if _tgt != _src67 { return false } - } - if len(p.GetInfos) != len(other.GetInfos) { return false } - for i, _tgt := range p.GetInfos { - _src68 := other.GetInfos[i] - if _tgt != _src68 { return false } - } - if p.ClientProtocolI64 != other.ClientProtocolI64 { - if p.ClientProtocolI64 == nil || other.ClientProtocolI64 == nil { - return false - } - if (*p.ClientProtocolI64) != (*other.ClientProtocolI64) { return false } - } - if len(p.ConnectionProperties) != len(other.ConnectionProperties) { return false } - for k, _tgt := range p.ConnectionProperties { - _src69 := other.ConnectionProperties[k] - if _tgt != _src69 { return false } - } - if !p.InitialNamespace.Equals(other.InitialNamespace) { return false } - if p.CanUseMultipleCatalogs != other.CanUseMultipleCatalogs { - if p.CanUseMultipleCatalogs == nil || other.CanUseMultipleCatalogs == nil { - return false - } - if (*p.CanUseMultipleCatalogs) != (*other.CanUseMultipleCatalogs) { return false } - } - if !p.SessionId.Equals(other.SessionId) { return false } - return true -} - -func (p *TOpenSessionReq) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TOpenSessionReq(%+v)", *p) -} - -func (p *TOpenSessionReq) Validate() error { - return nil -} -// Attributes: -// - Status -// - ServerProtocolVersion -// - SessionHandle -// - Configuration -// - InitialNamespace -// - CanUseMultipleCatalogs -// - GetInfos -type TOpenSessionResp struct { - Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` - ServerProtocolVersion TProtocolVersion `thrift:"serverProtocolVersion,2,required" db:"serverProtocolVersion" json:"serverProtocolVersion"` - SessionHandle *TSessionHandle `thrift:"sessionHandle,3" db:"sessionHandle" json:"sessionHandle,omitempty"` - Configuration map[string]string `thrift:"configuration,4" db:"configuration" json:"configuration,omitempty"` - // unused fields # 5 to 1280 - GetInfos []*TGetInfoValue `thrift:"getInfos,1281" db:"getInfos" json:"getInfos,omitempty"` - // unused fields # 1282 to 1283 - InitialNamespace *TNamespace `thrift:"initialNamespace,1284" db:"initialNamespace" json:"initialNamespace,omitempty"` - CanUseMultipleCatalogs *bool `thrift:"canUseMultipleCatalogs,1285" db:"canUseMultipleCatalogs" json:"canUseMultipleCatalogs,omitempty"` -} - -func NewTOpenSessionResp() *TOpenSessionResp { - return &TOpenSessionResp{} -} - -var TOpenSessionResp_Status_DEFAULT *TStatus -func (p *TOpenSessionResp) GetStatus() *TStatus { - if !p.IsSetStatus() { - return TOpenSessionResp_Status_DEFAULT - } -return p.Status -} - -func (p *TOpenSessionResp) GetServerProtocolVersion() TProtocolVersion { - return p.ServerProtocolVersion -} -var TOpenSessionResp_SessionHandle_DEFAULT *TSessionHandle -func (p *TOpenSessionResp) GetSessionHandle() *TSessionHandle { - if !p.IsSetSessionHandle() { - return TOpenSessionResp_SessionHandle_DEFAULT - } -return p.SessionHandle -} -var TOpenSessionResp_Configuration_DEFAULT map[string]string - -func (p *TOpenSessionResp) GetConfiguration() map[string]string { - return p.Configuration -} -var TOpenSessionResp_InitialNamespace_DEFAULT *TNamespace -func (p *TOpenSessionResp) GetInitialNamespace() *TNamespace { - if !p.IsSetInitialNamespace() { - return TOpenSessionResp_InitialNamespace_DEFAULT - } -return p.InitialNamespace -} -var TOpenSessionResp_CanUseMultipleCatalogs_DEFAULT bool -func (p *TOpenSessionResp) GetCanUseMultipleCatalogs() bool { - if !p.IsSetCanUseMultipleCatalogs() { - return TOpenSessionResp_CanUseMultipleCatalogs_DEFAULT - } -return *p.CanUseMultipleCatalogs -} -var TOpenSessionResp_GetInfos_DEFAULT []*TGetInfoValue - -func (p *TOpenSessionResp) GetGetInfos() []*TGetInfoValue { - return p.GetInfos -} -func (p *TOpenSessionResp) IsSetStatus() bool { - return p.Status != nil -} - -func (p *TOpenSessionResp) IsSetSessionHandle() bool { - return p.SessionHandle != nil -} - -func (p *TOpenSessionResp) IsSetConfiguration() bool { - return p.Configuration != nil -} - -func (p *TOpenSessionResp) IsSetInitialNamespace() bool { - return p.InitialNamespace != nil -} - -func (p *TOpenSessionResp) IsSetCanUseMultipleCatalogs() bool { - return p.CanUseMultipleCatalogs != nil -} - -func (p *TOpenSessionResp) IsSetGetInfos() bool { - return p.GetInfos != nil -} - -func (p *TOpenSessionResp) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetStatus bool = false; - var issetServerProtocolVersion bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetStatus = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.I32 { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - issetServerProtocolVersion = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 4: - if fieldTypeId == thrift.MAP { - if err := p.ReadField4(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1284: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1284(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1285: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1285(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.LIST { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - if !issetStatus{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set")); - } - if !issetServerProtocolVersion{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ServerProtocolVersion is not set")); - } - return nil -} - -func (p *TOpenSessionResp) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.Status = &TStatus{} - if err := p.Status.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Status), err) - } - return nil -} - -func (p *TOpenSessionResp) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - temp := TProtocolVersion(v) - p.ServerProtocolVersion = temp -} - return nil -} - -func (p *TOpenSessionResp) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionHandle = &TSessionHandle{} - if err := p.SessionHandle.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) - } - return nil -} - -func (p *TOpenSessionResp) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - _, _, size, err := iprot.ReadMapBegin(ctx) - if err != nil { - return thrift.PrependError("error reading map begin: ", err) - } - tMap := make(map[string]string, size) - p.Configuration = tMap - for i := 0; i < size; i ++ { -var _key70 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key70 = v -} -var _val71 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _val71 = v -} - p.Configuration[_key70] = _val71 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) - } - return nil -} - -func (p *TOpenSessionResp) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { - p.InitialNamespace = &TNamespace{} - if err := p.InitialNamespace.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.InitialNamespace), err) - } - return nil -} - -func (p *TOpenSessionResp) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 1285: ", err) -} else { - p.CanUseMultipleCatalogs = &v -} - return nil -} - -func (p *TOpenSessionResp) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TGetInfoValue, 0, size) - p.GetInfos = tSlice - for i := 0; i < size; i ++ { - _elem72 := &TGetInfoValue{} - if err := _elem72.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem72), err) - } - p.GetInfos = append(p.GetInfos, _elem72) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil -} - -func (p *TOpenSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TOpenSessionResp"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3(ctx, oprot); err != nil { return err } - if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField1284(ctx, oprot); err != nil { return err } - if err := p.writeField1285(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TOpenSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } - if err := p.Status.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } - return err -} - -func (p *TOpenSessionResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "serverProtocolVersion", thrift.I32, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:serverProtocolVersion: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.ServerProtocolVersion)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.serverProtocolVersion (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:serverProtocolVersion: ", p), err) } - return err -} - -func (p *TOpenSessionResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionHandle() { - if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sessionHandle: ", p), err) } - if err := p.SessionHandle.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sessionHandle: ", p), err) } - } - return err -} - -func (p *TOpenSessionResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetConfiguration() { - if err := oprot.WriteFieldBegin(ctx, "configuration", thrift.MAP, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:configuration: ", p), err) } - if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.STRING, len(p.Configuration)); err != nil { - return thrift.PrependError("error writing map begin: ", err) - } - for k, v := range p.Configuration { - if err := oprot.WriteString(ctx, string(k)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - if err := oprot.WriteString(ctx, string(v)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } - } - if err := oprot.WriteMapEnd(ctx); err != nil { - return thrift.PrependError("error writing map end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:configuration: ", p), err) } - } - return err -} - -func (p *TOpenSessionResp) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetGetInfos() { - if err := oprot.WriteFieldBegin(ctx, "getInfos", thrift.LIST, 1281); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:getInfos: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.GetInfos)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.GetInfos { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:getInfos: ", p), err) } - } - return err -} - -func (p *TOpenSessionResp) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetInitialNamespace() { - if err := oprot.WriteFieldBegin(ctx, "initialNamespace", thrift.STRUCT, 1284); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:initialNamespace: ", p), err) } - if err := p.InitialNamespace.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.InitialNamespace), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:initialNamespace: ", p), err) } - } - return err -} - -func (p *TOpenSessionResp) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCanUseMultipleCatalogs() { - if err := oprot.WriteFieldBegin(ctx, "canUseMultipleCatalogs", thrift.BOOL, 1285); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:canUseMultipleCatalogs: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.CanUseMultipleCatalogs)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.canUseMultipleCatalogs (1285) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:canUseMultipleCatalogs: ", p), err) } - } - return err -} - -func (p *TOpenSessionResp) Equals(other *TOpenSessionResp) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if !p.Status.Equals(other.Status) { return false } - if p.ServerProtocolVersion != other.ServerProtocolVersion { return false } - if !p.SessionHandle.Equals(other.SessionHandle) { return false } - if len(p.Configuration) != len(other.Configuration) { return false } - for k, _tgt := range p.Configuration { - _src73 := other.Configuration[k] - if _tgt != _src73 { return false } - } - if len(p.GetInfos) != len(other.GetInfos) { return false } - for i, _tgt := range p.GetInfos { - _src74 := other.GetInfos[i] - if !_tgt.Equals(_src74) { return false } - } - if !p.InitialNamespace.Equals(other.InitialNamespace) { return false } - if p.CanUseMultipleCatalogs != other.CanUseMultipleCatalogs { - if p.CanUseMultipleCatalogs == nil || other.CanUseMultipleCatalogs == nil { - return false - } - if (*p.CanUseMultipleCatalogs) != (*other.CanUseMultipleCatalogs) { return false } - } - return true -} - -func (p *TOpenSessionResp) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TOpenSessionResp(%+v)", *p) -} - -func (p *TOpenSessionResp) Validate() error { - return nil -} -// Attributes: -// - SessionHandle -type TCloseSessionReq struct { - SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` -} - -func NewTCloseSessionReq() *TCloseSessionReq { - return &TCloseSessionReq{} -} - -var TCloseSessionReq_SessionHandle_DEFAULT *TSessionHandle -func (p *TCloseSessionReq) GetSessionHandle() *TSessionHandle { - if !p.IsSetSessionHandle() { - return TCloseSessionReq_SessionHandle_DEFAULT - } -return p.SessionHandle -} -func (p *TCloseSessionReq) IsSetSessionHandle() bool { - return p.SessionHandle != nil -} - -func (p *TCloseSessionReq) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetSessionHandle bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetSessionHandle = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - if !issetSessionHandle{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionHandle is not set")); - } - return nil -} - -func (p *TCloseSessionReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionHandle = &TSessionHandle{} - if err := p.SessionHandle.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) - } - return nil -} - -func (p *TCloseSessionReq) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TCloseSessionReq"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TCloseSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionHandle: ", p), err) } - if err := p.SessionHandle.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionHandle: ", p), err) } - return err -} - -func (p *TCloseSessionReq) Equals(other *TCloseSessionReq) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if !p.SessionHandle.Equals(other.SessionHandle) { return false } - return true -} - -func (p *TCloseSessionReq) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TCloseSessionReq(%+v)", *p) -} - -func (p *TCloseSessionReq) Validate() error { - return nil -} -// Attributes: -// - Status -type TCloseSessionResp struct { - Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` -} - -func NewTCloseSessionResp() *TCloseSessionResp { - return &TCloseSessionResp{} -} - -var TCloseSessionResp_Status_DEFAULT *TStatus -func (p *TCloseSessionResp) GetStatus() *TStatus { - if !p.IsSetStatus() { - return TCloseSessionResp_Status_DEFAULT - } -return p.Status -} -func (p *TCloseSessionResp) IsSetStatus() bool { - return p.Status != nil -} - -func (p *TCloseSessionResp) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetStatus bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetStatus = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - if !issetStatus{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set")); - } - return nil -} - -func (p *TCloseSessionResp) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.Status = &TStatus{} - if err := p.Status.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Status), err) - } - return nil -} - -func (p *TCloseSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TCloseSessionResp"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TCloseSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } - if err := p.Status.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } - return err -} - -func (p *TCloseSessionResp) Equals(other *TCloseSessionResp) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if !p.Status.Equals(other.Status) { return false } - return true -} - -func (p *TCloseSessionResp) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TCloseSessionResp(%+v)", *p) -} - -func (p *TCloseSessionResp) Validate() error { - return nil -} -// Attributes: -// - StringValue -// - SmallIntValue -// - IntegerBitmask -// - IntegerFlag -// - BinaryValue -// - LenValue -type TGetInfoValue struct { - StringValue *string `thrift:"stringValue,1" db:"stringValue" json:"stringValue,omitempty"` - SmallIntValue *int16 `thrift:"smallIntValue,2" db:"smallIntValue" json:"smallIntValue,omitempty"` - IntegerBitmask *int32 `thrift:"integerBitmask,3" db:"integerBitmask" json:"integerBitmask,omitempty"` - IntegerFlag *int32 `thrift:"integerFlag,4" db:"integerFlag" json:"integerFlag,omitempty"` - BinaryValue *int32 `thrift:"binaryValue,5" db:"binaryValue" json:"binaryValue,omitempty"` - LenValue *int64 `thrift:"lenValue,6" db:"lenValue" json:"lenValue,omitempty"` -} - -func NewTGetInfoValue() *TGetInfoValue { - return &TGetInfoValue{} -} - -var TGetInfoValue_StringValue_DEFAULT string -func (p *TGetInfoValue) GetStringValue() string { - if !p.IsSetStringValue() { - return TGetInfoValue_StringValue_DEFAULT - } -return *p.StringValue -} -var TGetInfoValue_SmallIntValue_DEFAULT int16 -func (p *TGetInfoValue) GetSmallIntValue() int16 { - if !p.IsSetSmallIntValue() { - return TGetInfoValue_SmallIntValue_DEFAULT - } -return *p.SmallIntValue -} -var TGetInfoValue_IntegerBitmask_DEFAULT int32 -func (p *TGetInfoValue) GetIntegerBitmask() int32 { - if !p.IsSetIntegerBitmask() { - return TGetInfoValue_IntegerBitmask_DEFAULT - } -return *p.IntegerBitmask -} -var TGetInfoValue_IntegerFlag_DEFAULT int32 -func (p *TGetInfoValue) GetIntegerFlag() int32 { - if !p.IsSetIntegerFlag() { - return TGetInfoValue_IntegerFlag_DEFAULT - } -return *p.IntegerFlag -} -var TGetInfoValue_BinaryValue_DEFAULT int32 -func (p *TGetInfoValue) GetBinaryValue() int32 { - if !p.IsSetBinaryValue() { - return TGetInfoValue_BinaryValue_DEFAULT - } -return *p.BinaryValue -} -var TGetInfoValue_LenValue_DEFAULT int64 -func (p *TGetInfoValue) GetLenValue() int64 { - if !p.IsSetLenValue() { - return TGetInfoValue_LenValue_DEFAULT - } -return *p.LenValue -} -func (p *TGetInfoValue) CountSetFieldsTGetInfoValue() int { - count := 0 - if (p.IsSetStringValue()) { - count++ - } - if (p.IsSetSmallIntValue()) { - count++ - } - if (p.IsSetIntegerBitmask()) { - count++ - } - if (p.IsSetIntegerFlag()) { - count++ - } - if (p.IsSetBinaryValue()) { - count++ - } - if (p.IsSetLenValue()) { - count++ - } - return count - -} - -func (p *TGetInfoValue) IsSetStringValue() bool { - return p.StringValue != nil -} - -func (p *TGetInfoValue) IsSetSmallIntValue() bool { - return p.SmallIntValue != nil -} - -func (p *TGetInfoValue) IsSetIntegerBitmask() bool { - return p.IntegerBitmask != nil -} - -func (p *TGetInfoValue) IsSetIntegerFlag() bool { - return p.IntegerFlag != nil -} - -func (p *TGetInfoValue) IsSetBinaryValue() bool { - return p.BinaryValue != nil -} - -func (p *TGetInfoValue) IsSetLenValue() bool { - return p.LenValue != nil -} - -func (p *TGetInfoValue) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRING { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.I16 { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 4: - if fieldTypeId == thrift.I32 { - if err := p.ReadField4(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 5: - if fieldTypeId == thrift.I32 { - if err := p.ReadField5(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 6: - if fieldTypeId == thrift.I64 { - if err := p.ReadField6(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - return nil -} - -func (p *TGetInfoValue) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 1: ", err) -} else { - p.StringValue = &v -} - return nil -} - -func (p *TGetInfoValue) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI16(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - p.SmallIntValue = &v -} - return nil -} - -func (p *TGetInfoValue) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3: ", err) -} else { - p.IntegerBitmask = &v -} - return nil -} - -func (p *TGetInfoValue) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 4: ", err) -} else { - p.IntegerFlag = &v -} - return nil -} - -func (p *TGetInfoValue) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 5: ", err) -} else { - p.BinaryValue = &v -} - return nil -} - -func (p *TGetInfoValue) ReadField6(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 6: ", err) -} else { - p.LenValue = &v -} - return nil -} - -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) - } - if err := oprot.WriteStructBegin(ctx, "TGetInfoValue"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3(ctx, oprot); err != nil { return err } - if err := p.writeField4(ctx, oprot); err != nil { return err } - if err := p.writeField5(ctx, oprot); err != nil { return err } - if err := p.writeField6(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TGetInfoValue) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStringValue() { - if err := oprot.WriteFieldBegin(ctx, "stringValue", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:stringValue: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.StringValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.stringValue (1) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:stringValue: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSmallIntValue() { - if err := oprot.WriteFieldBegin(ctx, "smallIntValue", thrift.I16, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:smallIntValue: ", p), err) } - if err := oprot.WriteI16(ctx, int16(*p.SmallIntValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.smallIntValue (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:smallIntValue: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIntegerBitmask() { - if err := oprot.WriteFieldBegin(ctx, "integerBitmask", thrift.I32, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:integerBitmask: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.IntegerBitmask)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.integerBitmask (3) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:integerBitmask: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIntegerFlag() { - if err := oprot.WriteFieldBegin(ctx, "integerFlag", thrift.I32, 4); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:integerFlag: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.IntegerFlag)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.integerFlag (4) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 4:integerFlag: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetBinaryValue() { - if err := oprot.WriteFieldBegin(ctx, "binaryValue", thrift.I32, 5); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:binaryValue: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.BinaryValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.binaryValue (5) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 5:binaryValue: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) writeField6(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetLenValue() { - if err := oprot.WriteFieldBegin(ctx, "lenValue", thrift.I64, 6); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:lenValue: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.LenValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.lenValue (6) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 6:lenValue: ", p), err) } - } - return err -} - -func (p *TGetInfoValue) Equals(other *TGetInfoValue) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if p.StringValue != other.StringValue { - if p.StringValue == nil || other.StringValue == nil { - return false - } - if (*p.StringValue) != (*other.StringValue) { return false } - } - if p.SmallIntValue != other.SmallIntValue { - if p.SmallIntValue == nil || other.SmallIntValue == nil { - return false - } - if (*p.SmallIntValue) != (*other.SmallIntValue) { return false } - } - if p.IntegerBitmask != other.IntegerBitmask { - if p.IntegerBitmask == nil || other.IntegerBitmask == nil { - return false - } - if (*p.IntegerBitmask) != (*other.IntegerBitmask) { return false } - } - if p.IntegerFlag != other.IntegerFlag { - if p.IntegerFlag == nil || other.IntegerFlag == nil { - return false - } - if (*p.IntegerFlag) != (*other.IntegerFlag) { return false } - } - if p.BinaryValue != other.BinaryValue { - if p.BinaryValue == nil || other.BinaryValue == nil { - return false - } - if (*p.BinaryValue) != (*other.BinaryValue) { return false } - } - if p.LenValue != other.LenValue { - if p.LenValue == nil || other.LenValue == nil { - return false - } - if (*p.LenValue) != (*other.LenValue) { return false } - } - return true -} - -func (p *TGetInfoValue) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TGetInfoValue(%+v)", *p) -} - -func (p *TGetInfoValue) Validate() error { - return nil -} -// Attributes: -// - SessionHandle -// - InfoType -// - SessionConf -type TGetInfoReq struct { - SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` - InfoType TGetInfoType `thrift:"infoType,2,required" db:"infoType" json:"infoType"` - // unused fields # 3 to 3328 - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3329" db:"sessionConf" json:"sessionConf,omitempty"` -} - -func NewTGetInfoReq() *TGetInfoReq { - return &TGetInfoReq{} -} - -var TGetInfoReq_SessionHandle_DEFAULT *TSessionHandle -func (p *TGetInfoReq) GetSessionHandle() *TSessionHandle { - if !p.IsSetSessionHandle() { - return TGetInfoReq_SessionHandle_DEFAULT - } -return p.SessionHandle -} - -func (p *TGetInfoReq) GetInfoType() TGetInfoType { - return p.InfoType -} -var TGetInfoReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetInfoReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetInfoReq_SessionConf_DEFAULT - } -return p.SessionConf -} -func (p *TGetInfoReq) IsSetSessionHandle() bool { - return p.SessionHandle != nil -} - -func (p *TGetInfoReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - -func (p *TGetInfoReq) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetSessionHandle bool = false; - var issetInfoType bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetSessionHandle = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.I32 { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - issetInfoType = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - default: - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - if err := iprot.ReadFieldEnd(ctx); err != nil { - return err - } - } - if err := iprot.ReadStructEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err) - } - if !issetSessionHandle{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SessionHandle is not set")); - } - if !issetInfoType{ - return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field InfoType is not set")); - } - return nil -} - -func (p *TGetInfoReq) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionHandle = &TSessionHandle{} - if err := p.SessionHandle.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionHandle), err) - } - return nil -} - -func (p *TGetInfoReq) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 2: ", err) -} else { - temp := TGetInfoType(v) - p.InfoType = temp -} - return nil -} - -func (p *TGetInfoReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - -func (p *TGetInfoReq) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TGetInfoReq"); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } - if p != nil { - if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - } - if err := oprot.WriteFieldStop(ctx); err != nil { - return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TGetInfoReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "sessionHandle", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionHandle: ", p), err) } - if err := p.SessionHandle.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionHandle), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionHandle: ", p), err) } - return err -} - -func (p *TGetInfoReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "infoType", thrift.I32, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:infoType: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.InfoType)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.infoType (2) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:infoType: ", p), err) } - return err -} - -func (p *TGetInfoReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:sessionConf: ", p), err) } - } - return err -} - -func (p *TGetInfoReq) Equals(other *TGetInfoReq) bool { - if p == other { - return true - } else if p == nil || other == nil { - return false - } - if !p.SessionHandle.Equals(other.SessionHandle) { return false } - if p.InfoType != other.InfoType { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } - return true -} - -func (p *TGetInfoReq) String() string { - if p == nil { - return "" - } - return fmt.Sprintf("TGetInfoReq(%+v)", *p) -} - -func (p *TGetInfoReq) Validate() error { - return nil -} -// Attributes: -// - Status -// - InfoValue -type TGetInfoResp struct { - Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` - InfoValue *TGetInfoValue `thrift:"infoValue,2,required" db:"infoValue" json:"infoValue"` -} - -func NewTGetInfoResp() *TGetInfoResp { - return &TGetInfoResp{} + +func NewTGetInfoResp() *TGetInfoResp { + return &TGetInfoResp{} } var TGetInfoResp_Status_DEFAULT *TStatus @@ -14701,27 +11776,6 @@ func (p *TSparkArrowTypes) Validate() error { // - Parameters // - MaxBytesPerBatch // - StatementConf -// - OperationId -// - SessionConf -// - RejectHighCostQueries -// - EstimatedCost -// - ExecutionVersion -// - RequestValidation -// - ResultPersistenceMode -// - TrimArrowBatchesToLimit -// - FetchDisposition -// - EnforceResultPersistenceMode -// - StatementList -// - PersistResultManifest -// - ResultRetentionSeconds -// - ResultByteLimit -// - ResultDataFormat -// - OriginatingClientIdentity -// - PreferSingleFileResult_ -// - PreferDriverOnlyUpload -// - EnforceEmbeddedSchemaCorrectness -// - IdempotencyToken -// - ThrowErrorOnByteLimitTruncation type TExecuteStatementReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` Statement string `thrift:"statement,2,required" db:"statement" json:"statement"` @@ -14740,30 +11794,6 @@ type TExecuteStatementReq struct { MaxBytesPerBatch *int64 `thrift:"maxBytesPerBatch,1289" db:"maxBytesPerBatch" json:"maxBytesPerBatch,omitempty"` // unused fields # 1290 to 1295 StatementConf *TStatementConf `thrift:"statementConf,1296" db:"statementConf" json:"statementConf,omitempty"` - // unused fields # 1297 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` - RejectHighCostQueries *bool `thrift:"rejectHighCostQueries,3331" db:"rejectHighCostQueries" json:"rejectHighCostQueries,omitempty"` - EstimatedCost *float64 `thrift:"estimatedCost,3332" db:"estimatedCost" json:"estimatedCost,omitempty"` - ExecutionVersion *int16 `thrift:"executionVersion,3333" db:"executionVersion" json:"executionVersion,omitempty"` - RequestValidation []byte `thrift:"requestValidation,3334" db:"requestValidation" json:"requestValidation,omitempty"` - ResultPersistenceMode *TResultPersistenceMode `thrift:"resultPersistenceMode,3335" db:"resultPersistenceMode" json:"resultPersistenceMode,omitempty"` - TrimArrowBatchesToLimit *bool `thrift:"trimArrowBatchesToLimit,3336" db:"trimArrowBatchesToLimit" json:"trimArrowBatchesToLimit,omitempty"` - FetchDisposition *TDBSqlFetchDisposition `thrift:"fetchDisposition,3337" db:"fetchDisposition" json:"fetchDisposition,omitempty"` - // unused fields # 3338 to 3343 - EnforceResultPersistenceMode *bool `thrift:"enforceResultPersistenceMode,3344" db:"enforceResultPersistenceMode" json:"enforceResultPersistenceMode,omitempty"` - StatementList []*TDBSqlStatement `thrift:"statementList,3345" db:"statementList" json:"statementList,omitempty"` - PersistResultManifest *bool `thrift:"persistResultManifest,3346" db:"persistResultManifest" json:"persistResultManifest,omitempty"` - ResultRetentionSeconds *int64 `thrift:"resultRetentionSeconds,3347" db:"resultRetentionSeconds" json:"resultRetentionSeconds,omitempty"` - ResultByteLimit *int64 `thrift:"resultByteLimit,3348" db:"resultByteLimit" json:"resultByteLimit,omitempty"` - ResultDataFormat *TDBSqlResultFormat `thrift:"resultDataFormat,3349" db:"resultDataFormat" json:"resultDataFormat,omitempty"` - OriginatingClientIdentity *string `thrift:"originatingClientIdentity,3350" db:"originatingClientIdentity" json:"originatingClientIdentity,omitempty"` - PreferSingleFileResult_ *bool `thrift:"preferSingleFileResult,3351" db:"preferSingleFileResult" json:"preferSingleFileResult,omitempty"` - PreferDriverOnlyUpload *bool `thrift:"preferDriverOnlyUpload,3352" db:"preferDriverOnlyUpload" json:"preferDriverOnlyUpload,omitempty"` - EnforceEmbeddedSchemaCorrectness bool `thrift:"enforceEmbeddedSchemaCorrectness,3353" db:"enforceEmbeddedSchemaCorrectness" json:"enforceEmbeddedSchemaCorrectness"` - // unused fields # 3354 to 3359 - IdempotencyToken *string `thrift:"idempotencyToken,3360" db:"idempotencyToken" json:"idempotencyToken,omitempty"` - ThrowErrorOnByteLimitTruncation *bool `thrift:"throwErrorOnByteLimitTruncation,3361" db:"throwErrorOnByteLimitTruncation" json:"throwErrorOnByteLimitTruncation,omitempty"` } func NewTExecuteStatementReq() *TExecuteStatementReq { @@ -14805,205 +11835,64 @@ func (p *TExecuteStatementReq) GetQueryTimeout() int64 { } var TExecuteStatementReq_CanReadArrowResult__DEFAULT bool func (p *TExecuteStatementReq) GetCanReadArrowResult_() bool { - if !p.IsSetCanReadArrowResult_() { - return TExecuteStatementReq_CanReadArrowResult__DEFAULT - } -return *p.CanReadArrowResult_ -} -var TExecuteStatementReq_CanDownloadResult__DEFAULT bool -func (p *TExecuteStatementReq) GetCanDownloadResult_() bool { - if !p.IsSetCanDownloadResult_() { - return TExecuteStatementReq_CanDownloadResult__DEFAULT - } -return *p.CanDownloadResult_ -} -var TExecuteStatementReq_CanDecompressLZ4Result__DEFAULT bool -func (p *TExecuteStatementReq) GetCanDecompressLZ4Result_() bool { - if !p.IsSetCanDecompressLZ4Result_() { - return TExecuteStatementReq_CanDecompressLZ4Result__DEFAULT - } -return *p.CanDecompressLZ4Result_ -} -var TExecuteStatementReq_MaxBytesPerFile_DEFAULT int64 -func (p *TExecuteStatementReq) GetMaxBytesPerFile() int64 { - if !p.IsSetMaxBytesPerFile() { - return TExecuteStatementReq_MaxBytesPerFile_DEFAULT - } -return *p.MaxBytesPerFile -} -var TExecuteStatementReq_UseArrowNativeTypes_DEFAULT *TSparkArrowTypes -func (p *TExecuteStatementReq) GetUseArrowNativeTypes() *TSparkArrowTypes { - if !p.IsSetUseArrowNativeTypes() { - return TExecuteStatementReq_UseArrowNativeTypes_DEFAULT - } -return p.UseArrowNativeTypes -} -var TExecuteStatementReq_ResultRowLimit_DEFAULT int64 -func (p *TExecuteStatementReq) GetResultRowLimit() int64 { - if !p.IsSetResultRowLimit() { - return TExecuteStatementReq_ResultRowLimit_DEFAULT - } -return *p.ResultRowLimit -} -var TExecuteStatementReq_Parameters_DEFAULT []*TSparkParameter - -func (p *TExecuteStatementReq) GetParameters() []*TSparkParameter { - return p.Parameters -} -var TExecuteStatementReq_MaxBytesPerBatch_DEFAULT int64 -func (p *TExecuteStatementReq) GetMaxBytesPerBatch() int64 { - if !p.IsSetMaxBytesPerBatch() { - return TExecuteStatementReq_MaxBytesPerBatch_DEFAULT - } -return *p.MaxBytesPerBatch -} -var TExecuteStatementReq_StatementConf_DEFAULT *TStatementConf -func (p *TExecuteStatementReq) GetStatementConf() *TStatementConf { - if !p.IsSetStatementConf() { - return TExecuteStatementReq_StatementConf_DEFAULT - } -return p.StatementConf -} -var TExecuteStatementReq_OperationId_DEFAULT *THandleIdentifier -func (p *TExecuteStatementReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TExecuteStatementReq_OperationId_DEFAULT - } -return p.OperationId -} -var TExecuteStatementReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TExecuteStatementReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TExecuteStatementReq_SessionConf_DEFAULT - } -return p.SessionConf -} -var TExecuteStatementReq_RejectHighCostQueries_DEFAULT bool -func (p *TExecuteStatementReq) GetRejectHighCostQueries() bool { - if !p.IsSetRejectHighCostQueries() { - return TExecuteStatementReq_RejectHighCostQueries_DEFAULT - } -return *p.RejectHighCostQueries -} -var TExecuteStatementReq_EstimatedCost_DEFAULT float64 -func (p *TExecuteStatementReq) GetEstimatedCost() float64 { - if !p.IsSetEstimatedCost() { - return TExecuteStatementReq_EstimatedCost_DEFAULT - } -return *p.EstimatedCost -} -var TExecuteStatementReq_ExecutionVersion_DEFAULT int16 -func (p *TExecuteStatementReq) GetExecutionVersion() int16 { - if !p.IsSetExecutionVersion() { - return TExecuteStatementReq_ExecutionVersion_DEFAULT - } -return *p.ExecutionVersion -} -var TExecuteStatementReq_RequestValidation_DEFAULT []byte - -func (p *TExecuteStatementReq) GetRequestValidation() []byte { - return p.RequestValidation -} -var TExecuteStatementReq_ResultPersistenceMode_DEFAULT TResultPersistenceMode -func (p *TExecuteStatementReq) GetResultPersistenceMode() TResultPersistenceMode { - if !p.IsSetResultPersistenceMode() { - return TExecuteStatementReq_ResultPersistenceMode_DEFAULT - } -return *p.ResultPersistenceMode -} -var TExecuteStatementReq_TrimArrowBatchesToLimit_DEFAULT bool -func (p *TExecuteStatementReq) GetTrimArrowBatchesToLimit() bool { - if !p.IsSetTrimArrowBatchesToLimit() { - return TExecuteStatementReq_TrimArrowBatchesToLimit_DEFAULT - } -return *p.TrimArrowBatchesToLimit -} -var TExecuteStatementReq_FetchDisposition_DEFAULT TDBSqlFetchDisposition -func (p *TExecuteStatementReq) GetFetchDisposition() TDBSqlFetchDisposition { - if !p.IsSetFetchDisposition() { - return TExecuteStatementReq_FetchDisposition_DEFAULT - } -return *p.FetchDisposition -} -var TExecuteStatementReq_EnforceResultPersistenceMode_DEFAULT bool -func (p *TExecuteStatementReq) GetEnforceResultPersistenceMode() bool { - if !p.IsSetEnforceResultPersistenceMode() { - return TExecuteStatementReq_EnforceResultPersistenceMode_DEFAULT - } -return *p.EnforceResultPersistenceMode -} -var TExecuteStatementReq_StatementList_DEFAULT []*TDBSqlStatement - -func (p *TExecuteStatementReq) GetStatementList() []*TDBSqlStatement { - return p.StatementList -} -var TExecuteStatementReq_PersistResultManifest_DEFAULT bool -func (p *TExecuteStatementReq) GetPersistResultManifest() bool { - if !p.IsSetPersistResultManifest() { - return TExecuteStatementReq_PersistResultManifest_DEFAULT - } -return *p.PersistResultManifest -} -var TExecuteStatementReq_ResultRetentionSeconds_DEFAULT int64 -func (p *TExecuteStatementReq) GetResultRetentionSeconds() int64 { - if !p.IsSetResultRetentionSeconds() { - return TExecuteStatementReq_ResultRetentionSeconds_DEFAULT + if !p.IsSetCanReadArrowResult_() { + return TExecuteStatementReq_CanReadArrowResult__DEFAULT } -return *p.ResultRetentionSeconds +return *p.CanReadArrowResult_ } -var TExecuteStatementReq_ResultByteLimit_DEFAULT int64 -func (p *TExecuteStatementReq) GetResultByteLimit() int64 { - if !p.IsSetResultByteLimit() { - return TExecuteStatementReq_ResultByteLimit_DEFAULT +var TExecuteStatementReq_CanDownloadResult__DEFAULT bool +func (p *TExecuteStatementReq) GetCanDownloadResult_() bool { + if !p.IsSetCanDownloadResult_() { + return TExecuteStatementReq_CanDownloadResult__DEFAULT } -return *p.ResultByteLimit +return *p.CanDownloadResult_ } -var TExecuteStatementReq_ResultDataFormat_DEFAULT *TDBSqlResultFormat -func (p *TExecuteStatementReq) GetResultDataFormat() *TDBSqlResultFormat { - if !p.IsSetResultDataFormat() { - return TExecuteStatementReq_ResultDataFormat_DEFAULT +var TExecuteStatementReq_CanDecompressLZ4Result__DEFAULT bool +func (p *TExecuteStatementReq) GetCanDecompressLZ4Result_() bool { + if !p.IsSetCanDecompressLZ4Result_() { + return TExecuteStatementReq_CanDecompressLZ4Result__DEFAULT } -return p.ResultDataFormat +return *p.CanDecompressLZ4Result_ } -var TExecuteStatementReq_OriginatingClientIdentity_DEFAULT string -func (p *TExecuteStatementReq) GetOriginatingClientIdentity() string { - if !p.IsSetOriginatingClientIdentity() { - return TExecuteStatementReq_OriginatingClientIdentity_DEFAULT +var TExecuteStatementReq_MaxBytesPerFile_DEFAULT int64 +func (p *TExecuteStatementReq) GetMaxBytesPerFile() int64 { + if !p.IsSetMaxBytesPerFile() { + return TExecuteStatementReq_MaxBytesPerFile_DEFAULT } -return *p.OriginatingClientIdentity +return *p.MaxBytesPerFile } -var TExecuteStatementReq_PreferSingleFileResult__DEFAULT bool -func (p *TExecuteStatementReq) GetPreferSingleFileResult_() bool { - if !p.IsSetPreferSingleFileResult_() { - return TExecuteStatementReq_PreferSingleFileResult__DEFAULT +var TExecuteStatementReq_UseArrowNativeTypes_DEFAULT *TSparkArrowTypes +func (p *TExecuteStatementReq) GetUseArrowNativeTypes() *TSparkArrowTypes { + if !p.IsSetUseArrowNativeTypes() { + return TExecuteStatementReq_UseArrowNativeTypes_DEFAULT } -return *p.PreferSingleFileResult_ +return p.UseArrowNativeTypes } -var TExecuteStatementReq_PreferDriverOnlyUpload_DEFAULT bool -func (p *TExecuteStatementReq) GetPreferDriverOnlyUpload() bool { - if !p.IsSetPreferDriverOnlyUpload() { - return TExecuteStatementReq_PreferDriverOnlyUpload_DEFAULT +var TExecuteStatementReq_ResultRowLimit_DEFAULT int64 +func (p *TExecuteStatementReq) GetResultRowLimit() int64 { + if !p.IsSetResultRowLimit() { + return TExecuteStatementReq_ResultRowLimit_DEFAULT } -return *p.PreferDriverOnlyUpload +return *p.ResultRowLimit } -var TExecuteStatementReq_EnforceEmbeddedSchemaCorrectness_DEFAULT bool = false +var TExecuteStatementReq_Parameters_DEFAULT []*TSparkParameter -func (p *TExecuteStatementReq) GetEnforceEmbeddedSchemaCorrectness() bool { - return p.EnforceEmbeddedSchemaCorrectness +func (p *TExecuteStatementReq) GetParameters() []*TSparkParameter { + return p.Parameters } -var TExecuteStatementReq_IdempotencyToken_DEFAULT string -func (p *TExecuteStatementReq) GetIdempotencyToken() string { - if !p.IsSetIdempotencyToken() { - return TExecuteStatementReq_IdempotencyToken_DEFAULT +var TExecuteStatementReq_MaxBytesPerBatch_DEFAULT int64 +func (p *TExecuteStatementReq) GetMaxBytesPerBatch() int64 { + if !p.IsSetMaxBytesPerBatch() { + return TExecuteStatementReq_MaxBytesPerBatch_DEFAULT } -return *p.IdempotencyToken +return *p.MaxBytesPerBatch } -var TExecuteStatementReq_ThrowErrorOnByteLimitTruncation_DEFAULT bool -func (p *TExecuteStatementReq) GetThrowErrorOnByteLimitTruncation() bool { - if !p.IsSetThrowErrorOnByteLimitTruncation() { - return TExecuteStatementReq_ThrowErrorOnByteLimitTruncation_DEFAULT +var TExecuteStatementReq_StatementConf_DEFAULT *TStatementConf +func (p *TExecuteStatementReq) GetStatementConf() *TStatementConf { + if !p.IsSetStatementConf() { + return TExecuteStatementReq_StatementConf_DEFAULT } -return *p.ThrowErrorOnByteLimitTruncation +return p.StatementConf } func (p *TExecuteStatementReq) IsSetSessionHandle() bool { return p.SessionHandle != nil @@ -15047,284 +11936,60 @@ func (p *TExecuteStatementReq) IsSetUseArrowNativeTypes() bool { func (p *TExecuteStatementReq) IsSetResultRowLimit() bool { return p.ResultRowLimit != nil -} - -func (p *TExecuteStatementReq) IsSetParameters() bool { - return p.Parameters != nil -} - -func (p *TExecuteStatementReq) IsSetMaxBytesPerBatch() bool { - return p.MaxBytesPerBatch != nil -} - -func (p *TExecuteStatementReq) IsSetStatementConf() bool { - return p.StatementConf != nil -} - -func (p *TExecuteStatementReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TExecuteStatementReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - -func (p *TExecuteStatementReq) IsSetRejectHighCostQueries() bool { - return p.RejectHighCostQueries != nil -} - -func (p *TExecuteStatementReq) IsSetEstimatedCost() bool { - return p.EstimatedCost != nil -} - -func (p *TExecuteStatementReq) IsSetExecutionVersion() bool { - return p.ExecutionVersion != nil -} - -func (p *TExecuteStatementReq) IsSetRequestValidation() bool { - return p.RequestValidation != nil -} - -func (p *TExecuteStatementReq) IsSetResultPersistenceMode() bool { - return p.ResultPersistenceMode != nil -} - -func (p *TExecuteStatementReq) IsSetTrimArrowBatchesToLimit() bool { - return p.TrimArrowBatchesToLimit != nil -} - -func (p *TExecuteStatementReq) IsSetFetchDisposition() bool { - return p.FetchDisposition != nil -} - -func (p *TExecuteStatementReq) IsSetEnforceResultPersistenceMode() bool { - return p.EnforceResultPersistenceMode != nil -} - -func (p *TExecuteStatementReq) IsSetStatementList() bool { - return p.StatementList != nil -} - -func (p *TExecuteStatementReq) IsSetPersistResultManifest() bool { - return p.PersistResultManifest != nil -} - -func (p *TExecuteStatementReq) IsSetResultRetentionSeconds() bool { - return p.ResultRetentionSeconds != nil -} - -func (p *TExecuteStatementReq) IsSetResultByteLimit() bool { - return p.ResultByteLimit != nil -} - -func (p *TExecuteStatementReq) IsSetResultDataFormat() bool { - return p.ResultDataFormat != nil -} - -func (p *TExecuteStatementReq) IsSetOriginatingClientIdentity() bool { - return p.OriginatingClientIdentity != nil -} - -func (p *TExecuteStatementReq) IsSetPreferSingleFileResult_() bool { - return p.PreferSingleFileResult_ != nil -} - -func (p *TExecuteStatementReq) IsSetPreferDriverOnlyUpload() bool { - return p.PreferDriverOnlyUpload != nil -} - -func (p *TExecuteStatementReq) IsSetEnforceEmbeddedSchemaCorrectness() bool { - return p.EnforceEmbeddedSchemaCorrectness != TExecuteStatementReq_EnforceEmbeddedSchemaCorrectness_DEFAULT -} - -func (p *TExecuteStatementReq) IsSetIdempotencyToken() bool { - return p.IdempotencyToken != nil -} - -func (p *TExecuteStatementReq) IsSetThrowErrorOnByteLimitTruncation() bool { - return p.ThrowErrorOnByteLimitTruncation != nil -} - -func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) error { - if _, err := iprot.ReadStructBegin(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) - } - - var issetSessionHandle bool = false; - var issetStatement bool = false; - - for { - _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) - if err != nil { - return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) - } - if fieldTypeId == thrift.STOP { break; } - switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetSessionHandle = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.STRING { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - issetStatement = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3: - if fieldTypeId == thrift.MAP { - if err := p.ReadField3(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 4: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField4(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 5: - if fieldTypeId == thrift.I64 { - if err := p.ReadField5(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1282: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1282(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1283: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1283(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1284: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1284(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1285: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1285(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1286: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1286(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1287: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1287(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1288: - if fieldTypeId == thrift.LIST { - if err := p.ReadField1288(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1289: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1289(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1296: +} + +func (p *TExecuteStatementReq) IsSetParameters() bool { + return p.Parameters != nil +} + +func (p *TExecuteStatementReq) IsSetMaxBytesPerBatch() bool { + return p.MaxBytesPerBatch != nil +} + +func (p *TExecuteStatementReq) IsSetStatementConf() bool { + return p.StatementConf != nil +} + +func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) error { + if _, err := iprot.ReadStructBegin(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) + } + + var issetSessionHandle bool = false; + var issetStatement bool = false; + + for { + _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) + if err != nil { + return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) + } + if fieldTypeId == thrift.STOP { break; } + switch fieldId { + case 1: if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1296(ctx, iprot); err != nil { + if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetSessionHandle = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { + case 2: + if fieldTypeId == thrift.STRING { + if err := p.ReadField2(ctx, iprot); err != nil { return err } + issetStatement = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { + case 3: + if fieldTypeId == thrift.MAP { + if err := p.ReadField3(ctx, iprot); err != nil { return err } } else { @@ -15332,29 +11997,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3331: + case 4: if fieldTypeId == thrift.BOOL { - if err := p.ReadField3331(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3332: - if fieldTypeId == thrift.DOUBLE { - if err := p.ReadField3332(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3333: - if fieldTypeId == thrift.I16 { - if err := p.ReadField3333(ctx, iprot); err != nil { + if err := p.ReadField4(ctx, iprot); err != nil { return err } } else { @@ -15362,9 +12007,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3334: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3334(ctx, iprot); err != nil { + case 1281: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -15372,9 +12017,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3335: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3335(ctx, iprot); err != nil { + case 5: + if fieldTypeId == thrift.I64 { + if err := p.ReadField5(ctx, iprot); err != nil { return err } } else { @@ -15382,19 +12027,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3336: + case 1282: if fieldTypeId == thrift.BOOL { - if err := p.ReadField3336(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3337: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3337(ctx, iprot); err != nil { + if err := p.ReadField1282(ctx, iprot); err != nil { return err } } else { @@ -15402,19 +12037,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3344: + case 1283: if fieldTypeId == thrift.BOOL { - if err := p.ReadField3344(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3345: - if fieldTypeId == thrift.LIST { - if err := p.ReadField3345(ctx, iprot); err != nil { + if err := p.ReadField1283(ctx, iprot); err != nil { return err } } else { @@ -15422,19 +12047,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3346: + case 1284: if fieldTypeId == thrift.BOOL { - if err := p.ReadField3346(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3347: - if fieldTypeId == thrift.I64 { - if err := p.ReadField3347(ctx, iprot); err != nil { + if err := p.ReadField1284(ctx, iprot); err != nil { return err } } else { @@ -15442,9 +12057,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3348: + case 1285: if fieldTypeId == thrift.I64 { - if err := p.ReadField3348(ctx, iprot); err != nil { + if err := p.ReadField1285(ctx, iprot); err != nil { return err } } else { @@ -15452,29 +12067,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3349: + case 1286: if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3349(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3350: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3350(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3351: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3351(ctx, iprot); err != nil { + if err := p.ReadField1286(ctx, iprot); err != nil { return err } } else { @@ -15482,9 +12077,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3352: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3352(ctx, iprot); err != nil { + case 1287: + if fieldTypeId == thrift.I64 { + if err := p.ReadField1287(ctx, iprot); err != nil { return err } } else { @@ -15492,9 +12087,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3353: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3353(ctx, iprot); err != nil { + case 1288: + if fieldTypeId == thrift.LIST { + if err := p.ReadField1288(ctx, iprot); err != nil { return err } } else { @@ -15502,9 +12097,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3360: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3360(ctx, iprot); err != nil { + case 1289: + if fieldTypeId == thrift.I64 { + if err := p.ReadField1289(ctx, iprot); err != nil { return err } } else { @@ -15512,9 +12107,9 @@ func (p *TExecuteStatementReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3361: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3361(ctx, iprot); err != nil { + case 1296: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1296(ctx, iprot); err != nil { return err } } else { @@ -15568,245 +12163,118 @@ func (p *TExecuteStatementReq) ReadField3(ctx context.Context, iprot thrift.TPr tMap := make(map[string]string, size) p.ConfOverlay = tMap for i := 0; i < size; i ++ { -var _key75 string - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 0: ", err) -} else { - _key75 = v -} -var _val76 string +var _key57 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _val76 = v -} - p.ConfOverlay[_key75] = _val76 - } - if err := iprot.ReadMapEnd(ctx); err != nil { - return thrift.PrependError("error reading map end: ", err) - } - return nil -} - -func (p *TExecuteStatementReq) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 4: ", err) -} else { - p.RunAsync = v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { - p.GetDirectResults = &TSparkGetDirectResults{} - if err := p.GetDirectResults.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.GetDirectResults), err) - } - return nil -} - -func (p *TExecuteStatementReq) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 5: ", err) -} else { - p.QueryTimeout = v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 1282: ", err) -} else { - p.CanReadArrowResult_ = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1283(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 1283: ", err) -} else { - p.CanDownloadResult_ = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 1284: ", err) -} else { - p.CanDecompressLZ4Result_ = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 1285: ", err) -} else { - p.MaxBytesPerFile = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1286(ctx context.Context, iprot thrift.TProtocol) error { - p.UseArrowNativeTypes = &TSparkArrowTypes{} - if err := p.UseArrowNativeTypes.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.UseArrowNativeTypes), err) - } - return nil -} - -func (p *TExecuteStatementReq) ReadField1287(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 1287: ", err) -} else { - p.ResultRowLimit = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1288(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TSparkParameter, 0, size) - p.Parameters = tSlice - for i := 0; i < size; i ++ { - _elem77 := &TSparkParameter{} - if err := _elem77.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem77), err) - } - p.Parameters = append(p.Parameters, _elem77) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil -} - -func (p *TExecuteStatementReq) ReadField1289(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 1289: ", err) -} else { - p.MaxBytesPerBatch = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField1296(ctx context.Context, iprot thrift.TProtocol) error { - p.StatementConf = &TStatementConf{} - if err := p.StatementConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.StatementConf), err) - } - return nil + _key57 = v } - -func (p *TExecuteStatementReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil +var _val58 string + if v, err := iprot.ReadString(ctx); err != nil { + return thrift.PrependError("error reading field 0: ", err) +} else { + _val58 = v } - -func (p *TExecuteStatementReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) + p.ConfOverlay[_key57] = _val58 + } + if err := iprot.ReadMapEnd(ctx); err != nil { + return thrift.PrependError("error reading map end: ", err) } return nil } -func (p *TExecuteStatementReq) ReadField3331(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TExecuteStatementReq) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3331: ", err) + return thrift.PrependError("error reading field 4: ", err) } else { - p.RejectHighCostQueries = &v + p.RunAsync = v } return nil } -func (p *TExecuteStatementReq) ReadField3332(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { - return thrift.PrependError("error reading field 3332: ", err) -} else { - p.EstimatedCost = &v -} +func (p *TExecuteStatementReq) ReadField1281(ctx context.Context, iprot thrift.TProtocol) error { + p.GetDirectResults = &TSparkGetDirectResults{} + if err := p.GetDirectResults.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.GetDirectResults), err) + } return nil } -func (p *TExecuteStatementReq) ReadField3333(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI16(ctx); err != nil { - return thrift.PrependError("error reading field 3333: ", err) +func (p *TExecuteStatementReq) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { + return thrift.PrependError("error reading field 5: ", err) } else { - p.ExecutionVersion = &v + p.QueryTimeout = v } return nil } -func (p *TExecuteStatementReq) ReadField3334(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 3334: ", err) +func (p *TExecuteStatementReq) ReadField1282(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { + return thrift.PrependError("error reading field 1282: ", err) } else { - p.RequestValidation = v + p.CanReadArrowResult_ = &v } return nil } -func (p *TExecuteStatementReq) ReadField3335(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3335: ", err) +func (p *TExecuteStatementReq) ReadField1283(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { + return thrift.PrependError("error reading field 1283: ", err) } else { - temp := TResultPersistenceMode(v) - p.ResultPersistenceMode = &temp + p.CanDownloadResult_ = &v } return nil } -func (p *TExecuteStatementReq) ReadField3336(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TExecuteStatementReq) ReadField1284(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3336: ", err) + return thrift.PrependError("error reading field 1284: ", err) } else { - p.TrimArrowBatchesToLimit = &v + p.CanDecompressLZ4Result_ = &v } return nil } -func (p *TExecuteStatementReq) ReadField3337(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3337: ", err) +func (p *TExecuteStatementReq) ReadField1285(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { + return thrift.PrependError("error reading field 1285: ", err) } else { - temp := TDBSqlFetchDisposition(v) - p.FetchDisposition = &temp + p.MaxBytesPerFile = &v } return nil } -func (p *TExecuteStatementReq) ReadField3344(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3344: ", err) +func (p *TExecuteStatementReq) ReadField1286(ctx context.Context, iprot thrift.TProtocol) error { + p.UseArrowNativeTypes = &TSparkArrowTypes{} + if err := p.UseArrowNativeTypes.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.UseArrowNativeTypes), err) + } + return nil +} + +func (p *TExecuteStatementReq) ReadField1287(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadI64(ctx); err != nil { + return thrift.PrependError("error reading field 1287: ", err) } else { - p.EnforceResultPersistenceMode = &v + p.ResultRowLimit = &v } return nil } -func (p *TExecuteStatementReq) ReadField3345(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TExecuteStatementReq) ReadField1288(ctx context.Context, iprot thrift.TProtocol) error { _, size, err := iprot.ReadListBegin(ctx) if err != nil { return thrift.PrependError("error reading list begin: ", err) } - tSlice := make([]*TDBSqlStatement, 0, size) - p.StatementList = tSlice + tSlice := make([]*TSparkParameter, 0, size) + p.Parameters = tSlice for i := 0; i < size; i ++ { - _elem78 := &TDBSqlStatement{} - if err := _elem78.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem78), err) + _elem59 := &TSparkParameter{} + if err := _elem59.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem59), err) } - p.StatementList = append(p.StatementList, _elem78) + p.Parameters = append(p.Parameters, _elem59) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -15814,95 +12282,23 @@ func (p *TExecuteStatementReq) ReadField3345(ctx context.Context, iprot thrift. return nil } -func (p *TExecuteStatementReq) ReadField3346(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3346: ", err) -} else { - p.PersistResultManifest = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3347(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3347: ", err) -} else { - p.ResultRetentionSeconds = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3348(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TExecuteStatementReq) ReadField1289(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3348: ", err) + return thrift.PrependError("error reading field 1289: ", err) } else { - p.ResultByteLimit = &v + p.MaxBytesPerBatch = &v } return nil } -func (p *TExecuteStatementReq) ReadField3349(ctx context.Context, iprot thrift.TProtocol) error { - p.ResultDataFormat = &TDBSqlResultFormat{} - if err := p.ResultDataFormat.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.ResultDataFormat), err) +func (p *TExecuteStatementReq) ReadField1296(ctx context.Context, iprot thrift.TProtocol) error { + p.StatementConf = &TStatementConf{} + if err := p.StatementConf.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.StatementConf), err) } return nil } -func (p *TExecuteStatementReq) ReadField3350(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3350: ", err) -} else { - p.OriginatingClientIdentity = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3351(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3351: ", err) -} else { - p.PreferSingleFileResult_ = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3352(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3352: ", err) -} else { - p.PreferDriverOnlyUpload = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3353(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3353: ", err) -} else { - p.EnforceEmbeddedSchemaCorrectness = v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3360(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3360: ", err) -} else { - p.IdempotencyToken = &v -} - return nil -} - -func (p *TExecuteStatementReq) ReadField3361(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3361: ", err) -} else { - p.ThrowErrorOnByteLimitTruncation = &v -} - return nil -} - func (p *TExecuteStatementReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TExecuteStatementReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -15922,27 +12318,6 @@ func (p *TExecuteStatementReq) Write(ctx context.Context, oprot thrift.TProtocol if err := p.writeField1288(ctx, oprot); err != nil { return err } if err := p.writeField1289(ctx, oprot); err != nil { return err } if err := p.writeField1296(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } - if err := p.writeField3331(ctx, oprot); err != nil { return err } - if err := p.writeField3332(ctx, oprot); err != nil { return err } - if err := p.writeField3333(ctx, oprot); err != nil { return err } - if err := p.writeField3334(ctx, oprot); err != nil { return err } - if err := p.writeField3335(ctx, oprot); err != nil { return err } - if err := p.writeField3336(ctx, oprot); err != nil { return err } - if err := p.writeField3337(ctx, oprot); err != nil { return err } - if err := p.writeField3344(ctx, oprot); err != nil { return err } - if err := p.writeField3345(ctx, oprot); err != nil { return err } - if err := p.writeField3346(ctx, oprot); err != nil { return err } - if err := p.writeField3347(ctx, oprot); err != nil { return err } - if err := p.writeField3348(ctx, oprot); err != nil { return err } - if err := p.writeField3349(ctx, oprot); err != nil { return err } - if err := p.writeField3350(ctx, oprot); err != nil { return err } - if err := p.writeField3351(ctx, oprot); err != nil { return err } - if err := p.writeField3352(ctx, oprot); err != nil { return err } - if err := p.writeField3353(ctx, oprot); err != nil { return err } - if err := p.writeField3360(ctx, oprot); err != nil { return err } - if err := p.writeField3361(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -16114,302 +12489,38 @@ func (p *TExecuteStatementReq) writeField1288(ctx context.Context, oprot thrift. for _, v := range p.Parameters { if err := v.Write(ctx, oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1288:parameters: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField1289(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetMaxBytesPerBatch() { - if err := oprot.WriteFieldBegin(ctx, "maxBytesPerBatch", thrift.I64, 1289); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1289:maxBytesPerBatch: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.MaxBytesPerBatch)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.maxBytesPerBatch (1289) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1289:maxBytesPerBatch: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField1296(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStatementConf() { - if err := oprot.WriteFieldBegin(ctx, "statementConf", thrift.STRUCT, 1296); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1296:statementConf: ", p), err) } - if err := p.StatementConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.StatementConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1296:statementConf: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3331(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRejectHighCostQueries() { - if err := oprot.WriteFieldBegin(ctx, "rejectHighCostQueries", thrift.BOOL, 3331); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3331:rejectHighCostQueries: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.RejectHighCostQueries)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.rejectHighCostQueries (3331) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3331:rejectHighCostQueries: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3332(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetEstimatedCost() { - if err := oprot.WriteFieldBegin(ctx, "estimatedCost", thrift.DOUBLE, 3332); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3332:estimatedCost: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.EstimatedCost)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.estimatedCost (3332) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3332:estimatedCost: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3333(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExecutionVersion() { - if err := oprot.WriteFieldBegin(ctx, "executionVersion", thrift.I16, 3333); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3333:executionVersion: ", p), err) } - if err := oprot.WriteI16(ctx, int16(*p.ExecutionVersion)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.executionVersion (3333) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3333:executionVersion: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3334(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRequestValidation() { - if err := oprot.WriteFieldBegin(ctx, "requestValidation", thrift.STRING, 3334); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3334:requestValidation: ", p), err) } - if err := oprot.WriteBinary(ctx, p.RequestValidation); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.requestValidation (3334) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3334:requestValidation: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3335(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultPersistenceMode() { - if err := oprot.WriteFieldBegin(ctx, "resultPersistenceMode", thrift.I32, 3335); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3335:resultPersistenceMode: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ResultPersistenceMode)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.resultPersistenceMode (3335) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3335:resultPersistenceMode: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3336(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetTrimArrowBatchesToLimit() { - if err := oprot.WriteFieldBegin(ctx, "trimArrowBatchesToLimit", thrift.BOOL, 3336); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3336:trimArrowBatchesToLimit: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.TrimArrowBatchesToLimit)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.trimArrowBatchesToLimit (3336) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3336:trimArrowBatchesToLimit: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3337(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetFetchDisposition() { - if err := oprot.WriteFieldBegin(ctx, "fetchDisposition", thrift.I32, 3337); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3337:fetchDisposition: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.FetchDisposition)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.fetchDisposition (3337) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3337:fetchDisposition: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3344(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetEnforceResultPersistenceMode() { - if err := oprot.WriteFieldBegin(ctx, "enforceResultPersistenceMode", thrift.BOOL, 3344); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3344:enforceResultPersistenceMode: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.EnforceResultPersistenceMode)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.enforceResultPersistenceMode (3344) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3344:enforceResultPersistenceMode: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3345(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStatementList() { - if err := oprot.WriteFieldBegin(ctx, "statementList", thrift.LIST, 3345); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3345:statementList: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.StatementList)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.StatementList { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3345:statementList: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3346(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetPersistResultManifest() { - if err := oprot.WriteFieldBegin(ctx, "persistResultManifest", thrift.BOOL, 3346); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3346:persistResultManifest: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.PersistResultManifest)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.persistResultManifest (3346) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3346:persistResultManifest: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3347(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultRetentionSeconds() { - if err := oprot.WriteFieldBegin(ctx, "resultRetentionSeconds", thrift.I64, 3347); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3347:resultRetentionSeconds: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.ResultRetentionSeconds)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.resultRetentionSeconds (3347) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3347:resultRetentionSeconds: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3348(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultByteLimit() { - if err := oprot.WriteFieldBegin(ctx, "resultByteLimit", thrift.I64, 3348); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3348:resultByteLimit: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.ResultByteLimit)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.resultByteLimit (3348) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3348:resultByteLimit: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3349(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultDataFormat() { - if err := oprot.WriteFieldBegin(ctx, "resultDataFormat", thrift.STRUCT, 3349); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3349:resultDataFormat: ", p), err) } - if err := p.ResultDataFormat.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.ResultDataFormat), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3349:resultDataFormat: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3350(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOriginatingClientIdentity() { - if err := oprot.WriteFieldBegin(ctx, "originatingClientIdentity", thrift.STRING, 3350); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3350:originatingClientIdentity: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.OriginatingClientIdentity)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.originatingClientIdentity (3350) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3350:originatingClientIdentity: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3351(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetPreferSingleFileResult_() { - if err := oprot.WriteFieldBegin(ctx, "preferSingleFileResult", thrift.BOOL, 3351); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3351:preferSingleFileResult: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.PreferSingleFileResult_)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.preferSingleFileResult (3351) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3351:preferSingleFileResult: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3352(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetPreferDriverOnlyUpload() { - if err := oprot.WriteFieldBegin(ctx, "preferDriverOnlyUpload", thrift.BOOL, 3352); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3352:preferDriverOnlyUpload: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.PreferDriverOnlyUpload)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.preferDriverOnlyUpload (3352) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3352:preferDriverOnlyUpload: ", p), err) } - } - return err -} - -func (p *TExecuteStatementReq) writeField3353(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetEnforceEmbeddedSchemaCorrectness() { - if err := oprot.WriteFieldBegin(ctx, "enforceEmbeddedSchemaCorrectness", thrift.BOOL, 3353); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3353:enforceEmbeddedSchemaCorrectness: ", p), err) } - if err := oprot.WriteBool(ctx, bool(p.EnforceEmbeddedSchemaCorrectness)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.enforceEmbeddedSchemaCorrectness (3353) field write error: ", p), err) } + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3353:enforceEmbeddedSchemaCorrectness: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1288:parameters: ", p), err) } } return err } -func (p *TExecuteStatementReq) writeField3360(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIdempotencyToken() { - if err := oprot.WriteFieldBegin(ctx, "idempotencyToken", thrift.STRING, 3360); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3360:idempotencyToken: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.IdempotencyToken)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.idempotencyToken (3360) field write error: ", p), err) } +func (p *TExecuteStatementReq) writeField1289(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetMaxBytesPerBatch() { + if err := oprot.WriteFieldBegin(ctx, "maxBytesPerBatch", thrift.I64, 1289); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1289:maxBytesPerBatch: ", p), err) } + if err := oprot.WriteI64(ctx, int64(*p.MaxBytesPerBatch)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.maxBytesPerBatch (1289) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3360:idempotencyToken: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1289:maxBytesPerBatch: ", p), err) } } return err } -func (p *TExecuteStatementReq) writeField3361(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetThrowErrorOnByteLimitTruncation() { - if err := oprot.WriteFieldBegin(ctx, "throwErrorOnByteLimitTruncation", thrift.BOOL, 3361); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3361:throwErrorOnByteLimitTruncation: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.ThrowErrorOnByteLimitTruncation)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.throwErrorOnByteLimitTruncation (3361) field write error: ", p), err) } +func (p *TExecuteStatementReq) writeField1296(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetStatementConf() { + if err := oprot.WriteFieldBegin(ctx, "statementConf", thrift.STRUCT, 1296); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1296:statementConf: ", p), err) } + if err := p.StatementConf.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.StatementConf), err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3361:throwErrorOnByteLimitTruncation: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1296:statementConf: ", p), err) } } return err } @@ -16424,8 +12535,8 @@ func (p *TExecuteStatementReq) Equals(other *TExecuteStatementReq) bool { if p.Statement != other.Statement { return false } if len(p.ConfOverlay) != len(other.ConfOverlay) { return false } for k, _tgt := range p.ConfOverlay { - _src79 := other.ConfOverlay[k] - if _tgt != _src79 { return false } + _src60 := other.ConfOverlay[k] + if _tgt != _src60 { return false } } if p.RunAsync != other.RunAsync { return false } if p.QueryTimeout != other.QueryTimeout { return false } @@ -16463,8 +12574,8 @@ func (p *TExecuteStatementReq) Equals(other *TExecuteStatementReq) bool { } if len(p.Parameters) != len(other.Parameters) { return false } for i, _tgt := range p.Parameters { - _src80 := other.Parameters[i] - if !_tgt.Equals(_src80) { return false } + _src61 := other.Parameters[i] + if !_tgt.Equals(_src61) { return false } } if p.MaxBytesPerBatch != other.MaxBytesPerBatch { if p.MaxBytesPerBatch == nil || other.MaxBytesPerBatch == nil { @@ -16473,106 +12584,6 @@ func (p *TExecuteStatementReq) Equals(other *TExecuteStatementReq) bool { if (*p.MaxBytesPerBatch) != (*other.MaxBytesPerBatch) { return false } } if !p.StatementConf.Equals(other.StatementConf) { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } - if p.RejectHighCostQueries != other.RejectHighCostQueries { - if p.RejectHighCostQueries == nil || other.RejectHighCostQueries == nil { - return false - } - if (*p.RejectHighCostQueries) != (*other.RejectHighCostQueries) { return false } - } - if p.EstimatedCost != other.EstimatedCost { - if p.EstimatedCost == nil || other.EstimatedCost == nil { - return false - } - if (*p.EstimatedCost) != (*other.EstimatedCost) { return false } - } - if p.ExecutionVersion != other.ExecutionVersion { - if p.ExecutionVersion == nil || other.ExecutionVersion == nil { - return false - } - if (*p.ExecutionVersion) != (*other.ExecutionVersion) { return false } - } - if bytes.Compare(p.RequestValidation, other.RequestValidation) != 0 { return false } - if p.ResultPersistenceMode != other.ResultPersistenceMode { - if p.ResultPersistenceMode == nil || other.ResultPersistenceMode == nil { - return false - } - if (*p.ResultPersistenceMode) != (*other.ResultPersistenceMode) { return false } - } - if p.TrimArrowBatchesToLimit != other.TrimArrowBatchesToLimit { - if p.TrimArrowBatchesToLimit == nil || other.TrimArrowBatchesToLimit == nil { - return false - } - if (*p.TrimArrowBatchesToLimit) != (*other.TrimArrowBatchesToLimit) { return false } - } - if p.FetchDisposition != other.FetchDisposition { - if p.FetchDisposition == nil || other.FetchDisposition == nil { - return false - } - if (*p.FetchDisposition) != (*other.FetchDisposition) { return false } - } - if p.EnforceResultPersistenceMode != other.EnforceResultPersistenceMode { - if p.EnforceResultPersistenceMode == nil || other.EnforceResultPersistenceMode == nil { - return false - } - if (*p.EnforceResultPersistenceMode) != (*other.EnforceResultPersistenceMode) { return false } - } - if len(p.StatementList) != len(other.StatementList) { return false } - for i, _tgt := range p.StatementList { - _src81 := other.StatementList[i] - if !_tgt.Equals(_src81) { return false } - } - if p.PersistResultManifest != other.PersistResultManifest { - if p.PersistResultManifest == nil || other.PersistResultManifest == nil { - return false - } - if (*p.PersistResultManifest) != (*other.PersistResultManifest) { return false } - } - if p.ResultRetentionSeconds != other.ResultRetentionSeconds { - if p.ResultRetentionSeconds == nil || other.ResultRetentionSeconds == nil { - return false - } - if (*p.ResultRetentionSeconds) != (*other.ResultRetentionSeconds) { return false } - } - if p.ResultByteLimit != other.ResultByteLimit { - if p.ResultByteLimit == nil || other.ResultByteLimit == nil { - return false - } - if (*p.ResultByteLimit) != (*other.ResultByteLimit) { return false } - } - if !p.ResultDataFormat.Equals(other.ResultDataFormat) { return false } - if p.OriginatingClientIdentity != other.OriginatingClientIdentity { - if p.OriginatingClientIdentity == nil || other.OriginatingClientIdentity == nil { - return false - } - if (*p.OriginatingClientIdentity) != (*other.OriginatingClientIdentity) { return false } - } - if p.PreferSingleFileResult_ != other.PreferSingleFileResult_ { - if p.PreferSingleFileResult_ == nil || other.PreferSingleFileResult_ == nil { - return false - } - if (*p.PreferSingleFileResult_) != (*other.PreferSingleFileResult_) { return false } - } - if p.PreferDriverOnlyUpload != other.PreferDriverOnlyUpload { - if p.PreferDriverOnlyUpload == nil || other.PreferDriverOnlyUpload == nil { - return false - } - if (*p.PreferDriverOnlyUpload) != (*other.PreferDriverOnlyUpload) { return false } - } - if p.EnforceEmbeddedSchemaCorrectness != other.EnforceEmbeddedSchemaCorrectness { return false } - if p.IdempotencyToken != other.IdempotencyToken { - if p.IdempotencyToken == nil || other.IdempotencyToken == nil { - return false - } - if (*p.IdempotencyToken) != (*other.IdempotencyToken) { return false } - } - if p.ThrowErrorOnByteLimitTruncation != other.ThrowErrorOnByteLimitTruncation { - if p.ThrowErrorOnByteLimitTruncation == nil || other.ThrowErrorOnByteLimitTruncation == nil { - return false - } - if (*p.ThrowErrorOnByteLimitTruncation) != (*other.ThrowErrorOnByteLimitTruncation) { return false } - } return true } @@ -16587,27 +12598,68 @@ func (p *TExecuteStatementReq) Validate() error { return nil } // Attributes: -// - Statement -type TDBSqlStatement struct { - Statement *string `thrift:"statement,1" db:"statement" json:"statement,omitempty"` +// - StringValue +// - DoubleValue +// - BooleanValue +type TSparkParameterValue struct { + StringValue *string `thrift:"stringValue,1" db:"stringValue" json:"stringValue,omitempty"` + DoubleValue *float64 `thrift:"doubleValue,2" db:"doubleValue" json:"doubleValue,omitempty"` + BooleanValue *bool `thrift:"booleanValue,3" db:"booleanValue" json:"booleanValue,omitempty"` } -func NewTDBSqlStatement() *TDBSqlStatement { - return &TDBSqlStatement{} +func NewTSparkParameterValue() *TSparkParameterValue { + return &TSparkParameterValue{} } -var TDBSqlStatement_Statement_DEFAULT string -func (p *TDBSqlStatement) GetStatement() string { - if !p.IsSetStatement() { - return TDBSqlStatement_Statement_DEFAULT +var TSparkParameterValue_StringValue_DEFAULT string +func (p *TSparkParameterValue) GetStringValue() string { + if !p.IsSetStringValue() { + return TSparkParameterValue_StringValue_DEFAULT + } +return *p.StringValue +} +var TSparkParameterValue_DoubleValue_DEFAULT float64 +func (p *TSparkParameterValue) GetDoubleValue() float64 { + if !p.IsSetDoubleValue() { + return TSparkParameterValue_DoubleValue_DEFAULT + } +return *p.DoubleValue +} +var TSparkParameterValue_BooleanValue_DEFAULT bool +func (p *TSparkParameterValue) GetBooleanValue() bool { + if !p.IsSetBooleanValue() { + return TSparkParameterValue_BooleanValue_DEFAULT } -return *p.Statement +return *p.BooleanValue +} +func (p *TSparkParameterValue) CountSetFieldsTSparkParameterValue() int { + count := 0 + if (p.IsSetStringValue()) { + count++ + } + if (p.IsSetDoubleValue()) { + count++ + } + if (p.IsSetBooleanValue()) { + count++ + } + return count + +} + +func (p *TSparkParameterValue) IsSetStringValue() bool { + return p.StringValue != nil +} + +func (p *TSparkParameterValue) IsSetDoubleValue() bool { + return p.DoubleValue != nil } -func (p *TDBSqlStatement) IsSetStatement() bool { - return p.Statement != nil + +func (p *TSparkParameterValue) IsSetBooleanValue() bool { + return p.BooleanValue != nil } -func (p *TDBSqlStatement) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TSparkParameterValue) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } @@ -16630,6 +12682,26 @@ func (p *TDBSqlStatement) Read(ctx context.Context, iprot thrift.TProtocol) erro return err } } + case 2: + if fieldTypeId == thrift.DOUBLE { + if err := p.ReadField2(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } + case 3: + if fieldTypeId == thrift.BOOL { + if err := p.ReadField3(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -16645,20 +12717,43 @@ func (p *TDBSqlStatement) Read(ctx context.Context, iprot thrift.TProtocol) erro return nil } -func (p *TDBSqlStatement) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TSparkParameterValue) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.Statement = &v + p.StringValue = &v +} + return nil +} + +func (p *TSparkParameterValue) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadDouble(ctx); err != nil { + return thrift.PrependError("error reading field 2: ", err) +} else { + p.DoubleValue = &v +} + return nil +} + +func (p *TSparkParameterValue) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadBool(ctx); err != nil { + return thrift.PrependError("error reading field 3: ", err) +} else { + p.BooleanValue = &v } return nil } -func (p *TDBSqlStatement) Write(ctx context.Context, oprot thrift.TProtocol) error { - if err := oprot.WriteStructBegin(ctx, "TDBSqlStatement"); err != nil { +func (p *TSparkParameterValue) Write(ctx context.Context, oprot thrift.TProtocol) error { + if c := p.CountSetFieldsTSparkParameterValue(); c != 1 { + return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) + } + if err := oprot.WriteStructBegin(ctx, "TSparkParameterValue"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } + if err := p.writeField2(ctx, oprot); err != nil { return err } + if err := p.writeField3(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -16667,106 +12762,125 @@ func (p *TDBSqlStatement) Write(ctx context.Context, oprot thrift.TProtocol) err return nil } -func (p *TDBSqlStatement) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStatement() { - if err := oprot.WriteFieldBegin(ctx, "statement", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:statement: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.Statement)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.statement (1) field write error: ", p), err) } +func (p *TSparkParameterValue) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetStringValue() { + if err := oprot.WriteFieldBegin(ctx, "stringValue", thrift.STRING, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:stringValue: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.StringValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.stringValue (1) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:stringValue: ", p), err) } + } + return err +} + +func (p *TSparkParameterValue) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetDoubleValue() { + if err := oprot.WriteFieldBegin(ctx, "doubleValue", thrift.DOUBLE, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:doubleValue: ", p), err) } + if err := oprot.WriteDouble(ctx, float64(*p.DoubleValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.doubleValue (2) field write error: ", p), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:doubleValue: ", p), err) } + } + return err +} + +func (p *TSparkParameterValue) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetBooleanValue() { + if err := oprot.WriteFieldBegin(ctx, "booleanValue", thrift.BOOL, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:booleanValue: ", p), err) } + if err := oprot.WriteBool(ctx, bool(*p.BooleanValue)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.booleanValue (3) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:statement: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:booleanValue: ", p), err) } } return err } -func (p *TDBSqlStatement) Equals(other *TDBSqlStatement) bool { +func (p *TSparkParameterValue) Equals(other *TSparkParameterValue) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.Statement != other.Statement { - if p.Statement == nil || other.Statement == nil { + if p.StringValue != other.StringValue { + if p.StringValue == nil || other.StringValue == nil { + return false + } + if (*p.StringValue) != (*other.StringValue) { return false } + } + if p.DoubleValue != other.DoubleValue { + if p.DoubleValue == nil || other.DoubleValue == nil { + return false + } + if (*p.DoubleValue) != (*other.DoubleValue) { return false } + } + if p.BooleanValue != other.BooleanValue { + if p.BooleanValue == nil || other.BooleanValue == nil { return false } - if (*p.Statement) != (*other.Statement) { return false } + if (*p.BooleanValue) != (*other.BooleanValue) { return false } } return true } -func (p *TDBSqlStatement) String() string { +func (p *TSparkParameterValue) String() string { if p == nil { return "" } - return fmt.Sprintf("TDBSqlStatement(%+v)", *p) + return fmt.Sprintf("TSparkParameterValue(%+v)", *p) } -func (p *TDBSqlStatement) Validate() error { +func (p *TSparkParameterValue) Validate() error { return nil } // Attributes: -// - StringValue -// - DoubleValue -// - BooleanValue -type TSparkParameterValue struct { - StringValue *string `thrift:"stringValue,1" db:"stringValue" json:"stringValue,omitempty"` - DoubleValue *float64 `thrift:"doubleValue,2" db:"doubleValue" json:"doubleValue,omitempty"` - BooleanValue *bool `thrift:"booleanValue,3" db:"booleanValue" json:"booleanValue,omitempty"` -} - -func NewTSparkParameterValue() *TSparkParameterValue { - return &TSparkParameterValue{} -} - -var TSparkParameterValue_StringValue_DEFAULT string -func (p *TSparkParameterValue) GetStringValue() string { - if !p.IsSetStringValue() { - return TSparkParameterValue_StringValue_DEFAULT - } -return *p.StringValue -} -var TSparkParameterValue_DoubleValue_DEFAULT float64 -func (p *TSparkParameterValue) GetDoubleValue() float64 { - if !p.IsSetDoubleValue() { - return TSparkParameterValue_DoubleValue_DEFAULT - } -return *p.DoubleValue -} -var TSparkParameterValue_BooleanValue_DEFAULT bool -func (p *TSparkParameterValue) GetBooleanValue() bool { - if !p.IsSetBooleanValue() { - return TSparkParameterValue_BooleanValue_DEFAULT - } -return *p.BooleanValue +// - Type +// - Value +// - Arguments +type TSparkParameterValueArg struct { + Type *string `thrift:"type,1" db:"type" json:"type,omitempty"` + Value *string `thrift:"value,2" db:"value" json:"value,omitempty"` + Arguments []*TSparkParameterValueArg `thrift:"arguments,3" db:"arguments" json:"arguments,omitempty"` } -func (p *TSparkParameterValue) CountSetFieldsTSparkParameterValue() int { - count := 0 - if (p.IsSetStringValue()) { - count++ - } - if (p.IsSetDoubleValue()) { - count++ + +func NewTSparkParameterValueArg() *TSparkParameterValueArg { + return &TSparkParameterValueArg{} +} + +var TSparkParameterValueArg_Type_DEFAULT string +func (p *TSparkParameterValueArg) GetType() string { + if !p.IsSetType() { + return TSparkParameterValueArg_Type_DEFAULT } - if (p.IsSetBooleanValue()) { - count++ +return *p.Type +} +var TSparkParameterValueArg_Value_DEFAULT string +func (p *TSparkParameterValueArg) GetValue() string { + if !p.IsSetValue() { + return TSparkParameterValueArg_Value_DEFAULT } - return count - +return *p.Value } +var TSparkParameterValueArg_Arguments_DEFAULT []*TSparkParameterValueArg -func (p *TSparkParameterValue) IsSetStringValue() bool { - return p.StringValue != nil +func (p *TSparkParameterValueArg) GetArguments() []*TSparkParameterValueArg { + return p.Arguments +} +func (p *TSparkParameterValueArg) IsSetType() bool { + return p.Type != nil } -func (p *TSparkParameterValue) IsSetDoubleValue() bool { - return p.DoubleValue != nil +func (p *TSparkParameterValueArg) IsSetValue() bool { + return p.Value != nil } -func (p *TSparkParameterValue) IsSetBooleanValue() bool { - return p.BooleanValue != nil +func (p *TSparkParameterValueArg) IsSetArguments() bool { + return p.Arguments != nil } -func (p *TSparkParameterValue) Read(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TSparkParameterValueArg) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) } @@ -16790,7 +12904,7 @@ func (p *TSparkParameterValue) Read(ctx context.Context, iprot thrift.TProtocol) } } case 2: - if fieldTypeId == thrift.DOUBLE { + if fieldTypeId == thrift.STRING { if err := p.ReadField2(ctx, iprot); err != nil { return err } @@ -16800,7 +12914,7 @@ func (p *TSparkParameterValue) Read(ctx context.Context, iprot thrift.TProtocol) } } case 3: - if fieldTypeId == thrift.BOOL { + if fieldTypeId == thrift.LIST { if err := p.ReadField3(ctx, iprot); err != nil { return err } @@ -16824,38 +12938,46 @@ func (p *TSparkParameterValue) Read(ctx context.Context, iprot thrift.TProtocol) return nil } -func (p *TSparkParameterValue) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { +func (p *TSparkParameterValueArg) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 1: ", err) } else { - p.StringValue = &v + p.Type = &v } return nil } -func (p *TSparkParameterValue) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { +func (p *TSparkParameterValueArg) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { + if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 2: ", err) } else { - p.DoubleValue = &v + p.Value = &v } return nil } -func (p *TSparkParameterValue) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3: ", err) -} else { - p.BooleanValue = &v -} +func (p *TSparkParameterValueArg) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TSparkParameterValueArg, 0, size) + p.Arguments = tSlice + for i := 0; i < size; i ++ { + _elem62 := &TSparkParameterValueArg{} + if err := _elem62.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem62), err) + } + p.Arguments = append(p.Arguments, _elem62) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } return nil } -func (p *TSparkParameterValue) Write(ctx context.Context, oprot thrift.TProtocol) error { - if c := p.CountSetFieldsTSparkParameterValue(); c != 1 { - return fmt.Errorf("%T write union: exactly one field must be set (%d set)", p, c) - } - if err := oprot.WriteStructBegin(ctx, "TSparkParameterValue"); err != nil { +func (p *TSparkParameterValueArg) Write(ctx context.Context, oprot thrift.TProtocol) error { + if err := oprot.WriteStructBegin(ctx, "TSparkParameterValueArg"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } @@ -16869,77 +12991,85 @@ func (p *TSparkParameterValue) Write(ctx context.Context, oprot thrift.TProtocol return nil } -func (p *TSparkParameterValue) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStringValue() { - if err := oprot.WriteFieldBegin(ctx, "stringValue", thrift.STRING, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:stringValue: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.StringValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.stringValue (1) field write error: ", p), err) } +func (p *TSparkParameterValueArg) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetType() { + if err := oprot.WriteFieldBegin(ctx, "type", thrift.STRING, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:type: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.Type)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.type (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:stringValue: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:type: ", p), err) } } return err } -func (p *TSparkParameterValue) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetDoubleValue() { - if err := oprot.WriteFieldBegin(ctx, "doubleValue", thrift.DOUBLE, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:doubleValue: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.DoubleValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.doubleValue (2) field write error: ", p), err) } +func (p *TSparkParameterValueArg) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetValue() { + if err := oprot.WriteFieldBegin(ctx, "value", thrift.STRING, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:value: ", p), err) } + if err := oprot.WriteString(ctx, string(*p.Value)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.value (2) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:doubleValue: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:value: ", p), err) } } return err } -func (p *TSparkParameterValue) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetBooleanValue() { - if err := oprot.WriteFieldBegin(ctx, "booleanValue", thrift.BOOL, 3); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:booleanValue: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.BooleanValue)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.booleanValue (3) field write error: ", p), err) } +func (p *TSparkParameterValueArg) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetArguments() { + if err := oprot.WriteFieldBegin(ctx, "arguments", thrift.LIST, 3); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:arguments: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Arguments)); err != nil { + return thrift.PrependError("error writing list begin: ", err) + } + for _, v := range p.Arguments { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3:booleanValue: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 3:arguments: ", p), err) } } return err } -func (p *TSparkParameterValue) Equals(other *TSparkParameterValue) bool { +func (p *TSparkParameterValueArg) Equals(other *TSparkParameterValueArg) bool { if p == other { return true } else if p == nil || other == nil { return false } - if p.StringValue != other.StringValue { - if p.StringValue == nil || other.StringValue == nil { + if p.Type != other.Type { + if p.Type == nil || other.Type == nil { return false } - if (*p.StringValue) != (*other.StringValue) { return false } + if (*p.Type) != (*other.Type) { return false } } - if p.DoubleValue != other.DoubleValue { - if p.DoubleValue == nil || other.DoubleValue == nil { + if p.Value != other.Value { + if p.Value == nil || other.Value == nil { return false } - if (*p.DoubleValue) != (*other.DoubleValue) { return false } + if (*p.Value) != (*other.Value) { return false } } - if p.BooleanValue != other.BooleanValue { - if p.BooleanValue == nil || other.BooleanValue == nil { - return false - } - if (*p.BooleanValue) != (*other.BooleanValue) { return false } + if len(p.Arguments) != len(other.Arguments) { return false } + for i, _tgt := range p.Arguments { + _src63 := other.Arguments[i] + if !_tgt.Equals(_src63) { return false } } return true } -func (p *TSparkParameterValue) String() string { +func (p *TSparkParameterValueArg) String() string { if p == nil { return "" } - return fmt.Sprintf("TSparkParameterValue(%+v)", *p) + return fmt.Sprintf("TSparkParameterValueArg(%+v)", *p) } -func (p *TSparkParameterValue) Validate() error { +func (p *TSparkParameterValueArg) Validate() error { return nil } // Attributes: @@ -16947,11 +13077,13 @@ func (p *TSparkParameterValue) Validate() error { // - Name // - Type // - Value +// - Arguments type TSparkParameter struct { Ordinal *int32 `thrift:"ordinal,1" db:"ordinal" json:"ordinal,omitempty"` Name *string `thrift:"name,2" db:"name" json:"name,omitempty"` Type *string `thrift:"type,3" db:"type" json:"type,omitempty"` Value *TSparkParameterValue `thrift:"value,4" db:"value" json:"value,omitempty"` + Arguments []*TSparkParameterValueArg `thrift:"arguments,5" db:"arguments" json:"arguments,omitempty"` } func NewTSparkParameter() *TSparkParameter { @@ -16986,6 +13118,11 @@ func (p *TSparkParameter) GetValue() *TSparkParameterValue { } return p.Value } +var TSparkParameter_Arguments_DEFAULT []*TSparkParameterValueArg + +func (p *TSparkParameter) GetArguments() []*TSparkParameterValueArg { + return p.Arguments +} func (p *TSparkParameter) IsSetOrdinal() bool { return p.Ordinal != nil } @@ -17002,6 +13139,10 @@ func (p *TSparkParameter) IsSetValue() bool { return p.Value != nil } +func (p *TSparkParameter) IsSetArguments() bool { + return p.Arguments != nil +} + func (p *TSparkParameter) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -17055,6 +13196,16 @@ func (p *TSparkParameter) Read(ctx context.Context, iprot thrift.TProtocol) erro return err } } + case 5: + if fieldTypeId == thrift.LIST { + if err := p.ReadField5(ctx, iprot); err != nil { + return err + } + } else { + if err := iprot.Skip(ctx, fieldTypeId); err != nil { + return err + } + } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -17105,6 +13256,26 @@ func (p *TSparkParameter) ReadField4(ctx context.Context, iprot thrift.TProtoco return nil } +func (p *TSparkParameter) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { + _, size, err := iprot.ReadListBegin(ctx) + if err != nil { + return thrift.PrependError("error reading list begin: ", err) + } + tSlice := make([]*TSparkParameterValueArg, 0, size) + p.Arguments = tSlice + for i := 0; i < size; i ++ { + _elem64 := &TSparkParameterValueArg{} + if err := _elem64.Read(ctx, iprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem64), err) + } + p.Arguments = append(p.Arguments, _elem64) + } + if err := iprot.ReadListEnd(ctx); err != nil { + return thrift.PrependError("error reading list end: ", err) + } + return nil +} + func (p *TSparkParameter) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TSparkParameter"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -17113,6 +13284,7 @@ func (p *TSparkParameter) Write(ctx context.Context, oprot thrift.TProtocol) err if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField4(ctx, oprot); err != nil { return err } + if err := p.writeField5(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -17170,6 +13342,27 @@ func (p *TSparkParameter) writeField4(ctx context.Context, oprot thrift.TProtoco return err } +func (p *TSparkParameter) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetArguments() { + if err := oprot.WriteFieldBegin(ctx, "arguments", thrift.LIST, 5); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:arguments: ", p), err) } + if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.Arguments)); err != nil { + return thrift.PrependError("error writing list begin: ", err) + } + for _, v := range p.Arguments { + if err := v.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) + } + } + if err := oprot.WriteListEnd(ctx); err != nil { + return thrift.PrependError("error writing list end: ", err) + } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 5:arguments: ", p), err) } + } + return err +} + func (p *TSparkParameter) Equals(other *TSparkParameter) bool { if p == other { return true @@ -17195,6 +13388,11 @@ func (p *TSparkParameter) Equals(other *TSparkParameter) bool { if (*p.Type) != (*other.Type) { return false } } if !p.Value.Equals(other.Value) { return false } + if len(p.Arguments) != len(other.Arguments) { return false } + for i, _tgt := range p.Arguments { + _src65 := other.Arguments[i] + if !_tgt.Equals(_src65) { return false } + } return true } @@ -17479,30 +13677,11 @@ func (p *TStatementConf) Validate() error { // - Status // - OperationHandle // - DirectResults -// - ExecutionRejected -// - MaxClusterCapacity -// - QueryCost -// - SessionConf -// - CurrentClusterLoad -// - IdempotencyType -// - RemoteResultCacheEnabled -// - IsServerless -// - OperationHandles type TExecuteStatementResp struct { Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` OperationHandle *TOperationHandle `thrift:"operationHandle,2" db:"operationHandle" json:"operationHandle,omitempty"` // unused fields # 3 to 1280 DirectResults *TSparkDirectResults `thrift:"directResults,1281" db:"directResults" json:"directResults,omitempty"` - // unused fields # 1282 to 3328 - ExecutionRejected *bool `thrift:"executionRejected,3329" db:"executionRejected" json:"executionRejected,omitempty"` - MaxClusterCapacity *float64 `thrift:"maxClusterCapacity,3330" db:"maxClusterCapacity" json:"maxClusterCapacity,omitempty"` - QueryCost *float64 `thrift:"queryCost,3331" db:"queryCost" json:"queryCost,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3332" db:"sessionConf" json:"sessionConf,omitempty"` - CurrentClusterLoad *float64 `thrift:"currentClusterLoad,3333" db:"currentClusterLoad" json:"currentClusterLoad,omitempty"` - IdempotencyType *TOperationIdempotencyType `thrift:"idempotencyType,3334" db:"idempotencyType" json:"idempotencyType,omitempty"` - RemoteResultCacheEnabled *bool `thrift:"remoteResultCacheEnabled,3335" db:"remoteResultCacheEnabled" json:"remoteResultCacheEnabled,omitempty"` - IsServerless *bool `thrift:"isServerless,3336" db:"isServerless" json:"isServerless,omitempty"` - OperationHandles []*TOperationHandle `thrift:"operationHandles,3337" db:"operationHandles" json:"operationHandles,omitempty"` } func NewTExecuteStatementResp() *TExecuteStatementResp { @@ -17530,67 +13709,6 @@ func (p *TExecuteStatementResp) GetDirectResults() *TSparkDirectResults { } return p.DirectResults } -var TExecuteStatementResp_ExecutionRejected_DEFAULT bool -func (p *TExecuteStatementResp) GetExecutionRejected() bool { - if !p.IsSetExecutionRejected() { - return TExecuteStatementResp_ExecutionRejected_DEFAULT - } -return *p.ExecutionRejected -} -var TExecuteStatementResp_MaxClusterCapacity_DEFAULT float64 -func (p *TExecuteStatementResp) GetMaxClusterCapacity() float64 { - if !p.IsSetMaxClusterCapacity() { - return TExecuteStatementResp_MaxClusterCapacity_DEFAULT - } -return *p.MaxClusterCapacity -} -var TExecuteStatementResp_QueryCost_DEFAULT float64 -func (p *TExecuteStatementResp) GetQueryCost() float64 { - if !p.IsSetQueryCost() { - return TExecuteStatementResp_QueryCost_DEFAULT - } -return *p.QueryCost -} -var TExecuteStatementResp_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TExecuteStatementResp) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TExecuteStatementResp_SessionConf_DEFAULT - } -return p.SessionConf -} -var TExecuteStatementResp_CurrentClusterLoad_DEFAULT float64 -func (p *TExecuteStatementResp) GetCurrentClusterLoad() float64 { - if !p.IsSetCurrentClusterLoad() { - return TExecuteStatementResp_CurrentClusterLoad_DEFAULT - } -return *p.CurrentClusterLoad -} -var TExecuteStatementResp_IdempotencyType_DEFAULT TOperationIdempotencyType -func (p *TExecuteStatementResp) GetIdempotencyType() TOperationIdempotencyType { - if !p.IsSetIdempotencyType() { - return TExecuteStatementResp_IdempotencyType_DEFAULT - } -return *p.IdempotencyType -} -var TExecuteStatementResp_RemoteResultCacheEnabled_DEFAULT bool -func (p *TExecuteStatementResp) GetRemoteResultCacheEnabled() bool { - if !p.IsSetRemoteResultCacheEnabled() { - return TExecuteStatementResp_RemoteResultCacheEnabled_DEFAULT - } -return *p.RemoteResultCacheEnabled -} -var TExecuteStatementResp_IsServerless_DEFAULT bool -func (p *TExecuteStatementResp) GetIsServerless() bool { - if !p.IsSetIsServerless() { - return TExecuteStatementResp_IsServerless_DEFAULT - } -return *p.IsServerless -} -var TExecuteStatementResp_OperationHandles_DEFAULT []*TOperationHandle - -func (p *TExecuteStatementResp) GetOperationHandles() []*TOperationHandle { - return p.OperationHandles -} func (p *TExecuteStatementResp) IsSetStatus() bool { return p.Status != nil } @@ -17603,42 +13721,6 @@ func (p *TExecuteStatementResp) IsSetDirectResults() bool { return p.DirectResults != nil } -func (p *TExecuteStatementResp) IsSetExecutionRejected() bool { - return p.ExecutionRejected != nil -} - -func (p *TExecuteStatementResp) IsSetMaxClusterCapacity() bool { - return p.MaxClusterCapacity != nil -} - -func (p *TExecuteStatementResp) IsSetQueryCost() bool { - return p.QueryCost != nil -} - -func (p *TExecuteStatementResp) IsSetSessionConf() bool { - return p.SessionConf != nil -} - -func (p *TExecuteStatementResp) IsSetCurrentClusterLoad() bool { - return p.CurrentClusterLoad != nil -} - -func (p *TExecuteStatementResp) IsSetIdempotencyType() bool { - return p.IdempotencyType != nil -} - -func (p *TExecuteStatementResp) IsSetRemoteResultCacheEnabled() bool { - return p.RemoteResultCacheEnabled != nil -} - -func (p *TExecuteStatementResp) IsSetIsServerless() bool { - return p.IsServerless != nil -} - -func (p *TExecuteStatementResp) IsSetOperationHandles() bool { - return p.OperationHandles != nil -} - func (p *TExecuteStatementResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -17653,110 +13735,20 @@ func (p *TExecuteStatementResp) Read(ctx context.Context, iprot thrift.TProtocol } if fieldTypeId == thrift.STOP { break; } switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetStatus = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.DOUBLE { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3331: - if fieldTypeId == thrift.DOUBLE { - if err := p.ReadField3331(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3332: + case 1: if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3332(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3333: - if fieldTypeId == thrift.DOUBLE { - if err := p.ReadField3333(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3334: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3334(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3335: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3335(ctx, iprot); err != nil { + if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetStatus = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } - case 3336: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3336(ctx, iprot); err != nil { + case 2: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField2(ctx, iprot); err != nil { return err } } else { @@ -17764,9 +13756,9 @@ func (p *TExecuteStatementResp) Read(ctx context.Context, iprot thrift.TProtocol return err } } - case 3337: - if fieldTypeId == thrift.LIST { - if err := p.ReadField3337(ctx, iprot); err != nil { + case 1281: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -17816,98 +13808,6 @@ func (p *TExecuteStatementResp) ReadField1281(ctx context.Context, iprot thrift return nil } -func (p *TExecuteStatementResp) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ExecutionRejected = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { - return thrift.PrependError("error reading field 3330: ", err) -} else { - p.MaxClusterCapacity = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3331(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { - return thrift.PrependError("error reading field 3331: ", err) -} else { - p.QueryCost = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3332(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - -func (p *TExecuteStatementResp) ReadField3333(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadDouble(ctx); err != nil { - return thrift.PrependError("error reading field 3333: ", err) -} else { - p.CurrentClusterLoad = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3334(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3334: ", err) -} else { - temp := TOperationIdempotencyType(v) - p.IdempotencyType = &temp -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3335(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3335: ", err) -} else { - p.RemoteResultCacheEnabled = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3336(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3336: ", err) -} else { - p.IsServerless = &v -} - return nil -} - -func (p *TExecuteStatementResp) ReadField3337(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TOperationHandle, 0, size) - p.OperationHandles = tSlice - for i := 0; i < size; i ++ { - _elem82 := &TOperationHandle{} - if err := _elem82.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem82), err) - } - p.OperationHandles = append(p.OperationHandles, _elem82) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil -} - func (p *TExecuteStatementResp) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TExecuteStatementResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -17915,15 +13815,6 @@ func (p *TExecuteStatementResp) Write(ctx context.Context, oprot thrift.TProtoco if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } - if err := p.writeField3331(ctx, oprot); err != nil { return err } - if err := p.writeField3332(ctx, oprot); err != nil { return err } - if err := p.writeField3333(ctx, oprot); err != nil { return err } - if err := p.writeField3334(ctx, oprot); err != nil { return err } - if err := p.writeField3335(ctx, oprot); err != nil { return err } - if err := p.writeField3336(ctx, oprot); err != nil { return err } - if err := p.writeField3337(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -17969,124 +13860,6 @@ func (p *TExecuteStatementResp) writeField1281(ctx context.Context, oprot thrift return err } -func (p *TExecuteStatementResp) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExecutionRejected() { - if err := oprot.WriteFieldBegin(ctx, "executionRejected", thrift.BOOL, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:executionRejected: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.ExecutionRejected)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.executionRejected (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:executionRejected: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetMaxClusterCapacity() { - if err := oprot.WriteFieldBegin(ctx, "maxClusterCapacity", thrift.DOUBLE, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:maxClusterCapacity: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.MaxClusterCapacity)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.maxClusterCapacity (3330) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:maxClusterCapacity: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3331(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetQueryCost() { - if err := oprot.WriteFieldBegin(ctx, "queryCost", thrift.DOUBLE, 3331); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3331:queryCost: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.QueryCost)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.queryCost (3331) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3331:queryCost: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3332(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3332); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3332:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3332:sessionConf: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3333(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCurrentClusterLoad() { - if err := oprot.WriteFieldBegin(ctx, "currentClusterLoad", thrift.DOUBLE, 3333); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3333:currentClusterLoad: ", p), err) } - if err := oprot.WriteDouble(ctx, float64(*p.CurrentClusterLoad)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.currentClusterLoad (3333) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3333:currentClusterLoad: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3334(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIdempotencyType() { - if err := oprot.WriteFieldBegin(ctx, "idempotencyType", thrift.I32, 3334); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3334:idempotencyType: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.IdempotencyType)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.idempotencyType (3334) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3334:idempotencyType: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3335(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRemoteResultCacheEnabled() { - if err := oprot.WriteFieldBegin(ctx, "remoteResultCacheEnabled", thrift.BOOL, 3335); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3335:remoteResultCacheEnabled: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.RemoteResultCacheEnabled)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.remoteResultCacheEnabled (3335) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3335:remoteResultCacheEnabled: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3336(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIsServerless() { - if err := oprot.WriteFieldBegin(ctx, "isServerless", thrift.BOOL, 3336); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3336:isServerless: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.IsServerless)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.isServerless (3336) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3336:isServerless: ", p), err) } - } - return err -} - -func (p *TExecuteStatementResp) writeField3337(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationHandles() { - if err := oprot.WriteFieldBegin(ctx, "operationHandles", thrift.LIST, 3337); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3337:operationHandles: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.OperationHandles)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.OperationHandles { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3337:operationHandles: ", p), err) } - } - return err -} - func (p *TExecuteStatementResp) Equals(other *TExecuteStatementResp) bool { if p == other { return true @@ -18096,54 +13869,6 @@ func (p *TExecuteStatementResp) Equals(other *TExecuteStatementResp) bool { if !p.Status.Equals(other.Status) { return false } if !p.OperationHandle.Equals(other.OperationHandle) { return false } if !p.DirectResults.Equals(other.DirectResults) { return false } - if p.ExecutionRejected != other.ExecutionRejected { - if p.ExecutionRejected == nil || other.ExecutionRejected == nil { - return false - } - if (*p.ExecutionRejected) != (*other.ExecutionRejected) { return false } - } - if p.MaxClusterCapacity != other.MaxClusterCapacity { - if p.MaxClusterCapacity == nil || other.MaxClusterCapacity == nil { - return false - } - if (*p.MaxClusterCapacity) != (*other.MaxClusterCapacity) { return false } - } - if p.QueryCost != other.QueryCost { - if p.QueryCost == nil || other.QueryCost == nil { - return false - } - if (*p.QueryCost) != (*other.QueryCost) { return false } - } - if !p.SessionConf.Equals(other.SessionConf) { return false } - if p.CurrentClusterLoad != other.CurrentClusterLoad { - if p.CurrentClusterLoad == nil || other.CurrentClusterLoad == nil { - return false - } - if (*p.CurrentClusterLoad) != (*other.CurrentClusterLoad) { return false } - } - if p.IdempotencyType != other.IdempotencyType { - if p.IdempotencyType == nil || other.IdempotencyType == nil { - return false - } - if (*p.IdempotencyType) != (*other.IdempotencyType) { return false } - } - if p.RemoteResultCacheEnabled != other.RemoteResultCacheEnabled { - if p.RemoteResultCacheEnabled == nil || other.RemoteResultCacheEnabled == nil { - return false - } - if (*p.RemoteResultCacheEnabled) != (*other.RemoteResultCacheEnabled) { return false } - } - if p.IsServerless != other.IsServerless { - if p.IsServerless == nil || other.IsServerless == nil { - return false - } - if (*p.IsServerless) != (*other.IsServerless) { return false } - } - if len(p.OperationHandles) != len(other.OperationHandles) { return false } - for i, _tgt := range p.OperationHandles { - _src83 := other.OperationHandles[i] - if !_tgt.Equals(_src83) { return false } - } return true } @@ -18161,16 +13886,11 @@ func (p *TExecuteStatementResp) Validate() error { // - SessionHandle // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetTypeInfoReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` // unused fields # 2 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetTypeInfoReq() *TGetTypeInfoReq { @@ -18196,20 +13916,6 @@ var TGetTypeInfoReq_RunAsync_DEFAULT bool = false func (p *TGetTypeInfoReq) GetRunAsync() bool { return p.RunAsync } -var TGetTypeInfoReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetTypeInfoReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetTypeInfoReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetTypeInfoReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetTypeInfoReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetTypeInfoReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetTypeInfoReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -18222,14 +13928,6 @@ func (p *TGetTypeInfoReq) IsSetRunAsync() bool { return p.RunAsync != TGetTypeInfoReq_RunAsync_DEFAULT } -func (p *TGetTypeInfoReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetTypeInfoReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetTypeInfoReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -18275,26 +13973,6 @@ func (p *TGetTypeInfoReq) Read(ctx context.Context, iprot thrift.TProtocol) erro return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -18338,22 +14016,6 @@ func (p *TGetTypeInfoReq) ReadField1282(ctx context.Context, iprot thrift.TProt return nil } -func (p *TGetTypeInfoReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetTypeInfoReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetTypeInfoReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetTypeInfoReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -18361,8 +14023,6 @@ func (p *TGetTypeInfoReq) Write(ctx context.Context, oprot thrift.TProtocol) err if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -18407,32 +14067,6 @@ func (p *TGetTypeInfoReq) writeField1282(ctx context.Context, oprot thrift.TProt return err } -func (p *TGetTypeInfoReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetTypeInfoReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetTypeInfoReq) Equals(other *TGetTypeInfoReq) bool { if p == other { return true @@ -18442,8 +14076,6 @@ func (p *TGetTypeInfoReq) Equals(other *TGetTypeInfoReq) bool { if !p.SessionHandle.Equals(other.SessionHandle) { return false } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -18670,16 +14302,11 @@ func (p *TGetTypeInfoResp) Validate() error { // - SessionHandle // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetCatalogsReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` // unused fields # 2 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetCatalogsReq() *TGetCatalogsReq { @@ -18705,20 +14332,6 @@ var TGetCatalogsReq_RunAsync_DEFAULT bool = false func (p *TGetCatalogsReq) GetRunAsync() bool { return p.RunAsync } -var TGetCatalogsReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetCatalogsReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetCatalogsReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetCatalogsReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetCatalogsReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetCatalogsReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetCatalogsReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -18731,14 +14344,6 @@ func (p *TGetCatalogsReq) IsSetRunAsync() bool { return p.RunAsync != TGetCatalogsReq_RunAsync_DEFAULT } -func (p *TGetCatalogsReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetCatalogsReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetCatalogsReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -18758,35 +14363,15 @@ func (p *TGetCatalogsReq) Read(ctx context.Context, iprot thrift.TProtocol) erro if err := p.ReadField1(ctx, iprot); err != nil { return err } - issetSessionHandle = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1282: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1282(ctx, iprot); err != nil { - return err - } + issetSessionHandle = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } - case 3329: + case 1281: if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -18794,9 +14379,9 @@ func (p *TGetCatalogsReq) Read(ctx context.Context, iprot thrift.TProtocol) erro return err } } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { + case 1282: + if fieldTypeId == thrift.BOOL { + if err := p.ReadField1282(ctx, iprot); err != nil { return err } } else { @@ -18847,22 +14432,6 @@ func (p *TGetCatalogsReq) ReadField1282(ctx context.Context, iprot thrift.TProt return nil } -func (p *TGetCatalogsReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetCatalogsReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetCatalogsReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetCatalogsReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -18870,8 +14439,6 @@ func (p *TGetCatalogsReq) Write(ctx context.Context, oprot thrift.TProtocol) err if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -18916,32 +14483,6 @@ func (p *TGetCatalogsReq) writeField1282(ctx context.Context, oprot thrift.TProt return err } -func (p *TGetCatalogsReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetCatalogsReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetCatalogsReq) Equals(other *TGetCatalogsReq) bool { if p == other { return true @@ -18951,8 +14492,6 @@ func (p *TGetCatalogsReq) Equals(other *TGetCatalogsReq) bool { if !p.SessionHandle.Equals(other.SessionHandle) { return false } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -19181,8 +14720,6 @@ func (p *TGetCatalogsResp) Validate() error { // - SchemaName // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetSchemasReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` CatalogName *TIdentifier `thrift:"catalogName,2" db:"catalogName" json:"catalogName,omitempty"` @@ -19190,9 +14727,6 @@ type TGetSchemasReq struct { // unused fields # 4 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetSchemasReq() *TGetSchemasReq { @@ -19232,20 +14766,6 @@ var TGetSchemasReq_RunAsync_DEFAULT bool = false func (p *TGetSchemasReq) GetRunAsync() bool { return p.RunAsync } -var TGetSchemasReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetSchemasReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetSchemasReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetSchemasReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetSchemasReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetSchemasReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetSchemasReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -19266,14 +14786,6 @@ func (p *TGetSchemasReq) IsSetRunAsync() bool { return p.RunAsync != TGetSchemasReq_RunAsync_DEFAULT } -func (p *TGetSchemasReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetSchemasReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetSchemasReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -19339,26 +14851,6 @@ func (p *TGetSchemasReq) Read(ctx context.Context, iprot thrift.TProtocol) error return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -19422,22 +14914,6 @@ func (p *TGetSchemasReq) ReadField1282(ctx context.Context, iprot thrift.TProto return nil } -func (p *TGetSchemasReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetSchemasReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetSchemasReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetSchemasReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -19447,8 +14923,6 @@ func (p *TGetSchemasReq) Write(ctx context.Context, oprot thrift.TProtocol) erro if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -19517,32 +14991,6 @@ func (p *TGetSchemasReq) writeField1282(ctx context.Context, oprot thrift.TProto return err } -func (p *TGetSchemasReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetSchemasReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetSchemasReq) Equals(other *TGetSchemasReq) bool { if p == other { return true @@ -19564,8 +15012,6 @@ func (p *TGetSchemasReq) Equals(other *TGetSchemasReq) bool { } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -19796,8 +15242,6 @@ func (p *TGetSchemasResp) Validate() error { // - TableTypes // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetTablesReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` CatalogName *TPatternOrIdentifier `thrift:"catalogName,2" db:"catalogName" json:"catalogName,omitempty"` @@ -19807,9 +15251,6 @@ type TGetTablesReq struct { // unused fields # 6 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetTablesReq() *TGetTablesReq { @@ -19861,20 +15302,6 @@ var TGetTablesReq_RunAsync_DEFAULT bool = false func (p *TGetTablesReq) GetRunAsync() bool { return p.RunAsync } -var TGetTablesReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetTablesReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetTablesReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetTablesReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetTablesReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetTablesReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetTablesReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -19903,14 +15330,6 @@ func (p *TGetTablesReq) IsSetRunAsync() bool { return p.RunAsync != TGetTablesReq_RunAsync_DEFAULT } -func (p *TGetTablesReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetTablesReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetTablesReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -19996,26 +15415,6 @@ func (p *TGetTablesReq) Read(ctx context.Context, iprot thrift.TProtocol) error return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -20080,13 +15479,13 @@ func (p *TGetTablesReq) ReadField5(ctx context.Context, iprot thrift.TProtocol) tSlice := make([]string, 0, size) p.TableTypes = tSlice for i := 0; i < size; i ++ { -var _elem84 string +var _elem66 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _elem84 = v + _elem66 = v } - p.TableTypes = append(p.TableTypes, _elem84) + p.TableTypes = append(p.TableTypes, _elem66) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -20111,22 +15510,6 @@ func (p *TGetTablesReq) ReadField1282(ctx context.Context, iprot thrift.TProtoc return nil } -func (p *TGetTablesReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetTablesReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetTablesReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetTablesReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -20138,8 +15521,6 @@ func (p *TGetTablesReq) Write(ctx context.Context, oprot thrift.TProtocol) error if err := p.writeField5(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -20240,32 +15621,6 @@ func (p *TGetTablesReq) writeField1282(ctx context.Context, oprot thrift.TProtoc return err } -func (p *TGetTablesReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetTablesReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetTablesReq) Equals(other *TGetTablesReq) bool { if p == other { return true @@ -20293,13 +15648,11 @@ func (p *TGetTablesReq) Equals(other *TGetTablesReq) bool { } if len(p.TableTypes) != len(other.TableTypes) { return false } for i, _tgt := range p.TableTypes { - _src85 := other.TableTypes[i] - if _tgt != _src85 { return false } + _src67 := other.TableTypes[i] + if _tgt != _src67 { return false } } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -20526,16 +15879,11 @@ func (p *TGetTablesResp) Validate() error { // - SessionHandle // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetTableTypesReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` // unused fields # 2 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetTableTypesReq() *TGetTableTypesReq { @@ -20561,20 +15909,6 @@ var TGetTableTypesReq_RunAsync_DEFAULT bool = false func (p *TGetTableTypesReq) GetRunAsync() bool { return p.RunAsync } -var TGetTableTypesReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetTableTypesReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetTableTypesReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetTableTypesReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetTableTypesReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetTableTypesReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetTableTypesReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -20587,14 +15921,6 @@ func (p *TGetTableTypesReq) IsSetRunAsync() bool { return p.RunAsync != TGetTableTypesReq_RunAsync_DEFAULT } -func (p *TGetTableTypesReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetTableTypesReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetTableTypesReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -20640,26 +15966,6 @@ func (p *TGetTableTypesReq) Read(ctx context.Context, iprot thrift.TProtocol) er return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -20703,22 +16009,6 @@ func (p *TGetTableTypesReq) ReadField1282(ctx context.Context, iprot thrift.TPr return nil } -func (p *TGetTableTypesReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetTableTypesReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetTableTypesReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetTableTypesReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -20726,8 +16016,6 @@ func (p *TGetTableTypesReq) Write(ctx context.Context, oprot thrift.TProtocol) e if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -20772,32 +16060,6 @@ func (p *TGetTableTypesReq) writeField1282(ctx context.Context, oprot thrift.TPr return err } -func (p *TGetTableTypesReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetTableTypesReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetTableTypesReq) Equals(other *TGetTableTypesReq) bool { if p == other { return true @@ -20807,8 +16069,6 @@ func (p *TGetTableTypesReq) Equals(other *TGetTableTypesReq) bool { if !p.SessionHandle.Equals(other.SessionHandle) { return false } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -21039,8 +16299,6 @@ func (p *TGetTableTypesResp) Validate() error { // - ColumnName // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetColumnsReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` CatalogName *TIdentifier `thrift:"catalogName,2" db:"catalogName" json:"catalogName,omitempty"` @@ -21050,9 +16308,6 @@ type TGetColumnsReq struct { // unused fields # 6 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetColumnsReq() *TGetColumnsReq { @@ -21106,20 +16361,6 @@ var TGetColumnsReq_RunAsync_DEFAULT bool = false func (p *TGetColumnsReq) GetRunAsync() bool { return p.RunAsync } -var TGetColumnsReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetColumnsReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetColumnsReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetColumnsReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetColumnsReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetColumnsReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetColumnsReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -21148,14 +16389,6 @@ func (p *TGetColumnsReq) IsSetRunAsync() bool { return p.RunAsync != TGetColumnsReq_RunAsync_DEFAULT } -func (p *TGetColumnsReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetColumnsReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetColumnsReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -21241,26 +16474,6 @@ func (p *TGetColumnsReq) Read(ctx context.Context, iprot thrift.TProtocol) error return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -21344,22 +16557,6 @@ func (p *TGetColumnsReq) ReadField1282(ctx context.Context, iprot thrift.TProto return nil } -func (p *TGetColumnsReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetColumnsReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetColumnsReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetColumnsReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -21371,8 +16568,6 @@ func (p *TGetColumnsReq) Write(ctx context.Context, oprot thrift.TProtocol) erro if err := p.writeField5(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -21465,32 +16660,6 @@ func (p *TGetColumnsReq) writeField1282(ctx context.Context, oprot thrift.TProto return err } -func (p *TGetColumnsReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetColumnsReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetColumnsReq) Equals(other *TGetColumnsReq) bool { if p == other { return true @@ -21524,8 +16693,6 @@ func (p *TGetColumnsReq) Equals(other *TGetColumnsReq) bool { } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -21755,8 +16922,6 @@ func (p *TGetColumnsResp) Validate() error { // - FunctionName // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetFunctionsReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` CatalogName *TIdentifier `thrift:"catalogName,2" db:"catalogName" json:"catalogName,omitempty"` @@ -21765,9 +16930,6 @@ type TGetFunctionsReq struct { // unused fields # 5 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetFunctionsReq() *TGetFunctionsReq { @@ -21811,20 +16973,6 @@ var TGetFunctionsReq_RunAsync_DEFAULT bool = false func (p *TGetFunctionsReq) GetRunAsync() bool { return p.RunAsync } -var TGetFunctionsReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetFunctionsReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetFunctionsReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetFunctionsReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetFunctionsReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetFunctionsReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetFunctionsReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -21837,20 +16985,12 @@ func (p *TGetFunctionsReq) IsSetSchemaName() bool { return p.SchemaName != nil } -func (p *TGetFunctionsReq) IsSetGetDirectResults() bool { - return p.GetDirectResults != nil -} - -func (p *TGetFunctionsReq) IsSetRunAsync() bool { - return p.RunAsync != TGetFunctionsReq_RunAsync_DEFAULT -} - -func (p *TGetFunctionsReq) IsSetOperationId() bool { - return p.OperationId != nil +func (p *TGetFunctionsReq) IsSetGetDirectResults() bool { + return p.GetDirectResults != nil } -func (p *TGetFunctionsReq) IsSetSessionConf() bool { - return p.SessionConf != nil +func (p *TGetFunctionsReq) IsSetRunAsync() bool { + return p.RunAsync != TGetFunctionsReq_RunAsync_DEFAULT } func (p *TGetFunctionsReq) Read(ctx context.Context, iprot thrift.TProtocol) error { @@ -21930,26 +17070,6 @@ func (p *TGetFunctionsReq) Read(ctx context.Context, iprot thrift.TProtocol) err return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -22026,22 +17146,6 @@ func (p *TGetFunctionsReq) ReadField1282(ctx context.Context, iprot thrift.TPro return nil } -func (p *TGetFunctionsReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetFunctionsReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetFunctionsReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetFunctionsReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -22052,8 +17156,6 @@ func (p *TGetFunctionsReq) Write(ctx context.Context, oprot thrift.TProtocol) er if err := p.writeField4(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -22132,32 +17234,6 @@ func (p *TGetFunctionsReq) writeField1282(ctx context.Context, oprot thrift.TPro return err } -func (p *TGetFunctionsReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetFunctionsReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetFunctionsReq) Equals(other *TGetFunctionsReq) bool { if p == other { return true @@ -22180,8 +17256,6 @@ func (p *TGetFunctionsReq) Equals(other *TGetFunctionsReq) bool { if p.FunctionName != other.FunctionName { return false } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -22411,8 +17485,6 @@ func (p *TGetFunctionsResp) Validate() error { // - TableName // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetPrimaryKeysReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` CatalogName *TIdentifier `thrift:"catalogName,2" db:"catalogName" json:"catalogName,omitempty"` @@ -22421,9 +17493,6 @@ type TGetPrimaryKeysReq struct { // unused fields # 5 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetPrimaryKeysReq() *TGetPrimaryKeysReq { @@ -22470,20 +17539,6 @@ var TGetPrimaryKeysReq_RunAsync_DEFAULT bool = false func (p *TGetPrimaryKeysReq) GetRunAsync() bool { return p.RunAsync } -var TGetPrimaryKeysReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetPrimaryKeysReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetPrimaryKeysReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetPrimaryKeysReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetPrimaryKeysReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetPrimaryKeysReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetPrimaryKeysReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -22508,14 +17563,6 @@ func (p *TGetPrimaryKeysReq) IsSetRunAsync() bool { return p.RunAsync != TGetPrimaryKeysReq_RunAsync_DEFAULT } -func (p *TGetPrimaryKeysReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetPrimaryKeysReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetPrimaryKeysReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -22591,26 +17638,6 @@ func (p *TGetPrimaryKeysReq) Read(ctx context.Context, iprot thrift.TProtocol) e return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -22684,22 +17711,6 @@ func (p *TGetPrimaryKeysReq) ReadField1282(ctx context.Context, iprot thrift.TP return nil } -func (p *TGetPrimaryKeysReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetPrimaryKeysReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetPrimaryKeysReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetPrimaryKeysReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -22710,8 +17721,6 @@ func (p *TGetPrimaryKeysReq) Write(ctx context.Context, oprot thrift.TProtocol) if err := p.writeField4(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -22792,32 +17801,6 @@ func (p *TGetPrimaryKeysReq) writeField1282(ctx context.Context, oprot thrift.TP return err } -func (p *TGetPrimaryKeysReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetPrimaryKeysReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetPrimaryKeysReq) Equals(other *TGetPrimaryKeysReq) bool { if p == other { return true @@ -22845,8 +17828,6 @@ func (p *TGetPrimaryKeysReq) Equals(other *TGetPrimaryKeysReq) bool { } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -23079,8 +18060,6 @@ func (p *TGetPrimaryKeysResp) Validate() error { // - ForeignTableName // - GetDirectResults // - RunAsync -// - OperationId -// - SessionConf type TGetCrossReferenceReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` ParentCatalogName *TIdentifier `thrift:"parentCatalogName,2" db:"parentCatalogName" json:"parentCatalogName,omitempty"` @@ -23092,9 +18071,6 @@ type TGetCrossReferenceReq struct { // unused fields # 8 to 1280 GetDirectResults *TSparkGetDirectResults `thrift:"getDirectResults,1281" db:"getDirectResults" json:"getDirectResults,omitempty"` RunAsync bool `thrift:"runAsync,1282" db:"runAsync" json:"runAsync"` - // unused fields # 1283 to 3328 - OperationId *THandleIdentifier `thrift:"operationId,3329" db:"operationId" json:"operationId,omitempty"` - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3330" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetCrossReferenceReq() *TGetCrossReferenceReq { @@ -23162,20 +18138,6 @@ var TGetCrossReferenceReq_RunAsync_DEFAULT bool = false func (p *TGetCrossReferenceReq) GetRunAsync() bool { return p.RunAsync } -var TGetCrossReferenceReq_OperationId_DEFAULT *THandleIdentifier -func (p *TGetCrossReferenceReq) GetOperationId() *THandleIdentifier { - if !p.IsSetOperationId() { - return TGetCrossReferenceReq_OperationId_DEFAULT - } -return p.OperationId -} -var TGetCrossReferenceReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetCrossReferenceReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetCrossReferenceReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetCrossReferenceReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } @@ -23212,14 +18174,6 @@ func (p *TGetCrossReferenceReq) IsSetRunAsync() bool { return p.RunAsync != TGetCrossReferenceReq_RunAsync_DEFAULT } -func (p *TGetCrossReferenceReq) IsSetOperationId() bool { - return p.OperationId != nil -} - -func (p *TGetCrossReferenceReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetCrossReferenceReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -23325,26 +18279,6 @@ func (p *TGetCrossReferenceReq) Read(ctx context.Context, iprot thrift.TProtocol return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -23448,22 +18382,6 @@ func (p *TGetCrossReferenceReq) ReadField1282(ctx context.Context, iprot thrift return nil } -func (p *TGetCrossReferenceReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.OperationId = &THandleIdentifier{} - if err := p.OperationId.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.OperationId), err) - } - return nil -} - -func (p *TGetCrossReferenceReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetCrossReferenceReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetCrossReferenceReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -23477,8 +18395,6 @@ func (p *TGetCrossReferenceReq) Write(ctx context.Context, oprot thrift.TProtoco if err := p.writeField7(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -23595,32 +18511,6 @@ func (p *TGetCrossReferenceReq) writeField1282(ctx context.Context, oprot thrift return err } -func (p *TGetCrossReferenceReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetOperationId() { - if err := oprot.WriteFieldBegin(ctx, "operationId", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:operationId: ", p), err) } - if err := p.OperationId.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.OperationId), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:operationId: ", p), err) } - } - return err -} - -func (p *TGetCrossReferenceReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:sessionConf: ", p), err) } - } - return err -} - func (p *TGetCrossReferenceReq) Equals(other *TGetCrossReferenceReq) bool { if p == other { return true @@ -23666,8 +18556,6 @@ func (p *TGetCrossReferenceReq) Equals(other *TGetCrossReferenceReq) bool { } if !p.GetDirectResults.Equals(other.GetDirectResults) { return false } if p.RunAsync != other.RunAsync { return false } - if !p.OperationId.Equals(other.OperationId) { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -24062,11 +18950,7 @@ func (p *TGetOperationStatusReq) Validate() error { // - OperationState // - SqlState // - ErrorCode -// - ErrorMessage: The long-form error message. This is deprecated in DBR, -// however servers expecting to serve to Simba drivers should be careful -// to keep returning this as these drivers still depend on it. -// -// Clients should avoid using this field and prefer displayMessage and diagnosticInfo if given. +// - ErrorMessage // - TaskStatus // - OperationStarted // - OperationCompleted @@ -24076,10 +18960,6 @@ func (p *TGetOperationStatusReq) Validate() error { // - DisplayMessage // - DiagnosticInfo // - ErrorDetailsJson -// - ResponseValidation -// - IdempotencyType -// - StatementTimeout -// - StatementTimeoutLevel type TGetOperationStatusResp struct { Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` OperationState *TOperationState `thrift:"operationState,2" db:"operationState" json:"operationState,omitempty"` @@ -24096,11 +18976,6 @@ type TGetOperationStatusResp struct { DisplayMessage *string `thrift:"displayMessage,1281" db:"displayMessage" json:"displayMessage,omitempty"` DiagnosticInfo *string `thrift:"diagnosticInfo,1282" db:"diagnosticInfo" json:"diagnosticInfo,omitempty"` ErrorDetailsJson *string `thrift:"errorDetailsJson,1283" db:"errorDetailsJson" json:"errorDetailsJson,omitempty"` - // unused fields # 1284 to 3328 - ResponseValidation []byte `thrift:"responseValidation,3329" db:"responseValidation" json:"responseValidation,omitempty"` - IdempotencyType *TOperationIdempotencyType `thrift:"idempotencyType,3330" db:"idempotencyType" json:"idempotencyType,omitempty"` - StatementTimeout *int64 `thrift:"statementTimeout,3331" db:"statementTimeout" json:"statementTimeout,omitempty"` - StatementTimeoutLevel *TOperationTimeoutLevel `thrift:"statementTimeoutLevel,3332" db:"statementTimeoutLevel" json:"statementTimeoutLevel,omitempty"` } func NewTGetOperationStatusResp() *TGetOperationStatusResp { @@ -24205,32 +19080,6 @@ func (p *TGetOperationStatusResp) GetErrorDetailsJson() string { } return *p.ErrorDetailsJson } -var TGetOperationStatusResp_ResponseValidation_DEFAULT []byte - -func (p *TGetOperationStatusResp) GetResponseValidation() []byte { - return p.ResponseValidation -} -var TGetOperationStatusResp_IdempotencyType_DEFAULT TOperationIdempotencyType -func (p *TGetOperationStatusResp) GetIdempotencyType() TOperationIdempotencyType { - if !p.IsSetIdempotencyType() { - return TGetOperationStatusResp_IdempotencyType_DEFAULT - } -return *p.IdempotencyType -} -var TGetOperationStatusResp_StatementTimeout_DEFAULT int64 -func (p *TGetOperationStatusResp) GetStatementTimeout() int64 { - if !p.IsSetStatementTimeout() { - return TGetOperationStatusResp_StatementTimeout_DEFAULT - } -return *p.StatementTimeout -} -var TGetOperationStatusResp_StatementTimeoutLevel_DEFAULT TOperationTimeoutLevel -func (p *TGetOperationStatusResp) GetStatementTimeoutLevel() TOperationTimeoutLevel { - if !p.IsSetStatementTimeoutLevel() { - return TGetOperationStatusResp_StatementTimeoutLevel_DEFAULT - } -return *p.StatementTimeoutLevel -} func (p *TGetOperationStatusResp) IsSetStatus() bool { return p.Status != nil } @@ -24287,22 +19136,6 @@ func (p *TGetOperationStatusResp) IsSetErrorDetailsJson() bool { return p.ErrorDetailsJson != nil } -func (p *TGetOperationStatusResp) IsSetResponseValidation() bool { - return p.ResponseValidation != nil -} - -func (p *TGetOperationStatusResp) IsSetIdempotencyType() bool { - return p.IdempotencyType != nil -} - -func (p *TGetOperationStatusResp) IsSetStatementTimeout() bool { - return p.StatementTimeout != nil -} - -func (p *TGetOperationStatusResp) IsSetStatementTimeoutLevel() bool { - return p.StatementTimeoutLevel != nil -} - func (p *TGetOperationStatusResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -24458,46 +19291,6 @@ func (p *TGetOperationStatusResp) Read(ctx context.Context, iprot thrift.TProtoc return err } } - case 3329: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3331: - if fieldTypeId == thrift.I64 { - if err := p.ReadField3331(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3332: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3332(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -24641,44 +19434,6 @@ func (p *TGetOperationStatusResp) ReadField1283(ctx context.Context, iprot thri return nil } -func (p *TGetOperationStatusResp) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ResponseValidation = v -} - return nil -} - -func (p *TGetOperationStatusResp) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3330: ", err) -} else { - temp := TOperationIdempotencyType(v) - p.IdempotencyType = &temp -} - return nil -} - -func (p *TGetOperationStatusResp) ReadField3331(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3331: ", err) -} else { - p.StatementTimeout = &v -} - return nil -} - -func (p *TGetOperationStatusResp) ReadField3332(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3332: ", err) -} else { - temp := TOperationTimeoutLevel(v) - p.StatementTimeoutLevel = &temp -} - return nil -} - func (p *TGetOperationStatusResp) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetOperationStatusResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -24697,10 +19452,6 @@ func (p *TGetOperationStatusResp) Write(ctx context.Context, oprot thrift.TProto if err := p.writeField1281(ctx, oprot); err != nil { return err } if err := p.writeField1282(ctx, oprot); err != nil { return err } if err := p.writeField1283(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } - if err := p.writeField3331(ctx, oprot); err != nil { return err } - if err := p.writeField3332(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -24877,54 +19628,6 @@ func (p *TGetOperationStatusResp) writeField1283(ctx context.Context, oprot thri return err } -func (p *TGetOperationStatusResp) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResponseValidation() { - if err := oprot.WriteFieldBegin(ctx, "responseValidation", thrift.STRING, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:responseValidation: ", p), err) } - if err := oprot.WriteBinary(ctx, p.ResponseValidation); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.responseValidation (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:responseValidation: ", p), err) } - } - return err -} - -func (p *TGetOperationStatusResp) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIdempotencyType() { - if err := oprot.WriteFieldBegin(ctx, "idempotencyType", thrift.I32, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:idempotencyType: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.IdempotencyType)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.idempotencyType (3330) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:idempotencyType: ", p), err) } - } - return err -} - -func (p *TGetOperationStatusResp) writeField3331(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStatementTimeout() { - if err := oprot.WriteFieldBegin(ctx, "statementTimeout", thrift.I64, 3331); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3331:statementTimeout: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.StatementTimeout)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.statementTimeout (3331) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3331:statementTimeout: ", p), err) } - } - return err -} - -func (p *TGetOperationStatusResp) writeField3332(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetStatementTimeoutLevel() { - if err := oprot.WriteFieldBegin(ctx, "statementTimeoutLevel", thrift.I32, 3332); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3332:statementTimeoutLevel: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.StatementTimeoutLevel)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.statementTimeoutLevel (3332) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3332:statementTimeoutLevel: ", p), err) } - } - return err -} - func (p *TGetOperationStatusResp) Equals(other *TGetOperationStatusResp) bool { if p == other { return true @@ -24993,36 +19696,17 @@ func (p *TGetOperationStatusResp) Equals(other *TGetOperationStatusResp) bool { } if (*p.DisplayMessage) != (*other.DisplayMessage) { return false } } - if p.DiagnosticInfo != other.DiagnosticInfo { - if p.DiagnosticInfo == nil || other.DiagnosticInfo == nil { - return false - } - if (*p.DiagnosticInfo) != (*other.DiagnosticInfo) { return false } - } - if p.ErrorDetailsJson != other.ErrorDetailsJson { - if p.ErrorDetailsJson == nil || other.ErrorDetailsJson == nil { - return false - } - if (*p.ErrorDetailsJson) != (*other.ErrorDetailsJson) { return false } - } - if bytes.Compare(p.ResponseValidation, other.ResponseValidation) != 0 { return false } - if p.IdempotencyType != other.IdempotencyType { - if p.IdempotencyType == nil || other.IdempotencyType == nil { - return false - } - if (*p.IdempotencyType) != (*other.IdempotencyType) { return false } - } - if p.StatementTimeout != other.StatementTimeout { - if p.StatementTimeout == nil || other.StatementTimeout == nil { + if p.DiagnosticInfo != other.DiagnosticInfo { + if p.DiagnosticInfo == nil || other.DiagnosticInfo == nil { return false } - if (*p.StatementTimeout) != (*other.StatementTimeout) { return false } + if (*p.DiagnosticInfo) != (*other.DiagnosticInfo) { return false } } - if p.StatementTimeoutLevel != other.StatementTimeoutLevel { - if p.StatementTimeoutLevel == nil || other.StatementTimeoutLevel == nil { + if p.ErrorDetailsJson != other.ErrorDetailsJson { + if p.ErrorDetailsJson == nil || other.ErrorDetailsJson == nil { return false } - if (*p.StatementTimeoutLevel) != (*other.StatementTimeoutLevel) { return false } + if (*p.ErrorDetailsJson) != (*other.ErrorDetailsJson) { return false } } return true } @@ -25039,13 +19723,8 @@ func (p *TGetOperationStatusResp) Validate() error { } // Attributes: // - OperationHandle -// - ExecutionVersion -// - ReplacedByNextAttempt type TCancelOperationReq struct { OperationHandle *TOperationHandle `thrift:"operationHandle,1,required" db:"operationHandle" json:"operationHandle"` - // unused fields # 2 to 3328 - ExecutionVersion *int16 `thrift:"executionVersion,3329" db:"executionVersion" json:"executionVersion,omitempty"` - ReplacedByNextAttempt *bool `thrift:"replacedByNextAttempt,3330" db:"replacedByNextAttempt" json:"replacedByNextAttempt,omitempty"` } func NewTCancelOperationReq() *TCancelOperationReq { @@ -25059,32 +19738,10 @@ func (p *TCancelOperationReq) GetOperationHandle() *TOperationHandle { } return p.OperationHandle } -var TCancelOperationReq_ExecutionVersion_DEFAULT int16 -func (p *TCancelOperationReq) GetExecutionVersion() int16 { - if !p.IsSetExecutionVersion() { - return TCancelOperationReq_ExecutionVersion_DEFAULT - } -return *p.ExecutionVersion -} -var TCancelOperationReq_ReplacedByNextAttempt_DEFAULT bool -func (p *TCancelOperationReq) GetReplacedByNextAttempt() bool { - if !p.IsSetReplacedByNextAttempt() { - return TCancelOperationReq_ReplacedByNextAttempt_DEFAULT - } -return *p.ReplacedByNextAttempt -} func (p *TCancelOperationReq) IsSetOperationHandle() bool { return p.OperationHandle != nil } -func (p *TCancelOperationReq) IsSetExecutionVersion() bool { - return p.ExecutionVersion != nil -} - -func (p *TCancelOperationReq) IsSetReplacedByNextAttempt() bool { - return p.ReplacedByNextAttempt != nil -} - func (p *TCancelOperationReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -25110,26 +19767,6 @@ func (p *TCancelOperationReq) Read(ctx context.Context, iprot thrift.TProtocol) return err } } - case 3329: - if fieldTypeId == thrift.I16 { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3330(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -25156,31 +19793,11 @@ func (p *TCancelOperationReq) ReadField1(ctx context.Context, iprot thrift.TPro return nil } -func (p *TCancelOperationReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI16(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ExecutionVersion = &v -} - return nil -} - -func (p *TCancelOperationReq) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3330: ", err) -} else { - p.ReplacedByNextAttempt = &v -} - return nil -} - func (p *TCancelOperationReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TCancelOperationReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -25200,30 +19817,6 @@ func (p *TCancelOperationReq) writeField1(ctx context.Context, oprot thrift.TPro return err } -func (p *TCancelOperationReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetExecutionVersion() { - if err := oprot.WriteFieldBegin(ctx, "executionVersion", thrift.I16, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:executionVersion: ", p), err) } - if err := oprot.WriteI16(ctx, int16(*p.ExecutionVersion)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.executionVersion (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:executionVersion: ", p), err) } - } - return err -} - -func (p *TCancelOperationReq) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetReplacedByNextAttempt() { - if err := oprot.WriteFieldBegin(ctx, "replacedByNextAttempt", thrift.BOOL, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:replacedByNextAttempt: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.ReplacedByNextAttempt)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.replacedByNextAttempt (3330) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:replacedByNextAttempt: ", p), err) } - } - return err -} - func (p *TCancelOperationReq) Equals(other *TCancelOperationReq) bool { if p == other { return true @@ -25231,18 +19824,6 @@ func (p *TCancelOperationReq) Equals(other *TCancelOperationReq) bool { return false } if !p.OperationHandle.Equals(other.OperationHandle) { return false } - if p.ExecutionVersion != other.ExecutionVersion { - if p.ExecutionVersion == nil || other.ExecutionVersion == nil { - return false - } - if (*p.ExecutionVersion) != (*other.ExecutionVersion) { return false } - } - if p.ReplacedByNextAttempt != other.ReplacedByNextAttempt { - if p.ReplacedByNextAttempt == nil || other.ReplacedByNextAttempt == nil { - return false - } - if (*p.ReplacedByNextAttempt) != (*other.ReplacedByNextAttempt) { return false } - } return true } @@ -25374,17 +19955,12 @@ func (p *TCancelOperationResp) Validate() error { } // Attributes: // - OperationHandle -// - CloseReason type TCloseOperationReq struct { OperationHandle *TOperationHandle `thrift:"operationHandle,1,required" db:"operationHandle" json:"operationHandle"` - // unused fields # 2 to 3328 - CloseReason TDBSqlCloseOperationReason `thrift:"closeReason,3329" db:"closeReason" json:"closeReason"` } func NewTCloseOperationReq() *TCloseOperationReq { - return &TCloseOperationReq{ -CloseReason: 0, -} + return &TCloseOperationReq{} } var TCloseOperationReq_OperationHandle_DEFAULT *TOperationHandle @@ -25394,19 +19970,10 @@ func (p *TCloseOperationReq) GetOperationHandle() *TOperationHandle { } return p.OperationHandle } -var TCloseOperationReq_CloseReason_DEFAULT TDBSqlCloseOperationReason = 0 - -func (p *TCloseOperationReq) GetCloseReason() TDBSqlCloseOperationReason { - return p.CloseReason -} func (p *TCloseOperationReq) IsSetOperationHandle() bool { return p.OperationHandle != nil } -func (p *TCloseOperationReq) IsSetCloseReason() bool { - return p.CloseReason != TCloseOperationReq_CloseReason_DEFAULT -} - func (p *TCloseOperationReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -25432,16 +19999,6 @@ func (p *TCloseOperationReq) Read(ctx context.Context, iprot thrift.TProtocol) e return err } } - case 3329: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -25468,22 +20025,11 @@ func (p *TCloseOperationReq) ReadField1(ctx context.Context, iprot thrift.TProt return nil } -func (p *TCloseOperationReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - temp := TDBSqlCloseOperationReason(v) - p.CloseReason = temp -} - return nil -} - func (p *TCloseOperationReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TCloseOperationReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -25503,18 +20049,6 @@ func (p *TCloseOperationReq) writeField1(ctx context.Context, oprot thrift.TProt return err } -func (p *TCloseOperationReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCloseReason() { - if err := oprot.WriteFieldBegin(ctx, "closeReason", thrift.I32, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:closeReason: ", p), err) } - if err := oprot.WriteI32(ctx, int32(p.CloseReason)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.closeReason (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:closeReason: ", p), err) } - } - return err -} - func (p *TCloseOperationReq) Equals(other *TCloseOperationReq) bool { if p == other { return true @@ -25522,7 +20056,6 @@ func (p *TCloseOperationReq) Equals(other *TCloseOperationReq) bool { return false } if !p.OperationHandle.Equals(other.OperationHandle) { return false } - if p.CloseReason != other.CloseReason { return false } return true } @@ -25654,11 +20187,8 @@ func (p *TCloseOperationResp) Validate() error { } // Attributes: // - OperationHandle -// - IncludeCloudResultFiles type TGetResultSetMetadataReq struct { OperationHandle *TOperationHandle `thrift:"operationHandle,1,required" db:"operationHandle" json:"operationHandle"` - // unused fields # 2 to 3328 - IncludeCloudResultFiles *bool `thrift:"includeCloudResultFiles,3329" db:"includeCloudResultFiles" json:"includeCloudResultFiles,omitempty"` } func NewTGetResultSetMetadataReq() *TGetResultSetMetadataReq { @@ -25672,21 +20202,10 @@ func (p *TGetResultSetMetadataReq) GetOperationHandle() *TOperationHandle { } return p.OperationHandle } -var TGetResultSetMetadataReq_IncludeCloudResultFiles_DEFAULT bool -func (p *TGetResultSetMetadataReq) GetIncludeCloudResultFiles() bool { - if !p.IsSetIncludeCloudResultFiles() { - return TGetResultSetMetadataReq_IncludeCloudResultFiles_DEFAULT - } -return *p.IncludeCloudResultFiles -} func (p *TGetResultSetMetadataReq) IsSetOperationHandle() bool { return p.OperationHandle != nil } -func (p *TGetResultSetMetadataReq) IsSetIncludeCloudResultFiles() bool { - return p.IncludeCloudResultFiles != nil -} - func (p *TGetResultSetMetadataReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -25712,16 +20231,6 @@ func (p *TGetResultSetMetadataReq) Read(ctx context.Context, iprot thrift.TProto return err } } - case 3329: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -25748,21 +20257,11 @@ func (p *TGetResultSetMetadataReq) ReadField1(ctx context.Context, iprot thrift return nil } -func (p *TGetResultSetMetadataReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.IncludeCloudResultFiles = &v -} - return nil -} - func (p *TGetResultSetMetadataReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetResultSetMetadataReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -25782,18 +20281,6 @@ func (p *TGetResultSetMetadataReq) writeField1(ctx context.Context, oprot thrift return err } -func (p *TGetResultSetMetadataReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIncludeCloudResultFiles() { - if err := oprot.WriteFieldBegin(ctx, "includeCloudResultFiles", thrift.BOOL, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:includeCloudResultFiles: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.IncludeCloudResultFiles)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.includeCloudResultFiles (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:includeCloudResultFiles: ", p), err) } - } - return err -} - func (p *TGetResultSetMetadataReq) Equals(other *TGetResultSetMetadataReq) bool { if p == other { return true @@ -25801,12 +20288,6 @@ func (p *TGetResultSetMetadataReq) Equals(other *TGetResultSetMetadataReq) bool return false } if !p.OperationHandle.Equals(other.OperationHandle) { return false } - if p.IncludeCloudResultFiles != other.IncludeCloudResultFiles { - if p.IncludeCloudResultFiles == nil || other.IncludeCloudResultFiles == nil { - return false - } - if (*p.IncludeCloudResultFiles) != (*other.IncludeCloudResultFiles) { return false } - } return true } @@ -25830,18 +20311,6 @@ func (p *TGetResultSetMetadataReq) Validate() error { // - UncompressedBytes // - CompressedBytes // - IsStagingOperation -// - ReasonForNoCloudFetch -// - ResultFiles -// - ManifestFile -// - ManifestFileFormat -// - CacheLookupLatency -// - RemoteCacheMissReason -// - FetchDisposition -// - RemoteResultCacheEnabled -// - IsServerless -// - ResultDataFormat -// - TruncatedByThriftLimit -// - ResultByteLimit type TGetResultSetMetadataResp struct { Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` Schema *TTableSchema `thrift:"schema,2" db:"schema" json:"schema,omitempty"` @@ -25853,20 +20322,6 @@ type TGetResultSetMetadataResp struct { UncompressedBytes *int64 `thrift:"uncompressedBytes,1285" db:"uncompressedBytes" json:"uncompressedBytes,omitempty"` CompressedBytes *int64 `thrift:"compressedBytes,1286" db:"compressedBytes" json:"compressedBytes,omitempty"` IsStagingOperation *bool `thrift:"isStagingOperation,1287" db:"isStagingOperation" json:"isStagingOperation,omitempty"` - // unused fields # 1288 to 3328 - ReasonForNoCloudFetch *TCloudFetchDisabledReason `thrift:"reasonForNoCloudFetch,3329" db:"reasonForNoCloudFetch" json:"reasonForNoCloudFetch,omitempty"` - ResultFiles []*TDBSqlCloudResultFile `thrift:"resultFiles,3330" db:"resultFiles" json:"resultFiles,omitempty"` - ManifestFile *string `thrift:"manifestFile,3331" db:"manifestFile" json:"manifestFile,omitempty"` - ManifestFileFormat *TDBSqlManifestFileFormat `thrift:"manifestFileFormat,3332" db:"manifestFileFormat" json:"manifestFileFormat,omitempty"` - CacheLookupLatency *int64 `thrift:"cacheLookupLatency,3333" db:"cacheLookupLatency" json:"cacheLookupLatency,omitempty"` - RemoteCacheMissReason *string `thrift:"remoteCacheMissReason,3334" db:"remoteCacheMissReason" json:"remoteCacheMissReason,omitempty"` - FetchDisposition *TDBSqlFetchDisposition `thrift:"fetchDisposition,3335" db:"fetchDisposition" json:"fetchDisposition,omitempty"` - RemoteResultCacheEnabled *bool `thrift:"remoteResultCacheEnabled,3336" db:"remoteResultCacheEnabled" json:"remoteResultCacheEnabled,omitempty"` - IsServerless *bool `thrift:"isServerless,3337" db:"isServerless" json:"isServerless,omitempty"` - // unused fields # 3338 to 3343 - ResultDataFormat *TDBSqlResultFormat `thrift:"resultDataFormat,3344" db:"resultDataFormat" json:"resultDataFormat,omitempty"` - TruncatedByThriftLimit *bool `thrift:"truncatedByThriftLimit,3345" db:"truncatedByThriftLimit" json:"truncatedByThriftLimit,omitempty"` - ResultByteLimit *int64 `thrift:"resultByteLimit,3346" db:"resultByteLimit" json:"resultByteLimit,omitempty"` } func NewTGetResultSetMetadataResp() *TGetResultSetMetadataResp { @@ -25934,88 +20389,6 @@ func (p *TGetResultSetMetadataResp) GetIsStagingOperation() bool { } return *p.IsStagingOperation } -var TGetResultSetMetadataResp_ReasonForNoCloudFetch_DEFAULT TCloudFetchDisabledReason -func (p *TGetResultSetMetadataResp) GetReasonForNoCloudFetch() TCloudFetchDisabledReason { - if !p.IsSetReasonForNoCloudFetch() { - return TGetResultSetMetadataResp_ReasonForNoCloudFetch_DEFAULT - } -return *p.ReasonForNoCloudFetch -} -var TGetResultSetMetadataResp_ResultFiles_DEFAULT []*TDBSqlCloudResultFile - -func (p *TGetResultSetMetadataResp) GetResultFiles() []*TDBSqlCloudResultFile { - return p.ResultFiles -} -var TGetResultSetMetadataResp_ManifestFile_DEFAULT string -func (p *TGetResultSetMetadataResp) GetManifestFile() string { - if !p.IsSetManifestFile() { - return TGetResultSetMetadataResp_ManifestFile_DEFAULT - } -return *p.ManifestFile -} -var TGetResultSetMetadataResp_ManifestFileFormat_DEFAULT TDBSqlManifestFileFormat -func (p *TGetResultSetMetadataResp) GetManifestFileFormat() TDBSqlManifestFileFormat { - if !p.IsSetManifestFileFormat() { - return TGetResultSetMetadataResp_ManifestFileFormat_DEFAULT - } -return *p.ManifestFileFormat -} -var TGetResultSetMetadataResp_CacheLookupLatency_DEFAULT int64 -func (p *TGetResultSetMetadataResp) GetCacheLookupLatency() int64 { - if !p.IsSetCacheLookupLatency() { - return TGetResultSetMetadataResp_CacheLookupLatency_DEFAULT - } -return *p.CacheLookupLatency -} -var TGetResultSetMetadataResp_RemoteCacheMissReason_DEFAULT string -func (p *TGetResultSetMetadataResp) GetRemoteCacheMissReason() string { - if !p.IsSetRemoteCacheMissReason() { - return TGetResultSetMetadataResp_RemoteCacheMissReason_DEFAULT - } -return *p.RemoteCacheMissReason -} -var TGetResultSetMetadataResp_FetchDisposition_DEFAULT TDBSqlFetchDisposition -func (p *TGetResultSetMetadataResp) GetFetchDisposition() TDBSqlFetchDisposition { - if !p.IsSetFetchDisposition() { - return TGetResultSetMetadataResp_FetchDisposition_DEFAULT - } -return *p.FetchDisposition -} -var TGetResultSetMetadataResp_RemoteResultCacheEnabled_DEFAULT bool -func (p *TGetResultSetMetadataResp) GetRemoteResultCacheEnabled() bool { - if !p.IsSetRemoteResultCacheEnabled() { - return TGetResultSetMetadataResp_RemoteResultCacheEnabled_DEFAULT - } -return *p.RemoteResultCacheEnabled -} -var TGetResultSetMetadataResp_IsServerless_DEFAULT bool -func (p *TGetResultSetMetadataResp) GetIsServerless() bool { - if !p.IsSetIsServerless() { - return TGetResultSetMetadataResp_IsServerless_DEFAULT - } -return *p.IsServerless -} -var TGetResultSetMetadataResp_ResultDataFormat_DEFAULT *TDBSqlResultFormat -func (p *TGetResultSetMetadataResp) GetResultDataFormat() *TDBSqlResultFormat { - if !p.IsSetResultDataFormat() { - return TGetResultSetMetadataResp_ResultDataFormat_DEFAULT - } -return p.ResultDataFormat -} -var TGetResultSetMetadataResp_TruncatedByThriftLimit_DEFAULT bool -func (p *TGetResultSetMetadataResp) GetTruncatedByThriftLimit() bool { - if !p.IsSetTruncatedByThriftLimit() { - return TGetResultSetMetadataResp_TruncatedByThriftLimit_DEFAULT - } -return *p.TruncatedByThriftLimit -} -var TGetResultSetMetadataResp_ResultByteLimit_DEFAULT int64 -func (p *TGetResultSetMetadataResp) GetResultByteLimit() int64 { - if !p.IsSetResultByteLimit() { - return TGetResultSetMetadataResp_ResultByteLimit_DEFAULT - } -return *p.ResultByteLimit -} func (p *TGetResultSetMetadataResp) IsSetStatus() bool { return p.Status != nil } @@ -26052,54 +20425,6 @@ func (p *TGetResultSetMetadataResp) IsSetIsStagingOperation() bool { return p.IsStagingOperation != nil } -func (p *TGetResultSetMetadataResp) IsSetReasonForNoCloudFetch() bool { - return p.ReasonForNoCloudFetch != nil -} - -func (p *TGetResultSetMetadataResp) IsSetResultFiles() bool { - return p.ResultFiles != nil -} - -func (p *TGetResultSetMetadataResp) IsSetManifestFile() bool { - return p.ManifestFile != nil -} - -func (p *TGetResultSetMetadataResp) IsSetManifestFileFormat() bool { - return p.ManifestFileFormat != nil -} - -func (p *TGetResultSetMetadataResp) IsSetCacheLookupLatency() bool { - return p.CacheLookupLatency != nil -} - -func (p *TGetResultSetMetadataResp) IsSetRemoteCacheMissReason() bool { - return p.RemoteCacheMissReason != nil -} - -func (p *TGetResultSetMetadataResp) IsSetFetchDisposition() bool { - return p.FetchDisposition != nil -} - -func (p *TGetResultSetMetadataResp) IsSetRemoteResultCacheEnabled() bool { - return p.RemoteResultCacheEnabled != nil -} - -func (p *TGetResultSetMetadataResp) IsSetIsServerless() bool { - return p.IsServerless != nil -} - -func (p *TGetResultSetMetadataResp) IsSetResultDataFormat() bool { - return p.ResultDataFormat != nil -} - -func (p *TGetResultSetMetadataResp) IsSetTruncatedByThriftLimit() bool { - return p.TruncatedByThriftLimit != nil -} - -func (p *TGetResultSetMetadataResp) IsSetResultByteLimit() bool { - return p.ResultByteLimit != nil -} - func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -26114,120 +20439,20 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt } if fieldTypeId == thrift.STOP { break; } switch fieldId { - case 1: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField1(ctx, iprot); err != nil { - return err - } - issetStatus = true - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 2: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField2(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1281: - if fieldTypeId == thrift.I32 { - if err := p.ReadField1281(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1282: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1282(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1283: - if fieldTypeId == thrift.STRING { - if err := p.ReadField1283(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1284: - if fieldTypeId == thrift.I32 { - if err := p.ReadField1284(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1285: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1285(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1286: - if fieldTypeId == thrift.I64 { - if err := p.ReadField1286(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 1287: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField1287(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3329: - if fieldTypeId == thrift.I32 { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3330: - if fieldTypeId == thrift.LIST { - if err := p.ReadField3330(ctx, iprot); err != nil { + case 1: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField1(ctx, iprot); err != nil { return err } + issetStatus = true } else { if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err } } - case 3331: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3331(ctx, iprot); err != nil { + case 2: + if fieldTypeId == thrift.STRUCT { + if err := p.ReadField2(ctx, iprot); err != nil { return err } } else { @@ -26235,9 +20460,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3332: + case 1281: if fieldTypeId == thrift.I32 { - if err := p.ReadField3332(ctx, iprot); err != nil { + if err := p.ReadField1281(ctx, iprot); err != nil { return err } } else { @@ -26245,9 +20470,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3333: - if fieldTypeId == thrift.I64 { - if err := p.ReadField3333(ctx, iprot); err != nil { + case 1282: + if fieldTypeId == thrift.BOOL { + if err := p.ReadField1282(ctx, iprot); err != nil { return err } } else { @@ -26255,9 +20480,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3334: + case 1283: if fieldTypeId == thrift.STRING { - if err := p.ReadField3334(ctx, iprot); err != nil { + if err := p.ReadField1283(ctx, iprot); err != nil { return err } } else { @@ -26265,19 +20490,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3335: + case 1284: if fieldTypeId == thrift.I32 { - if err := p.ReadField3335(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3336: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3336(ctx, iprot); err != nil { + if err := p.ReadField1284(ctx, iprot); err != nil { return err } } else { @@ -26285,9 +20500,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3337: - if fieldTypeId == thrift.BOOL { - if err := p.ReadField3337(ctx, iprot); err != nil { + case 1285: + if fieldTypeId == thrift.I64 { + if err := p.ReadField1285(ctx, iprot); err != nil { return err } } else { @@ -26295,9 +20510,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3344: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3344(ctx, iprot); err != nil { + case 1286: + if fieldTypeId == thrift.I64 { + if err := p.ReadField1286(ctx, iprot); err != nil { return err } } else { @@ -26305,19 +20520,9 @@ func (p *TGetResultSetMetadataResp) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3345: + case 1287: if fieldTypeId == thrift.BOOL { - if err := p.ReadField3345(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } - case 3346: - if fieldTypeId == thrift.I64 { - if err := p.ReadField3346(ctx, iprot); err != nil { + if err := p.ReadField1287(ctx, iprot); err != nil { return err } } else { @@ -26424,127 +20629,6 @@ func (p *TGetResultSetMetadataResp) ReadField1287(ctx context.Context, iprot th return nil } -func (p *TGetResultSetMetadataResp) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - temp := TCloudFetchDisabledReason(v) - p.ReasonForNoCloudFetch = &temp -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3330(ctx context.Context, iprot thrift.TProtocol) error { - _, size, err := iprot.ReadListBegin(ctx) - if err != nil { - return thrift.PrependError("error reading list begin: ", err) - } - tSlice := make([]*TDBSqlCloudResultFile, 0, size) - p.ResultFiles = tSlice - for i := 0; i < size; i ++ { - _elem86 := &TDBSqlCloudResultFile{} - if err := _elem86.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem86), err) - } - p.ResultFiles = append(p.ResultFiles, _elem86) - } - if err := iprot.ReadListEnd(ctx); err != nil { - return thrift.PrependError("error reading list end: ", err) - } - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3331(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3331: ", err) -} else { - p.ManifestFile = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3332(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3332: ", err) -} else { - temp := TDBSqlManifestFileFormat(v) - p.ManifestFileFormat = &temp -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3333(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3333: ", err) -} else { - p.CacheLookupLatency = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3334(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadString(ctx); err != nil { - return thrift.PrependError("error reading field 3334: ", err) -} else { - p.RemoteCacheMissReason = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3335(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI32(ctx); err != nil { - return thrift.PrependError("error reading field 3335: ", err) -} else { - temp := TDBSqlFetchDisposition(v) - p.FetchDisposition = &temp -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3336(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3336: ", err) -} else { - p.RemoteResultCacheEnabled = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3337(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3337: ", err) -} else { - p.IsServerless = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3344(ctx context.Context, iprot thrift.TProtocol) error { - p.ResultDataFormat = &TDBSqlResultFormat{} - if err := p.ResultDataFormat.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.ResultDataFormat), err) - } - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3345(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBool(ctx); err != nil { - return thrift.PrependError("error reading field 3345: ", err) -} else { - p.TruncatedByThriftLimit = &v -} - return nil -} - -func (p *TGetResultSetMetadataResp) ReadField3346(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadI64(ctx); err != nil { - return thrift.PrependError("error reading field 3346: ", err) -} else { - p.ResultByteLimit = &v -} - return nil -} - func (p *TGetResultSetMetadataResp) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetResultSetMetadataResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -26558,284 +20642,118 @@ func (p *TGetResultSetMetadataResp) Write(ctx context.Context, oprot thrift.TPro if err := p.writeField1285(ctx, oprot); err != nil { return err } if err := p.writeField1286(ctx, oprot); err != nil { return err } if err := p.writeField1287(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } - if err := p.writeField3330(ctx, oprot); err != nil { return err } - if err := p.writeField3331(ctx, oprot); err != nil { return err } - if err := p.writeField3332(ctx, oprot); err != nil { return err } - if err := p.writeField3333(ctx, oprot); err != nil { return err } - if err := p.writeField3334(ctx, oprot); err != nil { return err } - if err := p.writeField3335(ctx, oprot); err != nil { return err } - if err := p.writeField3336(ctx, oprot); err != nil { return err } - if err := p.writeField3337(ctx, oprot); err != nil { return err } - if err := p.writeField3344(ctx, oprot); err != nil { return err } - if err := p.writeField3345(ctx, oprot); err != nil { return err } - if err := p.writeField3346(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } - if err := oprot.WriteStructEnd(ctx); err != nil { - return thrift.PrependError("write struct stop error: ", err) } - return nil -} - -func (p *TGetResultSetMetadataResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { - if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } - if err := p.Status.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } - return err -} - -func (p *TGetResultSetMetadataResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSchema() { - if err := oprot.WriteFieldBegin(ctx, "schema", thrift.STRUCT, 2); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:schema: ", p), err) } - if err := p.Schema.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Schema), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 2:schema: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultFormat() { - if err := oprot.WriteFieldBegin(ctx, "resultFormat", thrift.I32, 1281); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:resultFormat: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ResultFormat)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.resultFormat (1281) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:resultFormat: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetLz4Compressed() { - if err := oprot.WriteFieldBegin(ctx, "lz4Compressed", thrift.BOOL, 1282); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:lz4Compressed: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.Lz4Compressed)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.lz4Compressed (1282) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:lz4Compressed: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1283(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetArrowSchema() { - if err := oprot.WriteFieldBegin(ctx, "arrowSchema", thrift.STRING, 1283); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1283:arrowSchema: ", p), err) } - if err := oprot.WriteBinary(ctx, p.ArrowSchema); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.arrowSchema (1283) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1283:arrowSchema: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCacheLookupResult_() { - if err := oprot.WriteFieldBegin(ctx, "cacheLookupResult", thrift.I32, 1284); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:cacheLookupResult: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.CacheLookupResult_)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.cacheLookupResult (1284) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:cacheLookupResult: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetUncompressedBytes() { - if err := oprot.WriteFieldBegin(ctx, "uncompressedBytes", thrift.I64, 1285); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:uncompressedBytes: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.UncompressedBytes)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.uncompressedBytes (1285) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:uncompressedBytes: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1286(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCompressedBytes() { - if err := oprot.WriteFieldBegin(ctx, "compressedBytes", thrift.I64, 1286); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1286:compressedBytes: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.CompressedBytes)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.compressedBytes (1286) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1286:compressedBytes: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField1287(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIsStagingOperation() { - if err := oprot.WriteFieldBegin(ctx, "isStagingOperation", thrift.BOOL, 1287); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 1287:isStagingOperation: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.IsStagingOperation)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.isStagingOperation (1287) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 1287:isStagingOperation: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetReasonForNoCloudFetch() { - if err := oprot.WriteFieldBegin(ctx, "reasonForNoCloudFetch", thrift.I32, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:reasonForNoCloudFetch: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ReasonForNoCloudFetch)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.reasonForNoCloudFetch (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:reasonForNoCloudFetch: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField3330(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultFiles() { - if err := oprot.WriteFieldBegin(ctx, "resultFiles", thrift.LIST, 3330); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3330:resultFiles: ", p), err) } - if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.ResultFiles)); err != nil { - return thrift.PrependError("error writing list begin: ", err) - } - for _, v := range p.ResultFiles { - if err := v.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) - } - } - if err := oprot.WriteListEnd(ctx); err != nil { - return thrift.PrependError("error writing list end: ", err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3330:resultFiles: ", p), err) } - } - return err -} - -func (p *TGetResultSetMetadataResp) writeField3331(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetManifestFile() { - if err := oprot.WriteFieldBegin(ctx, "manifestFile", thrift.STRING, 3331); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3331:manifestFile: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.ManifestFile)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.manifestFile (3331) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3331:manifestFile: ", p), err) } - } - return err + if err := oprot.WriteStructEnd(ctx); err != nil { + return thrift.PrependError("write struct stop error: ", err) } + return nil } -func (p *TGetResultSetMetadataResp) writeField3332(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetManifestFileFormat() { - if err := oprot.WriteFieldBegin(ctx, "manifestFileFormat", thrift.I32, 3332); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3332:manifestFileFormat: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.ManifestFileFormat)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.manifestFileFormat (3332) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3332:manifestFileFormat: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { + if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } + if err := p.Status.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) } + if err := oprot.WriteFieldEnd(ctx); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } return err } -func (p *TGetResultSetMetadataResp) writeField3333(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetCacheLookupLatency() { - if err := oprot.WriteFieldBegin(ctx, "cacheLookupLatency", thrift.I64, 3333); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3333:cacheLookupLatency: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.CacheLookupLatency)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.cacheLookupLatency (3333) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetSchema() { + if err := oprot.WriteFieldBegin(ctx, "schema", thrift.STRUCT, 2); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:schema: ", p), err) } + if err := p.Schema.Write(ctx, oprot); err != nil { + return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Schema), err) + } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3333:cacheLookupLatency: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 2:schema: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3334(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRemoteCacheMissReason() { - if err := oprot.WriteFieldBegin(ctx, "remoteCacheMissReason", thrift.STRING, 3334); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3334:remoteCacheMissReason: ", p), err) } - if err := oprot.WriteString(ctx, string(*p.RemoteCacheMissReason)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.remoteCacheMissReason (3334) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1281(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetResultFormat() { + if err := oprot.WriteFieldBegin(ctx, "resultFormat", thrift.I32, 1281); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1281:resultFormat: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.ResultFormat)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.resultFormat (1281) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3334:remoteCacheMissReason: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1281:resultFormat: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3335(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetFetchDisposition() { - if err := oprot.WriteFieldBegin(ctx, "fetchDisposition", thrift.I32, 3335); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3335:fetchDisposition: ", p), err) } - if err := oprot.WriteI32(ctx, int32(*p.FetchDisposition)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.fetchDisposition (3335) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1282(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetLz4Compressed() { + if err := oprot.WriteFieldBegin(ctx, "lz4Compressed", thrift.BOOL, 1282); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1282:lz4Compressed: ", p), err) } + if err := oprot.WriteBool(ctx, bool(*p.Lz4Compressed)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.lz4Compressed (1282) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3335:fetchDisposition: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1282:lz4Compressed: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3336(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetRemoteResultCacheEnabled() { - if err := oprot.WriteFieldBegin(ctx, "remoteResultCacheEnabled", thrift.BOOL, 3336); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3336:remoteResultCacheEnabled: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.RemoteResultCacheEnabled)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.remoteResultCacheEnabled (3336) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1283(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetArrowSchema() { + if err := oprot.WriteFieldBegin(ctx, "arrowSchema", thrift.STRING, 1283); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1283:arrowSchema: ", p), err) } + if err := oprot.WriteBinary(ctx, p.ArrowSchema); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.arrowSchema (1283) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3336:remoteResultCacheEnabled: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1283:arrowSchema: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3337(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetIsServerless() { - if err := oprot.WriteFieldBegin(ctx, "isServerless", thrift.BOOL, 3337); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3337:isServerless: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.IsServerless)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.isServerless (3337) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1284(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetCacheLookupResult_() { + if err := oprot.WriteFieldBegin(ctx, "cacheLookupResult", thrift.I32, 1284); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1284:cacheLookupResult: ", p), err) } + if err := oprot.WriteI32(ctx, int32(*p.CacheLookupResult_)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.cacheLookupResult (1284) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3337:isServerless: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1284:cacheLookupResult: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3344(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultDataFormat() { - if err := oprot.WriteFieldBegin(ctx, "resultDataFormat", thrift.STRUCT, 3344); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3344:resultDataFormat: ", p), err) } - if err := p.ResultDataFormat.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.ResultDataFormat), err) - } +func (p *TGetResultSetMetadataResp) writeField1285(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetUncompressedBytes() { + if err := oprot.WriteFieldBegin(ctx, "uncompressedBytes", thrift.I64, 1285); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1285:uncompressedBytes: ", p), err) } + if err := oprot.WriteI64(ctx, int64(*p.UncompressedBytes)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.uncompressedBytes (1285) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3344:resultDataFormat: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1285:uncompressedBytes: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3345(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetTruncatedByThriftLimit() { - if err := oprot.WriteFieldBegin(ctx, "truncatedByThriftLimit", thrift.BOOL, 3345); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3345:truncatedByThriftLimit: ", p), err) } - if err := oprot.WriteBool(ctx, bool(*p.TruncatedByThriftLimit)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.truncatedByThriftLimit (3345) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1286(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetCompressedBytes() { + if err := oprot.WriteFieldBegin(ctx, "compressedBytes", thrift.I64, 1286); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1286:compressedBytes: ", p), err) } + if err := oprot.WriteI64(ctx, int64(*p.CompressedBytes)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.compressedBytes (1286) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3345:truncatedByThriftLimit: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1286:compressedBytes: ", p), err) } } return err } -func (p *TGetResultSetMetadataResp) writeField3346(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResultByteLimit() { - if err := oprot.WriteFieldBegin(ctx, "resultByteLimit", thrift.I64, 3346); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3346:resultByteLimit: ", p), err) } - if err := oprot.WriteI64(ctx, int64(*p.ResultByteLimit)); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.resultByteLimit (3346) field write error: ", p), err) } +func (p *TGetResultSetMetadataResp) writeField1287(ctx context.Context, oprot thrift.TProtocol) (err error) { + if p.IsSetIsStagingOperation() { + if err := oprot.WriteFieldBegin(ctx, "isStagingOperation", thrift.BOOL, 1287); err != nil { + return thrift.PrependError(fmt.Sprintf("%T write field begin error 1287:isStagingOperation: ", p), err) } + if err := oprot.WriteBool(ctx, bool(*p.IsStagingOperation)); err != nil { + return thrift.PrependError(fmt.Sprintf("%T.isStagingOperation (1287) field write error: ", p), err) } if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3346:resultByteLimit: ", p), err) } + return thrift.PrependError(fmt.Sprintf("%T write field end error 1287:isStagingOperation: ", p), err) } } return err } @@ -26885,72 +20803,6 @@ func (p *TGetResultSetMetadataResp) Equals(other *TGetResultSetMetadataResp) boo } if (*p.IsStagingOperation) != (*other.IsStagingOperation) { return false } } - if p.ReasonForNoCloudFetch != other.ReasonForNoCloudFetch { - if p.ReasonForNoCloudFetch == nil || other.ReasonForNoCloudFetch == nil { - return false - } - if (*p.ReasonForNoCloudFetch) != (*other.ReasonForNoCloudFetch) { return false } - } - if len(p.ResultFiles) != len(other.ResultFiles) { return false } - for i, _tgt := range p.ResultFiles { - _src87 := other.ResultFiles[i] - if !_tgt.Equals(_src87) { return false } - } - if p.ManifestFile != other.ManifestFile { - if p.ManifestFile == nil || other.ManifestFile == nil { - return false - } - if (*p.ManifestFile) != (*other.ManifestFile) { return false } - } - if p.ManifestFileFormat != other.ManifestFileFormat { - if p.ManifestFileFormat == nil || other.ManifestFileFormat == nil { - return false - } - if (*p.ManifestFileFormat) != (*other.ManifestFileFormat) { return false } - } - if p.CacheLookupLatency != other.CacheLookupLatency { - if p.CacheLookupLatency == nil || other.CacheLookupLatency == nil { - return false - } - if (*p.CacheLookupLatency) != (*other.CacheLookupLatency) { return false } - } - if p.RemoteCacheMissReason != other.RemoteCacheMissReason { - if p.RemoteCacheMissReason == nil || other.RemoteCacheMissReason == nil { - return false - } - if (*p.RemoteCacheMissReason) != (*other.RemoteCacheMissReason) { return false } - } - if p.FetchDisposition != other.FetchDisposition { - if p.FetchDisposition == nil || other.FetchDisposition == nil { - return false - } - if (*p.FetchDisposition) != (*other.FetchDisposition) { return false } - } - if p.RemoteResultCacheEnabled != other.RemoteResultCacheEnabled { - if p.RemoteResultCacheEnabled == nil || other.RemoteResultCacheEnabled == nil { - return false - } - if (*p.RemoteResultCacheEnabled) != (*other.RemoteResultCacheEnabled) { return false } - } - if p.IsServerless != other.IsServerless { - if p.IsServerless == nil || other.IsServerless == nil { - return false - } - if (*p.IsServerless) != (*other.IsServerless) { return false } - } - if !p.ResultDataFormat.Equals(other.ResultDataFormat) { return false } - if p.TruncatedByThriftLimit != other.TruncatedByThriftLimit { - if p.TruncatedByThriftLimit == nil || other.TruncatedByThriftLimit == nil { - return false - } - if (*p.TruncatedByThriftLimit) != (*other.TruncatedByThriftLimit) { return false } - } - if p.ResultByteLimit != other.ResultByteLimit { - if p.ResultByteLimit == nil || other.ResultByteLimit == nil { - return false - } - if (*p.ResultByteLimit) != (*other.ResultByteLimit) { return false } - } return true } @@ -27370,15 +21222,12 @@ func (p *TFetchResultsReq) Validate() error { // - HasMoreRows // - Results // - ResultSetMetadata -// - ResponseValidation type TFetchResultsResp struct { Status *TStatus `thrift:"status,1,required" db:"status" json:"status"` HasMoreRows *bool `thrift:"hasMoreRows,2" db:"hasMoreRows" json:"hasMoreRows,omitempty"` Results *TRowSet `thrift:"results,3" db:"results" json:"results,omitempty"` // unused fields # 4 to 1280 ResultSetMetadata *TGetResultSetMetadataResp `thrift:"resultSetMetadata,1281" db:"resultSetMetadata" json:"resultSetMetadata,omitempty"` - // unused fields # 1282 to 3328 - ResponseValidation []byte `thrift:"responseValidation,3329" db:"responseValidation" json:"responseValidation,omitempty"` } func NewTFetchResultsResp() *TFetchResultsResp { @@ -27413,11 +21262,6 @@ func (p *TFetchResultsResp) GetResultSetMetadata() *TGetResultSetMetadataResp { } return p.ResultSetMetadata } -var TFetchResultsResp_ResponseValidation_DEFAULT []byte - -func (p *TFetchResultsResp) GetResponseValidation() []byte { - return p.ResponseValidation -} func (p *TFetchResultsResp) IsSetStatus() bool { return p.Status != nil } @@ -27434,10 +21278,6 @@ func (p *TFetchResultsResp) IsSetResultSetMetadata() bool { return p.ResultSetMetadata != nil } -func (p *TFetchResultsResp) IsSetResponseValidation() bool { - return p.ResponseValidation != nil -} - func (p *TFetchResultsResp) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -27493,16 +21333,6 @@ func (p *TFetchResultsResp) Read(ctx context.Context, iprot thrift.TProtocol) er return err } } - case 3329: - if fieldTypeId == thrift.STRING { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -27554,15 +21384,6 @@ func (p *TFetchResultsResp) ReadField1281(ctx context.Context, iprot thrift.TPr return nil } -func (p *TFetchResultsResp) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - if v, err := iprot.ReadBinary(ctx); err != nil { - return thrift.PrependError("error reading field 3329: ", err) -} else { - p.ResponseValidation = v -} - return nil -} - func (p *TFetchResultsResp) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TFetchResultsResp"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -27571,7 +21392,6 @@ func (p *TFetchResultsResp) Write(ctx context.Context, oprot thrift.TProtocol) e if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } if err := p.writeField1281(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -27629,18 +21449,6 @@ func (p *TFetchResultsResp) writeField1281(ctx context.Context, oprot thrift.TPr return err } -func (p *TFetchResultsResp) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetResponseValidation() { - if err := oprot.WriteFieldBegin(ctx, "responseValidation", thrift.STRING, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:responseValidation: ", p), err) } - if err := oprot.WriteBinary(ctx, p.ResponseValidation); err != nil { - return thrift.PrependError(fmt.Sprintf("%T.responseValidation (3329) field write error: ", p), err) } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:responseValidation: ", p), err) } - } - return err -} - func (p *TFetchResultsResp) Equals(other *TFetchResultsResp) bool { if p == other { return true @@ -27656,7 +21464,6 @@ func (p *TFetchResultsResp) Equals(other *TFetchResultsResp) bool { } if !p.Results.Equals(other.Results) { return false } if !p.ResultSetMetadata.Equals(other.ResultSetMetadata) { return false } - if bytes.Compare(p.ResponseValidation, other.ResponseValidation) != 0 { return false } return true } @@ -27674,13 +21481,10 @@ func (p *TFetchResultsResp) Validate() error { // - SessionHandle // - Owner // - Renewer -// - SessionConf type TGetDelegationTokenReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` Owner string `thrift:"owner,2,required" db:"owner" json:"owner"` Renewer string `thrift:"renewer,3,required" db:"renewer" json:"renewer"` - // unused fields # 4 to 3328 - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3329" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTGetDelegationTokenReq() *TGetDelegationTokenReq { @@ -27702,21 +21506,10 @@ func (p *TGetDelegationTokenReq) GetOwner() string { func (p *TGetDelegationTokenReq) GetRenewer() string { return p.Renewer } -var TGetDelegationTokenReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TGetDelegationTokenReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TGetDelegationTokenReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TGetDelegationTokenReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } -func (p *TGetDelegationTokenReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TGetDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -27766,16 +21559,6 @@ func (p *TGetDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProtoco return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -27826,14 +21609,6 @@ func (p *TGetDelegationTokenReq) ReadField3(ctx context.Context, iprot thrift.T return nil } -func (p *TGetDelegationTokenReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TGetDelegationTokenReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TGetDelegationTokenReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } @@ -27841,7 +21616,6 @@ func (p *TGetDelegationTokenReq) Write(ctx context.Context, oprot thrift.TProtoc if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } if err := p.writeField3(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -27881,19 +21655,6 @@ func (p *TGetDelegationTokenReq) writeField3(ctx context.Context, oprot thrift.T return err } -func (p *TGetDelegationTokenReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:sessionConf: ", p), err) } - } - return err -} - func (p *TGetDelegationTokenReq) Equals(other *TGetDelegationTokenReq) bool { if p == other { return true @@ -27903,7 +21664,6 @@ func (p *TGetDelegationTokenReq) Equals(other *TGetDelegationTokenReq) bool { if !p.SessionHandle.Equals(other.SessionHandle) { return false } if p.Owner != other.Owner { return false } if p.Renewer != other.Renewer { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -28087,12 +21847,9 @@ func (p *TGetDelegationTokenResp) Validate() error { // Attributes: // - SessionHandle // - DelegationToken -// - SessionConf type TCancelDelegationTokenReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` DelegationToken string `thrift:"delegationToken,2,required" db:"delegationToken" json:"delegationToken"` - // unused fields # 3 to 3328 - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3329" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTCancelDelegationTokenReq() *TCancelDelegationTokenReq { @@ -28110,21 +21867,10 @@ return p.SessionHandle func (p *TCancelDelegationTokenReq) GetDelegationToken() string { return p.DelegationToken } -var TCancelDelegationTokenReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TCancelDelegationTokenReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TCancelDelegationTokenReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TCancelDelegationTokenReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } -func (p *TCancelDelegationTokenReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TCancelDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -28162,16 +21908,6 @@ func (p *TCancelDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProt return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -28210,21 +21946,12 @@ func (p *TCancelDelegationTokenReq) ReadField2(ctx context.Context, iprot thrif return nil } -func (p *TCancelDelegationTokenReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TCancelDelegationTokenReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TCancelDelegationTokenReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -28254,19 +21981,6 @@ func (p *TCancelDelegationTokenReq) writeField2(ctx context.Context, oprot thrif return err } -func (p *TCancelDelegationTokenReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:sessionConf: ", p), err) } - } - return err -} - func (p *TCancelDelegationTokenReq) Equals(other *TCancelDelegationTokenReq) bool { if p == other { return true @@ -28275,7 +21989,6 @@ func (p *TCancelDelegationTokenReq) Equals(other *TCancelDelegationTokenReq) boo } if !p.SessionHandle.Equals(other.SessionHandle) { return false } if p.DelegationToken != other.DelegationToken { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -28408,12 +22121,9 @@ func (p *TCancelDelegationTokenResp) Validate() error { // Attributes: // - SessionHandle // - DelegationToken -// - SessionConf type TRenewDelegationTokenReq struct { SessionHandle *TSessionHandle `thrift:"sessionHandle,1,required" db:"sessionHandle" json:"sessionHandle"` DelegationToken string `thrift:"delegationToken,2,required" db:"delegationToken" json:"delegationToken"` - // unused fields # 3 to 3328 - SessionConf *TDBSqlSessionConf `thrift:"sessionConf,3329" db:"sessionConf" json:"sessionConf,omitempty"` } func NewTRenewDelegationTokenReq() *TRenewDelegationTokenReq { @@ -28431,21 +22141,10 @@ return p.SessionHandle func (p *TRenewDelegationTokenReq) GetDelegationToken() string { return p.DelegationToken } -var TRenewDelegationTokenReq_SessionConf_DEFAULT *TDBSqlSessionConf -func (p *TRenewDelegationTokenReq) GetSessionConf() *TDBSqlSessionConf { - if !p.IsSetSessionConf() { - return TRenewDelegationTokenReq_SessionConf_DEFAULT - } -return p.SessionConf -} func (p *TRenewDelegationTokenReq) IsSetSessionHandle() bool { return p.SessionHandle != nil } -func (p *TRenewDelegationTokenReq) IsSetSessionConf() bool { - return p.SessionConf != nil -} - func (p *TRenewDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProtocol) error { if _, err := iprot.ReadStructBegin(ctx); err != nil { return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) @@ -28483,16 +22182,6 @@ func (p *TRenewDelegationTokenReq) Read(ctx context.Context, iprot thrift.TProto return err } } - case 3329: - if fieldTypeId == thrift.STRUCT { - if err := p.ReadField3329(ctx, iprot); err != nil { - return err - } - } else { - if err := iprot.Skip(ctx, fieldTypeId); err != nil { - return err - } - } default: if err := iprot.Skip(ctx, fieldTypeId); err != nil { return err @@ -28531,21 +22220,12 @@ func (p *TRenewDelegationTokenReq) ReadField2(ctx context.Context, iprot thrift return nil } -func (p *TRenewDelegationTokenReq) ReadField3329(ctx context.Context, iprot thrift.TProtocol) error { - p.SessionConf = &TDBSqlSessionConf{} - if err := p.SessionConf.Read(ctx, iprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.SessionConf), err) - } - return nil -} - func (p *TRenewDelegationTokenReq) Write(ctx context.Context, oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin(ctx, "TRenewDelegationTokenReq"); err != nil { return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } if p != nil { if err := p.writeField1(ctx, oprot); err != nil { return err } if err := p.writeField2(ctx, oprot); err != nil { return err } - if err := p.writeField3329(ctx, oprot); err != nil { return err } } if err := oprot.WriteFieldStop(ctx); err != nil { return thrift.PrependError("write field stop error: ", err) } @@ -28575,19 +22255,6 @@ func (p *TRenewDelegationTokenReq) writeField2(ctx context.Context, oprot thrift return err } -func (p *TRenewDelegationTokenReq) writeField3329(ctx context.Context, oprot thrift.TProtocol) (err error) { - if p.IsSetSessionConf() { - if err := oprot.WriteFieldBegin(ctx, "sessionConf", thrift.STRUCT, 3329); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field begin error 3329:sessionConf: ", p), err) } - if err := p.SessionConf.Write(ctx, oprot); err != nil { - return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.SessionConf), err) - } - if err := oprot.WriteFieldEnd(ctx); err != nil { - return thrift.PrependError(fmt.Sprintf("%T write field end error 3329:sessionConf: ", p), err) } - } - return err -} - func (p *TRenewDelegationTokenReq) Equals(other *TRenewDelegationTokenReq) bool { if p == other { return true @@ -28596,7 +22263,6 @@ func (p *TRenewDelegationTokenReq) Equals(other *TRenewDelegationTokenReq) bool } if !p.SessionHandle.Equals(other.SessionHandle) { return false } if p.DelegationToken != other.DelegationToken { return false } - if !p.SessionConf.Equals(other.SessionConf) { return false } return true } @@ -28896,13 +22562,13 @@ func (p *TProgressUpdateResp) ReadField1(ctx context.Context, iprot thrift.TPro tSlice := make([]string, 0, size) p.HeaderNames = tSlice for i := 0; i < size; i ++ { -var _elem88 string +var _elem68 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _elem88 = v + _elem68 = v } - p.HeaderNames = append(p.HeaderNames, _elem88) + p.HeaderNames = append(p.HeaderNames, _elem68) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -28923,20 +22589,20 @@ func (p *TProgressUpdateResp) ReadField2(ctx context.Context, iprot thrift.TPro return thrift.PrependError("error reading list begin: ", err) } tSlice := make([]string, 0, size) - _elem89 := tSlice + _elem69 := tSlice for i := 0; i < size; i ++ { -var _elem90 string +var _elem70 string if v, err := iprot.ReadString(ctx); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { - _elem90 = v + _elem70 = v } - _elem89 = append(_elem89, _elem90) + _elem69 = append(_elem69, _elem70) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) } - p.Rows = append(p.Rows, _elem89) + p.Rows = append(p.Rows, _elem69) } if err := iprot.ReadListEnd(ctx); err != nil { return thrift.PrependError("error reading list end: ", err) @@ -29091,16 +22757,16 @@ func (p *TProgressUpdateResp) Equals(other *TProgressUpdateResp) bool { } if len(p.HeaderNames) != len(other.HeaderNames) { return false } for i, _tgt := range p.HeaderNames { - _src91 := other.HeaderNames[i] - if _tgt != _src91 { return false } + _src71 := other.HeaderNames[i] + if _tgt != _src71 { return false } } if len(p.Rows) != len(other.Rows) { return false } for i, _tgt := range p.Rows { - _src92 := other.Rows[i] - if len(_tgt) != len(_src92) { return false } + _src72 := other.Rows[i] + if len(_tgt) != len(_src72) { return false } for i, _tgt := range _tgt { - _src93 := _src92[i] - if _tgt != _src93 { return false } + _src73 := _src72[i] + if _tgt != _src73 { return false } } } if p.ProgressedPercentage != other.ProgressedPercentage { return false } @@ -29224,11 +22890,101 @@ func (p *TCLIServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta) { // Parameters: // - Req func (p *TCLIServiceClient) OpenSession(ctx context.Context, req *TOpenSessionReq) (_r *TOpenSessionResp, _err error) { - var _args94 TCLIServiceOpenSessionArgs + var _args74 TCLIServiceOpenSessionArgs + _args74.Req = req + var _result76 TCLIServiceOpenSessionResult + var _meta75 thrift.ResponseMeta + _meta75, _err = p.Client_().Call(ctx, "OpenSession", &_args74, &_result76) + p.SetLastResponseMeta_(_meta75) + if _err != nil { + return + } + if _ret77 := _result76.GetSuccess(); _ret77 != nil { + return _ret77, 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 _args78 TCLIServiceCloseSessionArgs + _args78.Req = req + var _result80 TCLIServiceCloseSessionResult + var _meta79 thrift.ResponseMeta + _meta79, _err = p.Client_().Call(ctx, "CloseSession", &_args78, &_result80) + p.SetLastResponseMeta_(_meta79) + if _err != nil { + return + } + if _ret81 := _result80.GetSuccess(); _ret81 != nil { + return _ret81, 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 _args82 TCLIServiceGetInfoArgs + _args82.Req = req + var _result84 TCLIServiceGetInfoResult + var _meta83 thrift.ResponseMeta + _meta83, _err = p.Client_().Call(ctx, "GetInfo", &_args82, &_result84) + p.SetLastResponseMeta_(_meta83) + if _err != nil { + return + } + if _ret85 := _result84.GetSuccess(); _ret85 != nil { + return _ret85, 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 _args86 TCLIServiceExecuteStatementArgs + _args86.Req = req + var _result88 TCLIServiceExecuteStatementResult + var _meta87 thrift.ResponseMeta + _meta87, _err = p.Client_().Call(ctx, "ExecuteStatement", &_args86, &_result88) + p.SetLastResponseMeta_(_meta87) + if _err != nil { + return + } + if _ret89 := _result88.GetSuccess(); _ret89 != nil { + return _ret89, 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 _args90 TCLIServiceGetTypeInfoArgs + _args90.Req = req + var _result92 TCLIServiceGetTypeInfoResult + var _meta91 thrift.ResponseMeta + _meta91, _err = p.Client_().Call(ctx, "GetTypeInfo", &_args90, &_result92) + p.SetLastResponseMeta_(_meta91) + if _err != nil { + return + } + if _ret93 := _result92.GetSuccess(); _ret93 != nil { + return _ret93, 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 _args94 TCLIServiceGetCatalogsArgs _args94.Req = req - var _result96 TCLIServiceOpenSessionResult + var _result96 TCLIServiceGetCatalogsResult var _meta95 thrift.ResponseMeta - _meta95, _err = p.Client_().Call(ctx, "OpenSession", &_args94, &_result96) + _meta95, _err = p.Client_().Call(ctx, "GetCatalogs", &_args94, &_result96) p.SetLastResponseMeta_(_meta95) if _err != nil { return @@ -29236,17 +22992,17 @@ func (p *TCLIServiceClient) OpenSession(ctx context.Context, req *TOpenSessionRe if _ret97 := _result96.GetSuccess(); _ret97 != nil { return _ret97, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "OpenSession failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCatalogs failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CloseSession(ctx context.Context, req *TCloseSessionReq) (_r *TCloseSessionResp, _err error) { - var _args98 TCLIServiceCloseSessionArgs +func (p *TCLIServiceClient) GetSchemas(ctx context.Context, req *TGetSchemasReq) (_r *TGetSchemasResp, _err error) { + var _args98 TCLIServiceGetSchemasArgs _args98.Req = req - var _result100 TCLIServiceCloseSessionResult + var _result100 TCLIServiceGetSchemasResult var _meta99 thrift.ResponseMeta - _meta99, _err = p.Client_().Call(ctx, "CloseSession", &_args98, &_result100) + _meta99, _err = p.Client_().Call(ctx, "GetSchemas", &_args98, &_result100) p.SetLastResponseMeta_(_meta99) if _err != nil { return @@ -29254,17 +23010,17 @@ func (p *TCLIServiceClient) CloseSession(ctx context.Context, req *TCloseSession if _ret101 := _result100.GetSuccess(); _ret101 != nil { return _ret101, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CloseSession failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetSchemas failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetInfo(ctx context.Context, req *TGetInfoReq) (_r *TGetInfoResp, _err error) { - var _args102 TCLIServiceGetInfoArgs +func (p *TCLIServiceClient) GetTables(ctx context.Context, req *TGetTablesReq) (_r *TGetTablesResp, _err error) { + var _args102 TCLIServiceGetTablesArgs _args102.Req = req - var _result104 TCLIServiceGetInfoResult + var _result104 TCLIServiceGetTablesResult var _meta103 thrift.ResponseMeta - _meta103, _err = p.Client_().Call(ctx, "GetInfo", &_args102, &_result104) + _meta103, _err = p.Client_().Call(ctx, "GetTables", &_args102, &_result104) p.SetLastResponseMeta_(_meta103) if _err != nil { return @@ -29272,17 +23028,17 @@ func (p *TCLIServiceClient) GetInfo(ctx context.Context, req *TGetInfoReq) (_r * if _ret105 := _result104.GetSuccess(); _ret105 != nil { return _ret105, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetInfo failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTables failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) ExecuteStatement(ctx context.Context, req *TExecuteStatementReq) (_r *TExecuteStatementResp, _err error) { - var _args106 TCLIServiceExecuteStatementArgs +func (p *TCLIServiceClient) GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (_r *TGetTableTypesResp, _err error) { + var _args106 TCLIServiceGetTableTypesArgs _args106.Req = req - var _result108 TCLIServiceExecuteStatementResult + var _result108 TCLIServiceGetTableTypesResult var _meta107 thrift.ResponseMeta - _meta107, _err = p.Client_().Call(ctx, "ExecuteStatement", &_args106, &_result108) + _meta107, _err = p.Client_().Call(ctx, "GetTableTypes", &_args106, &_result108) p.SetLastResponseMeta_(_meta107) if _err != nil { return @@ -29290,17 +23046,17 @@ func (p *TCLIServiceClient) ExecuteStatement(ctx context.Context, req *TExecuteS if _ret109 := _result108.GetSuccess(); _ret109 != nil { return _ret109, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "ExecuteStatement failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTableTypes failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTypeInfo(ctx context.Context, req *TGetTypeInfoReq) (_r *TGetTypeInfoResp, _err error) { - var _args110 TCLIServiceGetTypeInfoArgs +func (p *TCLIServiceClient) GetColumns(ctx context.Context, req *TGetColumnsReq) (_r *TGetColumnsResp, _err error) { + var _args110 TCLIServiceGetColumnsArgs _args110.Req = req - var _result112 TCLIServiceGetTypeInfoResult + var _result112 TCLIServiceGetColumnsResult var _meta111 thrift.ResponseMeta - _meta111, _err = p.Client_().Call(ctx, "GetTypeInfo", &_args110, &_result112) + _meta111, _err = p.Client_().Call(ctx, "GetColumns", &_args110, &_result112) p.SetLastResponseMeta_(_meta111) if _err != nil { return @@ -29308,17 +23064,17 @@ func (p *TCLIServiceClient) GetTypeInfo(ctx context.Context, req *TGetTypeInfoRe if _ret113 := _result112.GetSuccess(); _ret113 != nil { return _ret113, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTypeInfo failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetColumns failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetCatalogs(ctx context.Context, req *TGetCatalogsReq) (_r *TGetCatalogsResp, _err error) { - var _args114 TCLIServiceGetCatalogsArgs +func (p *TCLIServiceClient) GetFunctions(ctx context.Context, req *TGetFunctionsReq) (_r *TGetFunctionsResp, _err error) { + var _args114 TCLIServiceGetFunctionsArgs _args114.Req = req - var _result116 TCLIServiceGetCatalogsResult + var _result116 TCLIServiceGetFunctionsResult var _meta115 thrift.ResponseMeta - _meta115, _err = p.Client_().Call(ctx, "GetCatalogs", &_args114, &_result116) + _meta115, _err = p.Client_().Call(ctx, "GetFunctions", &_args114, &_result116) p.SetLastResponseMeta_(_meta115) if _err != nil { return @@ -29326,17 +23082,17 @@ func (p *TCLIServiceClient) GetCatalogs(ctx context.Context, req *TGetCatalogsRe if _ret117 := _result116.GetSuccess(); _ret117 != nil { return _ret117, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCatalogs failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetFunctions failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetSchemas(ctx context.Context, req *TGetSchemasReq) (_r *TGetSchemasResp, _err error) { - var _args118 TCLIServiceGetSchemasArgs +func (p *TCLIServiceClient) GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (_r *TGetPrimaryKeysResp, _err error) { + var _args118 TCLIServiceGetPrimaryKeysArgs _args118.Req = req - var _result120 TCLIServiceGetSchemasResult + var _result120 TCLIServiceGetPrimaryKeysResult var _meta119 thrift.ResponseMeta - _meta119, _err = p.Client_().Call(ctx, "GetSchemas", &_args118, &_result120) + _meta119, _err = p.Client_().Call(ctx, "GetPrimaryKeys", &_args118, &_result120) p.SetLastResponseMeta_(_meta119) if _err != nil { return @@ -29344,17 +23100,17 @@ func (p *TCLIServiceClient) GetSchemas(ctx context.Context, req *TGetSchemasReq) if _ret121 := _result120.GetSuccess(); _ret121 != nil { return _ret121, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetSchemas failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetPrimaryKeys failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTables(ctx context.Context, req *TGetTablesReq) (_r *TGetTablesResp, _err error) { - var _args122 TCLIServiceGetTablesArgs +func (p *TCLIServiceClient) GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (_r *TGetCrossReferenceResp, _err error) { + var _args122 TCLIServiceGetCrossReferenceArgs _args122.Req = req - var _result124 TCLIServiceGetTablesResult + var _result124 TCLIServiceGetCrossReferenceResult var _meta123 thrift.ResponseMeta - _meta123, _err = p.Client_().Call(ctx, "GetTables", &_args122, &_result124) + _meta123, _err = p.Client_().Call(ctx, "GetCrossReference", &_args122, &_result124) p.SetLastResponseMeta_(_meta123) if _err != nil { return @@ -29362,17 +23118,17 @@ func (p *TCLIServiceClient) GetTables(ctx context.Context, req *TGetTablesReq) ( if _ret125 := _result124.GetSuccess(); _ret125 != nil { return _ret125, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTables failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCrossReference failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetTableTypes(ctx context.Context, req *TGetTableTypesReq) (_r *TGetTableTypesResp, _err error) { - var _args126 TCLIServiceGetTableTypesArgs +func (p *TCLIServiceClient) GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (_r *TGetOperationStatusResp, _err error) { + var _args126 TCLIServiceGetOperationStatusArgs _args126.Req = req - var _result128 TCLIServiceGetTableTypesResult + var _result128 TCLIServiceGetOperationStatusResult var _meta127 thrift.ResponseMeta - _meta127, _err = p.Client_().Call(ctx, "GetTableTypes", &_args126, &_result128) + _meta127, _err = p.Client_().Call(ctx, "GetOperationStatus", &_args126, &_result128) p.SetLastResponseMeta_(_meta127) if _err != nil { return @@ -29380,17 +23136,17 @@ func (p *TCLIServiceClient) GetTableTypes(ctx context.Context, req *TGetTableTyp if _ret129 := _result128.GetSuccess(); _ret129 != nil { return _ret129, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetTableTypes failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetOperationStatus failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetColumns(ctx context.Context, req *TGetColumnsReq) (_r *TGetColumnsResp, _err error) { - var _args130 TCLIServiceGetColumnsArgs +func (p *TCLIServiceClient) CancelOperation(ctx context.Context, req *TCancelOperationReq) (_r *TCancelOperationResp, _err error) { + var _args130 TCLIServiceCancelOperationArgs _args130.Req = req - var _result132 TCLIServiceGetColumnsResult + var _result132 TCLIServiceCancelOperationResult var _meta131 thrift.ResponseMeta - _meta131, _err = p.Client_().Call(ctx, "GetColumns", &_args130, &_result132) + _meta131, _err = p.Client_().Call(ctx, "CancelOperation", &_args130, &_result132) p.SetLastResponseMeta_(_meta131) if _err != nil { return @@ -29398,17 +23154,17 @@ func (p *TCLIServiceClient) GetColumns(ctx context.Context, req *TGetColumnsReq) if _ret133 := _result132.GetSuccess(); _ret133 != nil { return _ret133, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetColumns failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CancelOperation failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetFunctions(ctx context.Context, req *TGetFunctionsReq) (_r *TGetFunctionsResp, _err error) { - var _args134 TCLIServiceGetFunctionsArgs +func (p *TCLIServiceClient) CloseOperation(ctx context.Context, req *TCloseOperationReq) (_r *TCloseOperationResp, _err error) { + var _args134 TCLIServiceCloseOperationArgs _args134.Req = req - var _result136 TCLIServiceGetFunctionsResult + var _result136 TCLIServiceCloseOperationResult var _meta135 thrift.ResponseMeta - _meta135, _err = p.Client_().Call(ctx, "GetFunctions", &_args134, &_result136) + _meta135, _err = p.Client_().Call(ctx, "CloseOperation", &_args134, &_result136) p.SetLastResponseMeta_(_meta135) if _err != nil { return @@ -29416,17 +23172,17 @@ func (p *TCLIServiceClient) GetFunctions(ctx context.Context, req *TGetFunctions if _ret137 := _result136.GetSuccess(); _ret137 != nil { return _ret137, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetFunctions failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CloseOperation failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetPrimaryKeys(ctx context.Context, req *TGetPrimaryKeysReq) (_r *TGetPrimaryKeysResp, _err error) { - var _args138 TCLIServiceGetPrimaryKeysArgs +func (p *TCLIServiceClient) GetResultSetMetadata(ctx context.Context, req *TGetResultSetMetadataReq) (_r *TGetResultSetMetadataResp, _err error) { + var _args138 TCLIServiceGetResultSetMetadataArgs _args138.Req = req - var _result140 TCLIServiceGetPrimaryKeysResult + var _result140 TCLIServiceGetResultSetMetadataResult var _meta139 thrift.ResponseMeta - _meta139, _err = p.Client_().Call(ctx, "GetPrimaryKeys", &_args138, &_result140) + _meta139, _err = p.Client_().Call(ctx, "GetResultSetMetadata", &_args138, &_result140) p.SetLastResponseMeta_(_meta139) if _err != nil { return @@ -29434,17 +23190,17 @@ func (p *TCLIServiceClient) GetPrimaryKeys(ctx context.Context, req *TGetPrimary if _ret141 := _result140.GetSuccess(); _ret141 != nil { return _ret141, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetPrimaryKeys failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetResultSetMetadata failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetCrossReference(ctx context.Context, req *TGetCrossReferenceReq) (_r *TGetCrossReferenceResp, _err error) { - var _args142 TCLIServiceGetCrossReferenceArgs +func (p *TCLIServiceClient) FetchResults(ctx context.Context, req *TFetchResultsReq) (_r *TFetchResultsResp, _err error) { + var _args142 TCLIServiceFetchResultsArgs _args142.Req = req - var _result144 TCLIServiceGetCrossReferenceResult + var _result144 TCLIServiceFetchResultsResult var _meta143 thrift.ResponseMeta - _meta143, _err = p.Client_().Call(ctx, "GetCrossReference", &_args142, &_result144) + _meta143, _err = p.Client_().Call(ctx, "FetchResults", &_args142, &_result144) p.SetLastResponseMeta_(_meta143) if _err != nil { return @@ -29452,17 +23208,17 @@ func (p *TCLIServiceClient) GetCrossReference(ctx context.Context, req *TGetCros if _ret145 := _result144.GetSuccess(); _ret145 != nil { return _ret145, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetCrossReference failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "FetchResults failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) GetOperationStatus(ctx context.Context, req *TGetOperationStatusReq) (_r *TGetOperationStatusResp, _err error) { - var _args146 TCLIServiceGetOperationStatusArgs +func (p *TCLIServiceClient) GetDelegationToken(ctx context.Context, req *TGetDelegationTokenReq) (_r *TGetDelegationTokenResp, _err error) { + var _args146 TCLIServiceGetDelegationTokenArgs _args146.Req = req - var _result148 TCLIServiceGetOperationStatusResult + var _result148 TCLIServiceGetDelegationTokenResult var _meta147 thrift.ResponseMeta - _meta147, _err = p.Client_().Call(ctx, "GetOperationStatus", &_args146, &_result148) + _meta147, _err = p.Client_().Call(ctx, "GetDelegationToken", &_args146, &_result148) p.SetLastResponseMeta_(_meta147) if _err != nil { return @@ -29470,17 +23226,17 @@ func (p *TCLIServiceClient) GetOperationStatus(ctx context.Context, req *TGetOpe if _ret149 := _result148.GetSuccess(); _ret149 != nil { return _ret149, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetOperationStatus failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "GetDelegationToken failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CancelOperation(ctx context.Context, req *TCancelOperationReq) (_r *TCancelOperationResp, _err error) { - var _args150 TCLIServiceCancelOperationArgs +func (p *TCLIServiceClient) CancelDelegationToken(ctx context.Context, req *TCancelDelegationTokenReq) (_r *TCancelDelegationTokenResp, _err error) { + var _args150 TCLIServiceCancelDelegationTokenArgs _args150.Req = req - var _result152 TCLIServiceCancelOperationResult + var _result152 TCLIServiceCancelDelegationTokenResult var _meta151 thrift.ResponseMeta - _meta151, _err = p.Client_().Call(ctx, "CancelOperation", &_args150, &_result152) + _meta151, _err = p.Client_().Call(ctx, "CancelDelegationToken", &_args150, &_result152) p.SetLastResponseMeta_(_meta151) if _err != nil { return @@ -29488,17 +23244,17 @@ func (p *TCLIServiceClient) CancelOperation(ctx context.Context, req *TCancelOpe if _ret153 := _result152.GetSuccess(); _ret153 != nil { return _ret153, nil } - return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CancelOperation failed: unknown result") + return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "CancelDelegationToken failed: unknown result") } // Parameters: // - Req -func (p *TCLIServiceClient) CloseOperation(ctx context.Context, req *TCloseOperationReq) (_r *TCloseOperationResp, _err error) { - var _args154 TCLIServiceCloseOperationArgs +func (p *TCLIServiceClient) RenewDelegationToken(ctx context.Context, req *TRenewDelegationTokenReq) (_r *TRenewDelegationTokenResp, _err error) { + var _args154 TCLIServiceRenewDelegationTokenArgs _args154.Req = req - var _result156 TCLIServiceCloseOperationResult + var _result156 TCLIServiceRenewDelegationTokenResult var _meta155 thrift.ResponseMeta - _meta155, _err = p.Client_().Call(ctx, "CloseOperation", &_args154, &_result156) + _meta155, _err = p.Client_().Call(ctx, "RenewDelegationToken", &_args154, &_result156) p.SetLastResponseMeta_(_meta155) if _err != nil { return @@ -29506,96 +23262,6 @@ func (p *TCLIServiceClient) CloseOperation(ctx context.Context, req *TCloseOpera if _ret157 := _result156.GetSuccess(); _ret157 != nil { return _ret157, 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 _args158 TCLIServiceGetResultSetMetadataArgs - _args158.Req = req - var _result160 TCLIServiceGetResultSetMetadataResult - var _meta159 thrift.ResponseMeta - _meta159, _err = p.Client_().Call(ctx, "GetResultSetMetadata", &_args158, &_result160) - p.SetLastResponseMeta_(_meta159) - if _err != nil { - return - } - if _ret161 := _result160.GetSuccess(); _ret161 != nil { - return _ret161, 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 _args162 TCLIServiceFetchResultsArgs - _args162.Req = req - var _result164 TCLIServiceFetchResultsResult - var _meta163 thrift.ResponseMeta - _meta163, _err = p.Client_().Call(ctx, "FetchResults", &_args162, &_result164) - p.SetLastResponseMeta_(_meta163) - if _err != nil { - return - } - if _ret165 := _result164.GetSuccess(); _ret165 != nil { - return _ret165, 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 _args166 TCLIServiceGetDelegationTokenArgs - _args166.Req = req - var _result168 TCLIServiceGetDelegationTokenResult - var _meta167 thrift.ResponseMeta - _meta167, _err = p.Client_().Call(ctx, "GetDelegationToken", &_args166, &_result168) - p.SetLastResponseMeta_(_meta167) - if _err != nil { - return - } - if _ret169 := _result168.GetSuccess(); _ret169 != nil { - return _ret169, 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 _args170 TCLIServiceCancelDelegationTokenArgs - _args170.Req = req - var _result172 TCLIServiceCancelDelegationTokenResult - var _meta171 thrift.ResponseMeta - _meta171, _err = p.Client_().Call(ctx, "CancelDelegationToken", &_args170, &_result172) - p.SetLastResponseMeta_(_meta171) - if _err != nil { - return - } - if _ret173 := _result172.GetSuccess(); _ret173 != nil { - return _ret173, 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 _args174 TCLIServiceRenewDelegationTokenArgs - _args174.Req = req - var _result176 TCLIServiceRenewDelegationTokenResult - var _meta175 thrift.ResponseMeta - _meta175, _err = p.Client_().Call(ctx, "RenewDelegationToken", &_args174, &_result176) - p.SetLastResponseMeta_(_meta175) - if _err != nil { - return - } - if _ret177 := _result176.GetSuccess(); _ret177 != nil { - return _ret177, nil - } return nil, thrift.NewTApplicationException(thrift.MISSING_RESULT, "RenewDelegationToken failed: unknown result") } @@ -29619,29 +23285,29 @@ func (p *TCLIServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFuncti func NewTCLIServiceProcessor(handler TCLIService) *TCLIServiceProcessor { - self178 := &TCLIServiceProcessor{handler:handler, processorMap:make(map[string]thrift.TProcessorFunction)} - self178.processorMap["OpenSession"] = &tCLIServiceProcessorOpenSession{handler:handler} - self178.processorMap["CloseSession"] = &tCLIServiceProcessorCloseSession{handler:handler} - self178.processorMap["GetInfo"] = &tCLIServiceProcessorGetInfo{handler:handler} - self178.processorMap["ExecuteStatement"] = &tCLIServiceProcessorExecuteStatement{handler:handler} - self178.processorMap["GetTypeInfo"] = &tCLIServiceProcessorGetTypeInfo{handler:handler} - self178.processorMap["GetCatalogs"] = &tCLIServiceProcessorGetCatalogs{handler:handler} - self178.processorMap["GetSchemas"] = &tCLIServiceProcessorGetSchemas{handler:handler} - self178.processorMap["GetTables"] = &tCLIServiceProcessorGetTables{handler:handler} - self178.processorMap["GetTableTypes"] = &tCLIServiceProcessorGetTableTypes{handler:handler} - self178.processorMap["GetColumns"] = &tCLIServiceProcessorGetColumns{handler:handler} - self178.processorMap["GetFunctions"] = &tCLIServiceProcessorGetFunctions{handler:handler} - self178.processorMap["GetPrimaryKeys"] = &tCLIServiceProcessorGetPrimaryKeys{handler:handler} - self178.processorMap["GetCrossReference"] = &tCLIServiceProcessorGetCrossReference{handler:handler} - self178.processorMap["GetOperationStatus"] = &tCLIServiceProcessorGetOperationStatus{handler:handler} - self178.processorMap["CancelOperation"] = &tCLIServiceProcessorCancelOperation{handler:handler} - self178.processorMap["CloseOperation"] = &tCLIServiceProcessorCloseOperation{handler:handler} - self178.processorMap["GetResultSetMetadata"] = &tCLIServiceProcessorGetResultSetMetadata{handler:handler} - self178.processorMap["FetchResults"] = &tCLIServiceProcessorFetchResults{handler:handler} - self178.processorMap["GetDelegationToken"] = &tCLIServiceProcessorGetDelegationToken{handler:handler} - self178.processorMap["CancelDelegationToken"] = &tCLIServiceProcessorCancelDelegationToken{handler:handler} - self178.processorMap["RenewDelegationToken"] = &tCLIServiceProcessorRenewDelegationToken{handler:handler} -return self178 + self158 := &TCLIServiceProcessor{handler:handler, processorMap:make(map[string]thrift.TProcessorFunction)} + self158.processorMap["OpenSession"] = &tCLIServiceProcessorOpenSession{handler:handler} + self158.processorMap["CloseSession"] = &tCLIServiceProcessorCloseSession{handler:handler} + self158.processorMap["GetInfo"] = &tCLIServiceProcessorGetInfo{handler:handler} + self158.processorMap["ExecuteStatement"] = &tCLIServiceProcessorExecuteStatement{handler:handler} + self158.processorMap["GetTypeInfo"] = &tCLIServiceProcessorGetTypeInfo{handler:handler} + self158.processorMap["GetCatalogs"] = &tCLIServiceProcessorGetCatalogs{handler:handler} + self158.processorMap["GetSchemas"] = &tCLIServiceProcessorGetSchemas{handler:handler} + self158.processorMap["GetTables"] = &tCLIServiceProcessorGetTables{handler:handler} + self158.processorMap["GetTableTypes"] = &tCLIServiceProcessorGetTableTypes{handler:handler} + self158.processorMap["GetColumns"] = &tCLIServiceProcessorGetColumns{handler:handler} + self158.processorMap["GetFunctions"] = &tCLIServiceProcessorGetFunctions{handler:handler} + self158.processorMap["GetPrimaryKeys"] = &tCLIServiceProcessorGetPrimaryKeys{handler:handler} + self158.processorMap["GetCrossReference"] = &tCLIServiceProcessorGetCrossReference{handler:handler} + self158.processorMap["GetOperationStatus"] = &tCLIServiceProcessorGetOperationStatus{handler:handler} + self158.processorMap["CancelOperation"] = &tCLIServiceProcessorCancelOperation{handler:handler} + self158.processorMap["CloseOperation"] = &tCLIServiceProcessorCloseOperation{handler:handler} + self158.processorMap["GetResultSetMetadata"] = &tCLIServiceProcessorGetResultSetMetadata{handler:handler} + self158.processorMap["FetchResults"] = &tCLIServiceProcessorFetchResults{handler:handler} + self158.processorMap["GetDelegationToken"] = &tCLIServiceProcessorGetDelegationToken{handler:handler} + self158.processorMap["CancelDelegationToken"] = &tCLIServiceProcessorCancelDelegationToken{handler:handler} + self158.processorMap["RenewDelegationToken"] = &tCLIServiceProcessorRenewDelegationToken{handler:handler} +return self158 } func (p *TCLIServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { @@ -29652,12 +23318,12 @@ func (p *TCLIServiceProcessor) Process(ctx context.Context, iprot, oprot thrift. } iprot.Skip(ctx, thrift.STRUCT) iprot.ReadMessageEnd(ctx) - x179 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function " + name) + x159 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function " + name) oprot.WriteMessageBegin(ctx, name, thrift.EXCEPTION, seqId) - x179.Write(ctx, oprot) + x159.Write(ctx, oprot) oprot.WriteMessageEnd(ctx) oprot.Flush(ctx) - return false, x179 + return false, x159 } @@ -29666,7 +23332,7 @@ type tCLIServiceProcessorOpenSession struct { } func (p *tCLIServiceProcessorOpenSession) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err180 error + var _write_err160 error args := TCLIServiceOpenSessionArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -29717,21 +23383,21 @@ func (p *tCLIServiceProcessorOpenSession) Process(ctx context.Context, seqId int return false, thrift.WrapTException(err) } } - _exc181 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing OpenSession: " + err2.Error()) + _exc161 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing OpenSession: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "OpenSession", thrift.EXCEPTION, seqId); err2 != nil { - _write_err180 = thrift.WrapTException(err2) + _write_err160 = thrift.WrapTException(err2) } - if err2 := _exc181.Write(ctx, oprot); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := _exc161.Write(ctx, oprot); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if _write_err180 != nil { - return false, thrift.WrapTException(_write_err180) + if _write_err160 != nil { + return false, thrift.WrapTException(_write_err160) } return true, err } else { @@ -29739,19 +23405,19 @@ func (p *tCLIServiceProcessorOpenSession) Process(ctx context.Context, seqId int } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "OpenSession", thrift.REPLY, seqId); err2 != nil { - _write_err180 = thrift.WrapTException(err2) + _write_err160 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err180 == nil && err2 != nil { - _write_err180 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err160 == nil && err2 != nil { + _write_err160 = thrift.WrapTException(err2) } - if _write_err180 != nil { - return false, thrift.WrapTException(_write_err180) + if _write_err160 != nil { + return false, thrift.WrapTException(_write_err160) } return true, err } @@ -29761,7 +23427,7 @@ type tCLIServiceProcessorCloseSession struct { } func (p *tCLIServiceProcessorCloseSession) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err182 error + var _write_err162 error args := TCLIServiceCloseSessionArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -29812,21 +23478,21 @@ func (p *tCLIServiceProcessorCloseSession) Process(ctx context.Context, seqId in return false, thrift.WrapTException(err) } } - _exc183 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseSession: " + err2.Error()) + _exc163 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseSession: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "CloseSession", thrift.EXCEPTION, seqId); err2 != nil { - _write_err182 = thrift.WrapTException(err2) + _write_err162 = thrift.WrapTException(err2) } - if err2 := _exc183.Write(ctx, oprot); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := _exc163.Write(ctx, oprot); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if _write_err182 != nil { - return false, thrift.WrapTException(_write_err182) + if _write_err162 != nil { + return false, thrift.WrapTException(_write_err162) } return true, err } else { @@ -29834,19 +23500,19 @@ func (p *tCLIServiceProcessorCloseSession) Process(ctx context.Context, seqId in } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "CloseSession", thrift.REPLY, seqId); err2 != nil { - _write_err182 = thrift.WrapTException(err2) + _write_err162 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err182 == nil && err2 != nil { - _write_err182 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err162 == nil && err2 != nil { + _write_err162 = thrift.WrapTException(err2) } - if _write_err182 != nil { - return false, thrift.WrapTException(_write_err182) + if _write_err162 != nil { + return false, thrift.WrapTException(_write_err162) } return true, err } @@ -29856,7 +23522,7 @@ type tCLIServiceProcessorGetInfo struct { } func (p *tCLIServiceProcessorGetInfo) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err184 error + var _write_err164 error args := TCLIServiceGetInfoArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -29907,21 +23573,21 @@ func (p *tCLIServiceProcessorGetInfo) Process(ctx context.Context, seqId int32, return false, thrift.WrapTException(err) } } - _exc185 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetInfo: " + err2.Error()) + _exc165 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetInfo: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetInfo", thrift.EXCEPTION, seqId); err2 != nil { - _write_err184 = thrift.WrapTException(err2) + _write_err164 = thrift.WrapTException(err2) } - if err2 := _exc185.Write(ctx, oprot); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := _exc165.Write(ctx, oprot); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if _write_err184 != nil { - return false, thrift.WrapTException(_write_err184) + if _write_err164 != nil { + return false, thrift.WrapTException(_write_err164) } return true, err } else { @@ -29929,19 +23595,19 @@ func (p *tCLIServiceProcessorGetInfo) Process(ctx context.Context, seqId int32, } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetInfo", thrift.REPLY, seqId); err2 != nil { - _write_err184 = thrift.WrapTException(err2) + _write_err164 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err184 == nil && err2 != nil { - _write_err184 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err164 == nil && err2 != nil { + _write_err164 = thrift.WrapTException(err2) } - if _write_err184 != nil { - return false, thrift.WrapTException(_write_err184) + if _write_err164 != nil { + return false, thrift.WrapTException(_write_err164) } return true, err } @@ -29951,7 +23617,7 @@ type tCLIServiceProcessorExecuteStatement struct { } func (p *tCLIServiceProcessorExecuteStatement) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err186 error + var _write_err166 error args := TCLIServiceExecuteStatementArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30002,21 +23668,21 @@ func (p *tCLIServiceProcessorExecuteStatement) Process(ctx context.Context, seqI return false, thrift.WrapTException(err) } } - _exc187 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing ExecuteStatement: " + err2.Error()) + _exc167 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing ExecuteStatement: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.EXCEPTION, seqId); err2 != nil { - _write_err186 = thrift.WrapTException(err2) + _write_err166 = thrift.WrapTException(err2) } - if err2 := _exc187.Write(ctx, oprot); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := _exc167.Write(ctx, oprot); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if _write_err186 != nil { - return false, thrift.WrapTException(_write_err186) + if _write_err166 != nil { + return false, thrift.WrapTException(_write_err166) } return true, err } else { @@ -30024,19 +23690,19 @@ func (p *tCLIServiceProcessorExecuteStatement) Process(ctx context.Context, seqI } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "ExecuteStatement", thrift.REPLY, seqId); err2 != nil { - _write_err186 = thrift.WrapTException(err2) + _write_err166 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err186 == nil && err2 != nil { - _write_err186 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err166 == nil && err2 != nil { + _write_err166 = thrift.WrapTException(err2) } - if _write_err186 != nil { - return false, thrift.WrapTException(_write_err186) + if _write_err166 != nil { + return false, thrift.WrapTException(_write_err166) } return true, err } @@ -30046,7 +23712,7 @@ type tCLIServiceProcessorGetTypeInfo struct { } func (p *tCLIServiceProcessorGetTypeInfo) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err188 error + var _write_err168 error args := TCLIServiceGetTypeInfoArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30097,21 +23763,21 @@ func (p *tCLIServiceProcessorGetTypeInfo) Process(ctx context.Context, seqId int return false, thrift.WrapTException(err) } } - _exc189 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTypeInfo: " + err2.Error()) + _exc169 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTypeInfo: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.EXCEPTION, seqId); err2 != nil { - _write_err188 = thrift.WrapTException(err2) + _write_err168 = thrift.WrapTException(err2) } - if err2 := _exc189.Write(ctx, oprot); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := _exc169.Write(ctx, oprot); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if _write_err188 != nil { - return false, thrift.WrapTException(_write_err188) + if _write_err168 != nil { + return false, thrift.WrapTException(_write_err168) } return true, err } else { @@ -30119,19 +23785,19 @@ func (p *tCLIServiceProcessorGetTypeInfo) Process(ctx context.Context, seqId int } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetTypeInfo", thrift.REPLY, seqId); err2 != nil { - _write_err188 = thrift.WrapTException(err2) + _write_err168 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err188 == nil && err2 != nil { - _write_err188 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err168 == nil && err2 != nil { + _write_err168 = thrift.WrapTException(err2) } - if _write_err188 != nil { - return false, thrift.WrapTException(_write_err188) + if _write_err168 != nil { + return false, thrift.WrapTException(_write_err168) } return true, err } @@ -30141,7 +23807,7 @@ type tCLIServiceProcessorGetCatalogs struct { } func (p *tCLIServiceProcessorGetCatalogs) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err190 error + var _write_err170 error args := TCLIServiceGetCatalogsArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30192,21 +23858,21 @@ func (p *tCLIServiceProcessorGetCatalogs) Process(ctx context.Context, seqId int return false, thrift.WrapTException(err) } } - _exc191 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCatalogs: " + err2.Error()) + _exc171 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCatalogs: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.EXCEPTION, seqId); err2 != nil { - _write_err190 = thrift.WrapTException(err2) + _write_err170 = thrift.WrapTException(err2) } - if err2 := _exc191.Write(ctx, oprot); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := _exc171.Write(ctx, oprot); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if _write_err190 != nil { - return false, thrift.WrapTException(_write_err190) + if _write_err170 != nil { + return false, thrift.WrapTException(_write_err170) } return true, err } else { @@ -30214,19 +23880,19 @@ func (p *tCLIServiceProcessorGetCatalogs) Process(ctx context.Context, seqId int } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetCatalogs", thrift.REPLY, seqId); err2 != nil { - _write_err190 = thrift.WrapTException(err2) + _write_err170 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err190 == nil && err2 != nil { - _write_err190 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err170 == nil && err2 != nil { + _write_err170 = thrift.WrapTException(err2) } - if _write_err190 != nil { - return false, thrift.WrapTException(_write_err190) + if _write_err170 != nil { + return false, thrift.WrapTException(_write_err170) } return true, err } @@ -30236,7 +23902,7 @@ type tCLIServiceProcessorGetSchemas struct { } func (p *tCLIServiceProcessorGetSchemas) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err192 error + var _write_err172 error args := TCLIServiceGetSchemasArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30287,21 +23953,21 @@ func (p *tCLIServiceProcessorGetSchemas) Process(ctx context.Context, seqId int3 return false, thrift.WrapTException(err) } } - _exc193 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetSchemas: " + err2.Error()) + _exc173 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetSchemas: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.EXCEPTION, seqId); err2 != nil { - _write_err192 = thrift.WrapTException(err2) + _write_err172 = thrift.WrapTException(err2) } - if err2 := _exc193.Write(ctx, oprot); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := _exc173.Write(ctx, oprot); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if _write_err192 != nil { - return false, thrift.WrapTException(_write_err192) + if _write_err172 != nil { + return false, thrift.WrapTException(_write_err172) } return true, err } else { @@ -30309,19 +23975,19 @@ func (p *tCLIServiceProcessorGetSchemas) Process(ctx context.Context, seqId int3 } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetSchemas", thrift.REPLY, seqId); err2 != nil { - _write_err192 = thrift.WrapTException(err2) + _write_err172 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err192 == nil && err2 != nil { - _write_err192 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err172 == nil && err2 != nil { + _write_err172 = thrift.WrapTException(err2) } - if _write_err192 != nil { - return false, thrift.WrapTException(_write_err192) + if _write_err172 != nil { + return false, thrift.WrapTException(_write_err172) } return true, err } @@ -30331,7 +23997,7 @@ type tCLIServiceProcessorGetTables struct { } func (p *tCLIServiceProcessorGetTables) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err194 error + var _write_err174 error args := TCLIServiceGetTablesArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30382,21 +24048,21 @@ func (p *tCLIServiceProcessorGetTables) Process(ctx context.Context, seqId int32 return false, thrift.WrapTException(err) } } - _exc195 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTables: " + err2.Error()) + _exc175 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTables: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetTables", thrift.EXCEPTION, seqId); err2 != nil { - _write_err194 = thrift.WrapTException(err2) + _write_err174 = thrift.WrapTException(err2) } - if err2 := _exc195.Write(ctx, oprot); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := _exc175.Write(ctx, oprot); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if _write_err194 != nil { - return false, thrift.WrapTException(_write_err194) + if _write_err174 != nil { + return false, thrift.WrapTException(_write_err174) } return true, err } else { @@ -30404,19 +24070,19 @@ func (p *tCLIServiceProcessorGetTables) Process(ctx context.Context, seqId int32 } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetTables", thrift.REPLY, seqId); err2 != nil { - _write_err194 = thrift.WrapTException(err2) + _write_err174 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err194 == nil && err2 != nil { - _write_err194 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err174 == nil && err2 != nil { + _write_err174 = thrift.WrapTException(err2) } - if _write_err194 != nil { - return false, thrift.WrapTException(_write_err194) + if _write_err174 != nil { + return false, thrift.WrapTException(_write_err174) } return true, err } @@ -30426,7 +24092,7 @@ type tCLIServiceProcessorGetTableTypes struct { } func (p *tCLIServiceProcessorGetTableTypes) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err196 error + var _write_err176 error args := TCLIServiceGetTableTypesArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30477,21 +24143,21 @@ func (p *tCLIServiceProcessorGetTableTypes) Process(ctx context.Context, seqId i return false, thrift.WrapTException(err) } } - _exc197 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTableTypes: " + err2.Error()) + _exc177 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetTableTypes: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.EXCEPTION, seqId); err2 != nil { - _write_err196 = thrift.WrapTException(err2) + _write_err176 = thrift.WrapTException(err2) } - if err2 := _exc197.Write(ctx, oprot); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := _exc177.Write(ctx, oprot); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if _write_err196 != nil { - return false, thrift.WrapTException(_write_err196) + if _write_err176 != nil { + return false, thrift.WrapTException(_write_err176) } return true, err } else { @@ -30499,19 +24165,19 @@ func (p *tCLIServiceProcessorGetTableTypes) Process(ctx context.Context, seqId i } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetTableTypes", thrift.REPLY, seqId); err2 != nil { - _write_err196 = thrift.WrapTException(err2) + _write_err176 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err196 == nil && err2 != nil { - _write_err196 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err176 == nil && err2 != nil { + _write_err176 = thrift.WrapTException(err2) } - if _write_err196 != nil { - return false, thrift.WrapTException(_write_err196) + if _write_err176 != nil { + return false, thrift.WrapTException(_write_err176) } return true, err } @@ -30521,7 +24187,7 @@ type tCLIServiceProcessorGetColumns struct { } func (p *tCLIServiceProcessorGetColumns) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err198 error + var _write_err178 error args := TCLIServiceGetColumnsArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30572,21 +24238,21 @@ func (p *tCLIServiceProcessorGetColumns) Process(ctx context.Context, seqId int3 return false, thrift.WrapTException(err) } } - _exc199 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetColumns: " + err2.Error()) + _exc179 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetColumns: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetColumns", thrift.EXCEPTION, seqId); err2 != nil { - _write_err198 = thrift.WrapTException(err2) + _write_err178 = thrift.WrapTException(err2) } - if err2 := _exc199.Write(ctx, oprot); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := _exc179.Write(ctx, oprot); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if _write_err198 != nil { - return false, thrift.WrapTException(_write_err198) + if _write_err178 != nil { + return false, thrift.WrapTException(_write_err178) } return true, err } else { @@ -30594,19 +24260,19 @@ func (p *tCLIServiceProcessorGetColumns) Process(ctx context.Context, seqId int3 } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetColumns", thrift.REPLY, seqId); err2 != nil { - _write_err198 = thrift.WrapTException(err2) + _write_err178 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err198 == nil && err2 != nil { - _write_err198 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err178 == nil && err2 != nil { + _write_err178 = thrift.WrapTException(err2) } - if _write_err198 != nil { - return false, thrift.WrapTException(_write_err198) + if _write_err178 != nil { + return false, thrift.WrapTException(_write_err178) } return true, err } @@ -30616,7 +24282,7 @@ type tCLIServiceProcessorGetFunctions struct { } func (p *tCLIServiceProcessorGetFunctions) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err200 error + var _write_err180 error args := TCLIServiceGetFunctionsArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30667,21 +24333,21 @@ func (p *tCLIServiceProcessorGetFunctions) Process(ctx context.Context, seqId in return false, thrift.WrapTException(err) } } - _exc201 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetFunctions: " + err2.Error()) + _exc181 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetFunctions: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.EXCEPTION, seqId); err2 != nil { - _write_err200 = thrift.WrapTException(err2) + _write_err180 = thrift.WrapTException(err2) } - if err2 := _exc201.Write(ctx, oprot); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := _exc181.Write(ctx, oprot); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if _write_err200 != nil { - return false, thrift.WrapTException(_write_err200) + if _write_err180 != nil { + return false, thrift.WrapTException(_write_err180) } return true, err } else { @@ -30689,19 +24355,19 @@ func (p *tCLIServiceProcessorGetFunctions) Process(ctx context.Context, seqId in } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetFunctions", thrift.REPLY, seqId); err2 != nil { - _write_err200 = thrift.WrapTException(err2) + _write_err180 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err200 == nil && err2 != nil { - _write_err200 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err180 == nil && err2 != nil { + _write_err180 = thrift.WrapTException(err2) } - if _write_err200 != nil { - return false, thrift.WrapTException(_write_err200) + if _write_err180 != nil { + return false, thrift.WrapTException(_write_err180) } return true, err } @@ -30711,7 +24377,7 @@ type tCLIServiceProcessorGetPrimaryKeys struct { } func (p *tCLIServiceProcessorGetPrimaryKeys) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err202 error + var _write_err182 error args := TCLIServiceGetPrimaryKeysArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30762,21 +24428,21 @@ func (p *tCLIServiceProcessorGetPrimaryKeys) Process(ctx context.Context, seqId return false, thrift.WrapTException(err) } } - _exc203 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetPrimaryKeys: " + err2.Error()) + _exc183 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetPrimaryKeys: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.EXCEPTION, seqId); err2 != nil { - _write_err202 = thrift.WrapTException(err2) + _write_err182 = thrift.WrapTException(err2) } - if err2 := _exc203.Write(ctx, oprot); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := _exc183.Write(ctx, oprot); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if _write_err202 != nil { - return false, thrift.WrapTException(_write_err202) + if _write_err182 != nil { + return false, thrift.WrapTException(_write_err182) } return true, err } else { @@ -30784,19 +24450,19 @@ func (p *tCLIServiceProcessorGetPrimaryKeys) Process(ctx context.Context, seqId } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetPrimaryKeys", thrift.REPLY, seqId); err2 != nil { - _write_err202 = thrift.WrapTException(err2) + _write_err182 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err202 == nil && err2 != nil { - _write_err202 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err182 == nil && err2 != nil { + _write_err182 = thrift.WrapTException(err2) } - if _write_err202 != nil { - return false, thrift.WrapTException(_write_err202) + if _write_err182 != nil { + return false, thrift.WrapTException(_write_err182) } return true, err } @@ -30806,7 +24472,7 @@ type tCLIServiceProcessorGetCrossReference struct { } func (p *tCLIServiceProcessorGetCrossReference) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err204 error + var _write_err184 error args := TCLIServiceGetCrossReferenceArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30857,21 +24523,21 @@ func (p *tCLIServiceProcessorGetCrossReference) Process(ctx context.Context, seq return false, thrift.WrapTException(err) } } - _exc205 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCrossReference: " + err2.Error()) + _exc185 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetCrossReference: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.EXCEPTION, seqId); err2 != nil { - _write_err204 = thrift.WrapTException(err2) + _write_err184 = thrift.WrapTException(err2) } - if err2 := _exc205.Write(ctx, oprot); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := _exc185.Write(ctx, oprot); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if _write_err204 != nil { - return false, thrift.WrapTException(_write_err204) + if _write_err184 != nil { + return false, thrift.WrapTException(_write_err184) } return true, err } else { @@ -30879,19 +24545,19 @@ func (p *tCLIServiceProcessorGetCrossReference) Process(ctx context.Context, seq } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetCrossReference", thrift.REPLY, seqId); err2 != nil { - _write_err204 = thrift.WrapTException(err2) + _write_err184 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err204 == nil && err2 != nil { - _write_err204 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err184 == nil && err2 != nil { + _write_err184 = thrift.WrapTException(err2) } - if _write_err204 != nil { - return false, thrift.WrapTException(_write_err204) + if _write_err184 != nil { + return false, thrift.WrapTException(_write_err184) } return true, err } @@ -30901,7 +24567,7 @@ type tCLIServiceProcessorGetOperationStatus struct { } func (p *tCLIServiceProcessorGetOperationStatus) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err206 error + var _write_err186 error args := TCLIServiceGetOperationStatusArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -30952,21 +24618,21 @@ func (p *tCLIServiceProcessorGetOperationStatus) Process(ctx context.Context, se return false, thrift.WrapTException(err) } } - _exc207 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetOperationStatus: " + err2.Error()) + _exc187 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetOperationStatus: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.EXCEPTION, seqId); err2 != nil { - _write_err206 = thrift.WrapTException(err2) + _write_err186 = thrift.WrapTException(err2) } - if err2 := _exc207.Write(ctx, oprot); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := _exc187.Write(ctx, oprot); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if _write_err206 != nil { - return false, thrift.WrapTException(_write_err206) + if _write_err186 != nil { + return false, thrift.WrapTException(_write_err186) } return true, err } else { @@ -30974,19 +24640,19 @@ func (p *tCLIServiceProcessorGetOperationStatus) Process(ctx context.Context, se } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetOperationStatus", thrift.REPLY, seqId); err2 != nil { - _write_err206 = thrift.WrapTException(err2) + _write_err186 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err206 == nil && err2 != nil { - _write_err206 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err186 == nil && err2 != nil { + _write_err186 = thrift.WrapTException(err2) } - if _write_err206 != nil { - return false, thrift.WrapTException(_write_err206) + if _write_err186 != nil { + return false, thrift.WrapTException(_write_err186) } return true, err } @@ -30996,7 +24662,7 @@ type tCLIServiceProcessorCancelOperation struct { } func (p *tCLIServiceProcessorCancelOperation) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err208 error + var _write_err188 error args := TCLIServiceCancelOperationArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31047,21 +24713,21 @@ func (p *tCLIServiceProcessorCancelOperation) Process(ctx context.Context, seqId return false, thrift.WrapTException(err) } } - _exc209 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelOperation: " + err2.Error()) + _exc189 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelOperation: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.EXCEPTION, seqId); err2 != nil { - _write_err208 = thrift.WrapTException(err2) + _write_err188 = thrift.WrapTException(err2) } - if err2 := _exc209.Write(ctx, oprot); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := _exc189.Write(ctx, oprot); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if _write_err208 != nil { - return false, thrift.WrapTException(_write_err208) + if _write_err188 != nil { + return false, thrift.WrapTException(_write_err188) } return true, err } else { @@ -31069,19 +24735,19 @@ func (p *tCLIServiceProcessorCancelOperation) Process(ctx context.Context, seqId } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "CancelOperation", thrift.REPLY, seqId); err2 != nil { - _write_err208 = thrift.WrapTException(err2) + _write_err188 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err208 == nil && err2 != nil { - _write_err208 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err188 == nil && err2 != nil { + _write_err188 = thrift.WrapTException(err2) } - if _write_err208 != nil { - return false, thrift.WrapTException(_write_err208) + if _write_err188 != nil { + return false, thrift.WrapTException(_write_err188) } return true, err } @@ -31091,7 +24757,7 @@ type tCLIServiceProcessorCloseOperation struct { } func (p *tCLIServiceProcessorCloseOperation) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err210 error + var _write_err190 error args := TCLIServiceCloseOperationArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31142,21 +24808,21 @@ func (p *tCLIServiceProcessorCloseOperation) Process(ctx context.Context, seqId return false, thrift.WrapTException(err) } } - _exc211 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseOperation: " + err2.Error()) + _exc191 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CloseOperation: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.EXCEPTION, seqId); err2 != nil { - _write_err210 = thrift.WrapTException(err2) + _write_err190 = thrift.WrapTException(err2) } - if err2 := _exc211.Write(ctx, oprot); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := _exc191.Write(ctx, oprot); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if _write_err210 != nil { - return false, thrift.WrapTException(_write_err210) + if _write_err190 != nil { + return false, thrift.WrapTException(_write_err190) } return true, err } else { @@ -31164,19 +24830,19 @@ func (p *tCLIServiceProcessorCloseOperation) Process(ctx context.Context, seqId } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "CloseOperation", thrift.REPLY, seqId); err2 != nil { - _write_err210 = thrift.WrapTException(err2) + _write_err190 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err210 == nil && err2 != nil { - _write_err210 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err190 == nil && err2 != nil { + _write_err190 = thrift.WrapTException(err2) } - if _write_err210 != nil { - return false, thrift.WrapTException(_write_err210) + if _write_err190 != nil { + return false, thrift.WrapTException(_write_err190) } return true, err } @@ -31186,7 +24852,7 @@ type tCLIServiceProcessorGetResultSetMetadata struct { } func (p *tCLIServiceProcessorGetResultSetMetadata) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err212 error + var _write_err192 error args := TCLIServiceGetResultSetMetadataArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31237,21 +24903,21 @@ func (p *tCLIServiceProcessorGetResultSetMetadata) Process(ctx context.Context, return false, thrift.WrapTException(err) } } - _exc213 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetResultSetMetadata: " + err2.Error()) + _exc193 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetResultSetMetadata: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.EXCEPTION, seqId); err2 != nil { - _write_err212 = thrift.WrapTException(err2) + _write_err192 = thrift.WrapTException(err2) } - if err2 := _exc213.Write(ctx, oprot); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := _exc193.Write(ctx, oprot); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if _write_err212 != nil { - return false, thrift.WrapTException(_write_err212) + if _write_err192 != nil { + return false, thrift.WrapTException(_write_err192) } return true, err } else { @@ -31259,19 +24925,19 @@ func (p *tCLIServiceProcessorGetResultSetMetadata) Process(ctx context.Context, } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetResultSetMetadata", thrift.REPLY, seqId); err2 != nil { - _write_err212 = thrift.WrapTException(err2) + _write_err192 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err212 == nil && err2 != nil { - _write_err212 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err192 == nil && err2 != nil { + _write_err192 = thrift.WrapTException(err2) } - if _write_err212 != nil { - return false, thrift.WrapTException(_write_err212) + if _write_err192 != nil { + return false, thrift.WrapTException(_write_err192) } return true, err } @@ -31281,7 +24947,7 @@ type tCLIServiceProcessorFetchResults struct { } func (p *tCLIServiceProcessorFetchResults) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err214 error + var _write_err194 error args := TCLIServiceFetchResultsArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31332,21 +24998,21 @@ func (p *tCLIServiceProcessorFetchResults) Process(ctx context.Context, seqId in return false, thrift.WrapTException(err) } } - _exc215 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing FetchResults: " + err2.Error()) + _exc195 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing FetchResults: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "FetchResults", thrift.EXCEPTION, seqId); err2 != nil { - _write_err214 = thrift.WrapTException(err2) + _write_err194 = thrift.WrapTException(err2) } - if err2 := _exc215.Write(ctx, oprot); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := _exc195.Write(ctx, oprot); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if _write_err214 != nil { - return false, thrift.WrapTException(_write_err214) + if _write_err194 != nil { + return false, thrift.WrapTException(_write_err194) } return true, err } else { @@ -31354,19 +25020,19 @@ func (p *tCLIServiceProcessorFetchResults) Process(ctx context.Context, seqId in } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "FetchResults", thrift.REPLY, seqId); err2 != nil { - _write_err214 = thrift.WrapTException(err2) + _write_err194 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err214 == nil && err2 != nil { - _write_err214 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err194 == nil && err2 != nil { + _write_err194 = thrift.WrapTException(err2) } - if _write_err214 != nil { - return false, thrift.WrapTException(_write_err214) + if _write_err194 != nil { + return false, thrift.WrapTException(_write_err194) } return true, err } @@ -31376,7 +25042,7 @@ type tCLIServiceProcessorGetDelegationToken struct { } func (p *tCLIServiceProcessorGetDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err216 error + var _write_err196 error args := TCLIServiceGetDelegationTokenArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31427,21 +25093,21 @@ func (p *tCLIServiceProcessorGetDelegationToken) Process(ctx context.Context, se return false, thrift.WrapTException(err) } } - _exc217 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetDelegationToken: " + err2.Error()) + _exc197 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing GetDelegationToken: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { - _write_err216 = thrift.WrapTException(err2) + _write_err196 = thrift.WrapTException(err2) } - if err2 := _exc217.Write(ctx, oprot); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := _exc197.Write(ctx, oprot); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if _write_err216 != nil { - return false, thrift.WrapTException(_write_err216) + if _write_err196 != nil { + return false, thrift.WrapTException(_write_err196) } return true, err } else { @@ -31449,19 +25115,19 @@ func (p *tCLIServiceProcessorGetDelegationToken) Process(ctx context.Context, se } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "GetDelegationToken", thrift.REPLY, seqId); err2 != nil { - _write_err216 = thrift.WrapTException(err2) + _write_err196 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err216 == nil && err2 != nil { - _write_err216 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err196 == nil && err2 != nil { + _write_err196 = thrift.WrapTException(err2) } - if _write_err216 != nil { - return false, thrift.WrapTException(_write_err216) + if _write_err196 != nil { + return false, thrift.WrapTException(_write_err196) } return true, err } @@ -31471,7 +25137,7 @@ type tCLIServiceProcessorCancelDelegationToken struct { } func (p *tCLIServiceProcessorCancelDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err218 error + var _write_err198 error args := TCLIServiceCancelDelegationTokenArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31522,21 +25188,21 @@ func (p *tCLIServiceProcessorCancelDelegationToken) Process(ctx context.Context, return false, thrift.WrapTException(err) } } - _exc219 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelDelegationToken: " + err2.Error()) + _exc199 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing CancelDelegationToken: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { - _write_err218 = thrift.WrapTException(err2) + _write_err198 = thrift.WrapTException(err2) } - if err2 := _exc219.Write(ctx, oprot); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := _exc199.Write(ctx, oprot); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if _write_err218 != nil { - return false, thrift.WrapTException(_write_err218) + if _write_err198 != nil { + return false, thrift.WrapTException(_write_err198) } return true, err } else { @@ -31544,19 +25210,19 @@ func (p *tCLIServiceProcessorCancelDelegationToken) Process(ctx context.Context, } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "CancelDelegationToken", thrift.REPLY, seqId); err2 != nil { - _write_err218 = thrift.WrapTException(err2) + _write_err198 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err218 == nil && err2 != nil { - _write_err218 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err198 == nil && err2 != nil { + _write_err198 = thrift.WrapTException(err2) } - if _write_err218 != nil { - return false, thrift.WrapTException(_write_err218) + if _write_err198 != nil { + return false, thrift.WrapTException(_write_err198) } return true, err } @@ -31566,7 +25232,7 @@ type tCLIServiceProcessorRenewDelegationToken struct { } func (p *tCLIServiceProcessorRenewDelegationToken) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) { - var _write_err220 error + var _write_err200 error args := TCLIServiceRenewDelegationTokenArgs{} if err2 := args.Read(ctx, iprot); err2 != nil { iprot.ReadMessageEnd(ctx) @@ -31617,21 +25283,21 @@ func (p *tCLIServiceProcessorRenewDelegationToken) Process(ctx context.Context, return false, thrift.WrapTException(err) } } - _exc221 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing RenewDelegationToken: " + err2.Error()) + _exc201 := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing RenewDelegationToken: " + err2.Error()) if err2 := oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.EXCEPTION, seqId); err2 != nil { - _write_err220 = thrift.WrapTException(err2) + _write_err200 = thrift.WrapTException(err2) } - if err2 := _exc221.Write(ctx, oprot); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := _exc201.Write(ctx, oprot); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if _write_err220 != nil { - return false, thrift.WrapTException(_write_err220) + if _write_err200 != nil { + return false, thrift.WrapTException(_write_err200) } return true, err } else { @@ -31639,19 +25305,19 @@ func (p *tCLIServiceProcessorRenewDelegationToken) Process(ctx context.Context, } tickerCancel() if err2 := oprot.WriteMessageBegin(ctx, "RenewDelegationToken", thrift.REPLY, seqId); err2 != nil { - _write_err220 = thrift.WrapTException(err2) + _write_err200 = thrift.WrapTException(err2) } - if err2 := result.Write(ctx, oprot); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := result.Write(ctx, oprot); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if err2 := oprot.WriteMessageEnd(ctx); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := oprot.WriteMessageEnd(ctx); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if err2 := oprot.Flush(ctx); _write_err220 == nil && err2 != nil { - _write_err220 = thrift.WrapTException(err2) + if err2 := oprot.Flush(ctx); _write_err200 == nil && err2 != nil { + _write_err200 = thrift.WrapTException(err2) } - if _write_err220 != nil { - return false, thrift.WrapTException(_write_err220) + if _write_err200 != nil { + return false, thrift.WrapTException(_write_err200) } return true, err } @@ -34691,9 +28357,7 @@ func (p *TCLIServiceCloseOperationArgs) Read(ctx context.Context, iprot thrift.T } func (p *TCLIServiceCloseOperationArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error { - p.Req = &TCloseOperationReq{ - CloseReason: 0, -} + p.Req = &TCloseOperationReq{} if err := p.Req.Read(ctx, iprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err) }