sync documentation, add remark about to_timestamp and redshift (#9841)

This commit is contained in:
Sven Klemm
2017-11-14 11:33:55 +01:00
committed by Daniel Lee
parent b1a6c7814d
commit 108f582ec4
3 changed files with 5 additions and 4 deletions

View File

@ -72,6 +72,7 @@ func (m *PostgresMacroEngine) evaluateMacro(name string, args []string) (string,
}
return fmt.Sprintf("extract(epoch from %s) as \"time\"", args[0]), nil
case "__timeFilter":
// dont use to_timestamp in this macro for redshift compatibility #9566
if len(args) == 0 {
return "", fmt.Errorf("missing time column argument for macro %v", name)
}