| 5956 | } |
| 5957 | |
| 5958 | func (p *TSFetchMetadataResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 5959 | if p.IsSetColumnsList() { |
| 5960 | if err := oprot.WriteFieldBegin(ctx, "columnsList", thrift.LIST, 3); err != nil { |
| 5961 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:columnsList: ", p), err) } |
| 5962 | if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.ColumnsList)); err != nil { |
| 5963 | return thrift.PrependError("error writing list begin: ", err) |
| 5964 | } |
| 5965 | for _, v := range p.ColumnsList { |
| 5966 | if err := oprot.WriteString(ctx, string(v)); err != nil { |
| 5967 | return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } |
| 5968 | } |
| 5969 | if err := oprot.WriteListEnd(ctx); err != nil { |
| 5970 | return thrift.PrependError("error writing list end: ", err) |
| 5971 | } |
| 5972 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 5973 | return thrift.PrependError(fmt.Sprintf("%T write field end error 3:columnsList: ", p), err) } |
| 5974 | } |
| 5975 | return err |
| 5976 | } |
| 5977 | |
| 5978 | func (p *TSFetchMetadataResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 5979 | if p.IsSetDataType() { |