From 2764414bfd5e41d39e5c8015bf3ad8dabf39ecde Mon Sep 17 00:00:00 2001 From: vijeyash Date: Tue, 11 Jul 2023 22:02:40 +0530 Subject: [PATCH] patch for datatime overflow error --- client/pkg/clickhouse/statements.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/pkg/clickhouse/statements.go b/client/pkg/clickhouse/statements.go index 9410028b..ae2e7ca0 100644 --- a/client/pkg/clickhouse/statements.go +++ b/client/pkg/clickhouse/statements.go @@ -6,7 +6,7 @@ const kubvizTable DBStatement = ` CREATE TABLE IF NOT EXISTS events ( ClusterName String, Id String, - EventTime DateTime, + EventTime DateTime64, OpType String, Name String, Namespace String, @@ -15,8 +15,8 @@ const kubvizTable DBStatement = ` Reason String, Host String, Event String, - FirstTime DateTime, - LastTime DateTime + FirstTime DateTime64, + LastTime DateTime64 ) engine=File(TabSeparated) ` const rakeesTable DBStatement = `