(paths []string, startTime int64, endTime int64)
| 991 | } |
| 992 | |
| 993 | func (s *Session) ExecuteRawDataQuery(paths []string, startTime int64, endTime int64) (*SessionDataSet, error) { |
| 994 | request := rpc.TSRawDataQueryReq{ |
| 995 | SessionId: s.sessionId, |
| 996 | Paths: paths, |
| 997 | FetchSize: &s.config.FetchSize, |
| 998 | StartTime: startTime, |
| 999 | EndTime: endTime, |
| 1000 | StatementId: s.requestStatementId, |
| 1001 | } |
| 1002 | resp, err := s.client.ExecuteRawDataQueryV2(context.Background(), &request) |
| 1003 | |
| 1004 | if err != nil && resp == nil { |
| 1005 | if s.reconnect() { |
| 1006 | request.SessionId = s.sessionId |
| 1007 | request.StatementId = s.requestStatementId |
| 1008 | resp, err = s.client.ExecuteRawDataQueryV2(context.Background(), &request) |
| 1009 | } |
| 1010 | } |
| 1011 | |
| 1012 | return s.genDataSet("", resp) |
| 1013 | } |
| 1014 | |
| 1015 | func (s *Session) ExecuteUpdateStatement(sql string) (*SessionDataSet, error) { |
| 1016 | request := rpc.TSExecuteStatementReq{ |
nothing calls this directly
no test coverage detected