From 031dcc29be9ff9eaa471ef4ed04bafa036606298 Mon Sep 17 00:00:00 2001 From: lmatz Date: Fri, 27 Dec 2024 17:34:56 +0800 Subject: [PATCH] use as_report --- src/frontend/src/binder/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/binder/query.rs b/src/frontend/src/binder/query.rs index 085b3342d4dba..f7d4d607837e4 100644 --- a/src/frontend/src/binder/query.rs +++ b/src/frontend/src/binder/query.rs @@ -213,7 +213,7 @@ impl Binder { // eval error Some(Err(e)) => { return Err(ErrorCode::ExprError( - format!("expects an integer or expression that can be evaluated to an integer after LIMIT,\nbut the evaluation of the expression returns error:{}", e + format!("expects an integer or expression that can be evaluated to an integer after LIMIT,\nbut the evaluation of the expression returns error:{}", e.as_report() ).into(), ).into()) }