transfer query end = end+1 (#406)

This commit is contained in:
yubo 2020-11-17 22:08:32 +08:00 committed by GitHub
parent d78301567b
commit c430657738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ func (cfg M3dbSection) queryDataOptions(inputs []dataobj.QueryData) (index.Query
return index.Query{idx.NewDisjunctionQuery(q...)},
index.QueryOptions{
StartInclusive: time.Unix(inputs[0].Start, 0),
EndExclusive: time.Unix(inputs[0].End, 0),
EndExclusive: time.Unix(inputs[0].End+1, 0),
SeriesLimit: cfg.SeriesLimit,
DocsLimit: cfg.DocsLimit,
}
@ -38,7 +38,7 @@ func (cfg M3dbSection) queryDataUIOptions(input dataobj.QueryDataForUI) (index.Q
return index.Query{idx.NewConjunctionQuery(q1, q2, q3)},
index.QueryOptions{
StartInclusive: time.Unix(input.Start, 0),
EndExclusive: time.Unix(input.End, 0),
EndExclusive: time.Unix(input.End+1, 0),
SeriesLimit: cfg.SeriesLimit,
DocsLimit: cfg.DocsLimit,
}