mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
orchestrator/clickhouse: add compatibility check for INTERPOLATE issue
I don't want to keep disabling the experimental analyzer forever. The version check could be turned into disabling the experimental analyzer, but this is better to push people to update their versions. To be pushed only when 24.3 (LTS) and 24.4 gets the fix.
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ClickHouse/clickhouse-go/v2"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"akvorado/common/schema"
|
||||
@@ -243,9 +242,6 @@ ORDER BY Time WITH FILL
|
||||
Time time.Time `json:"t"`
|
||||
Gbps float64 `json:"gbps"`
|
||||
}{}
|
||||
ctx = clickhouse.Context(ctx, clickhouse.WithSettings(clickhouse.Settings{
|
||||
"allow_experimental_analyzer": 0,
|
||||
}))
|
||||
err := c.d.ClickHouseDB.Conn.Select(ctx, &results, strings.TrimSpace(query))
|
||||
if err != nil {
|
||||
c.r.Err(err).Msg("unable to query database")
|
||||
|
||||
Reference in New Issue
Block a user