From fafdcff718f80ad0c14ee9b927b7919e5c2b0989 Mon Sep 17 00:00:00 2001 From: TCeason Date: Tue, 5 Nov 2024 10:29:26 +0800 Subject: [PATCH] fix(query): interval expr should not print interval keyword --- src/query/ast/src/ast/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/ast/src/ast/expr.rs b/src/query/ast/src/ast/expr.rs index b6c0b40ed866..52f8b3d2239c 100644 --- a/src/query/ast/src/ast/expr.rs +++ b/src/query/ast/src/ast/expr.rs @@ -705,7 +705,7 @@ impl Display for Expr { write!(f, "}}")?; } Expr::Interval { expr, unit, .. } => { - write!(f, "INTERVAL {expr} {unit}")?; + write!(f, "{expr} {unit}")?; } Expr::DateAdd { unit,