Skip to content

Commit

Permalink
remove redundant debugging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhseh committed Feb 19, 2024
1 parent dccf8fd commit 461fa4e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/frontend/src/handler/create_sql_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,9 @@ pub async fn handle_create_sql_function(
}
}
Err(e) => {
println!("e: {:#?}", e);
if let ErrorCode::BindErrorRoot { expr: _, error } = e.inner() {
let invalid_msg = error.to_string();

println!("invalid_msg: {}", invalid_msg);

// Valid error message for hint display
let Some(_) = invalid_msg.as_str().find(SQL_UDF_PATTERN) else {
return Err(
Expand All @@ -246,8 +243,6 @@ pub async fn handle_create_sql_function(
let invalid_item_name =
invalid_msg.split_whitespace().last().unwrap_or("null");

println!("invalid_item_name: {}", invalid_item_name);

// Find the invalid parameter / column
let Some(idx) = find_target(body.as_str(), invalid_item_name) else {
return Err(
Expand Down

0 comments on commit 461fa4e

Please sign in to comment.