Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add support for promscale ext 0.2.x
Browse files Browse the repository at this point in the history
This is the newest version of the extension.
Start support for pushdowns of vector selector
and rate/increase with this version as the
beta had some correctness issues with rate/increase.
  • Loading branch information
cevian committed Jul 2, 2021
1 parent 5dbb803 commit 07c815d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/pgmodel/querier/query_builder.go
Expand Up @@ -471,8 +471,8 @@ func calledByTimestamp(path []parser.Node) bool {
return false
}

var vectorSelectorExtensionRange = semver.MustParseRange(">= 0.1.3-beta")
var rateIncreaseExtensionRange = semver.MustParseRange(">= 0.1.3-beta")
var vectorSelectorExtensionRange = semver.MustParseRange(">= 0.2.0")
var rateIncreaseExtensionRange = semver.MustParseRange(">= 0.2.0")

func callAggregator(hints *storage.SelectHints, funcName string) (*aggregators, error) {
queryStart := hints.Start + hints.Range
Expand Down
3 changes: 2 additions & 1 deletion pkg/version/version.go
Expand Up @@ -59,7 +59,8 @@ var (
TimescaleVersionRange = timescaleVersionSafeRange.OR(timescaleVersionWarnRange)

// ExtVersionRangeString is a range of required promscale extension versions
ExtVersionRangeString = "=0.1.x"
// support 0.1.x and 0.2.x
ExtVersionRangeString = ">=0.1.0 <0.2.99"
ExtVersionRange = semver.MustParseRange(ExtVersionRangeString)
)

Expand Down

0 comments on commit 07c815d

Please sign in to comment.