Skip to content

Commit 3cf08b5

Browse files
fix: Filters for only records with hisStart
This prevents reading non-historized points
1 parent 85b317d commit 3cf08b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugin/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (datasource *Datasource) query(ctx context.Context, pCtx backend.PluginCont
166166
return response
167167

168168
case "hisReadFilter":
169-
pointsGrid, readErr := datasource.read(model.HisReadFilter, variables)
169+
pointsGrid, readErr := datasource.read(model.HisReadFilter+" and hisStart", variables)
170170
if readErr != nil {
171171
log.DefaultLogger.Error(readErr.Error())
172172
return backend.ErrDataResponse(backend.StatusBadRequest, fmt.Sprintf("HisReadFilter failure: %v", readErr.Error()))

0 commit comments

Comments
 (0)