From f95f168963796ce24df54a43e2021704c1d2acda Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Thu, 2 Mar 2023 10:34:32 +0800 Subject: [PATCH 1/2] chore(query): add more error messages --- src/query/sql/src/planner/binder/bind_context.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/query/sql/src/planner/binder/bind_context.rs b/src/query/sql/src/planner/binder/bind_context.rs index b5a1ab01dd0cc..a9cae4d555746 100644 --- a/src/query/sql/src/planner/binder/bind_context.rs +++ b/src/query/sql/src/planner/binder/bind_context.rs @@ -228,12 +228,12 @@ impl BindContext { } if result.is_empty() { - Err(ErrorCode::SemanticError("column doesn't exist".to_string()).set_span(span)) + Err(ErrorCode::SemanticError(format!("column {column} doesn't exist")).set_span(span)) } else if result.len() > 1 { - Err( - ErrorCode::SemanticError("column reference is ambiguous".to_string()) - .set_span(span), - ) + Err(ErrorCode::SemanticError(format!( + "column {column} reference is ambiguous, got {result:?}" + )) + .set_span(span)) } else { Ok(result.remove(0)) } From 6f91284e6914abcb7fc4198dd0c6a7ad8755a683 Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Thu, 2 Mar 2023 10:48:54 +0800 Subject: [PATCH 2/2] chore(query): add more error messages --- docs/doc/10-deploy/01-installing-databend.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/doc/10-deploy/01-installing-databend.md b/docs/doc/10-deploy/01-installing-databend.md index add4a1fa552ef..74c9098f9dd81 100644 --- a/docs/doc/10-deploy/01-installing-databend.md +++ b/docs/doc/10-deploy/01-installing-databend.md @@ -7,7 +7,7 @@ description: Databend offers you these options for downloading the installation packages: -- [Manual download](#manual-download): You can download the installation package for your platfom directly from the Databend website. +- [Manual download](#manual-download): You can download the installation package for your platform directly from the Databend website. - [APT Package Manager](#apt-package-manager): You can use the APT package manager to download and install Databend on Ubuntu or Debian. - [Docker](#docker): You can use Docker to download and run Databend in a containerized environment.