(prefixes []string, timeoutMs *int64)
| 652 | } |
| 653 | |
| 654 | func (s *Session) ExecuteFastLastDataQueryForOnePrefixPath(prefixes []string, timeoutMs *int64) (*SessionDataSet, error) { |
| 655 | request := rpc.TSFastLastDataQueryForOnePrefixPathReq{ |
| 656 | SessionId: s.sessionId, |
| 657 | StatementId: s.requestStatementId, |
| 658 | Prefixes: prefixes, |
| 659 | Timeout: timeoutMs, |
| 660 | } |
| 661 | if resp, err := s.client.ExecuteFastLastDataQueryForOnePrefixPath(context.Background(), &request); err == nil { |
| 662 | if statusErr := VerifySuccess(resp.Status); statusErr == nil { |
| 663 | return NewSessionDataSet("", resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, *resp.QueryId, s.requestStatementId, s.client, s.sessionId, resp.QueryResult_, resp.IgnoreTimeStamp != nil && *resp.IgnoreTimeStamp, timeoutMs, *resp.MoreData, s.config.FetchSize, s.config.TimeZone, s.timeFactor, resp.GetColumnIndex2TsBlockColumnIndexList()) |
| 664 | } else { |
| 665 | return nil, statusErr |
| 666 | } |
| 667 | } else { |
| 668 | if s.reconnect() { |
| 669 | request.SessionId = s.sessionId |
| 670 | resp, err = s.client.ExecuteFastLastDataQueryForOnePrefixPath(context.Background(), &request) |
| 671 | if err == nil { |
| 672 | if resp == nil { |
| 673 | return nil, fmt.Errorf("received nil response after reconnect") |
| 674 | } |
| 675 | if statusErr := VerifySuccess(resp.Status); statusErr == nil { |
| 676 | return NewSessionDataSet("", resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, *resp.QueryId, s.requestStatementId, s.client, s.sessionId, resp.QueryResult_, resp.IgnoreTimeStamp != nil && *resp.IgnoreTimeStamp, timeoutMs, *resp.MoreData, s.config.FetchSize, s.config.TimeZone, s.timeFactor, resp.GetColumnIndex2TsBlockColumnIndexList()) |
| 677 | } else { |
| 678 | return nil, statusErr |
| 679 | } |
| 680 | } |
| 681 | } |
| 682 | return nil, err |
| 683 | } |
| 684 | } |
| 685 | |
| 686 | func (s *Session) genTSInsertRecordReq(deviceId string, time int64, |
| 687 | measurements []string, |
nothing calls this directly
no test coverage detected