mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
common/clickhousedb: disable experimental analyzer, only when using FILL
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ClickHouse/clickhouse-go/v2"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"akvorado/common/schema"
|
||||
@@ -242,6 +243,9 @@ 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