fix postgres to have precision of ms (#33853)

This commit is contained in:
ying-jeanne
2021-05-10 22:22:13 +08:00
committed by GitHub
parent 382fcca530
commit 0b97cdcee1
2 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@ func (m *postgresMacroEngine) evaluateMacro(name string, args []string) (string,
}
if m.timescaledb {
return fmt.Sprintf("time_bucket('%.1fs',%s)", interval.Seconds(), args[0]), nil
return fmt.Sprintf("time_bucket('%.3fs',%s)", interval.Seconds(), args[0]), nil
}
return fmt.Sprintf(