From b30d061a8e7fbf68f4f1454b7f0624e31987d985 Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Mon, 26 Feb 2024 14:53:20 -0500 Subject: [PATCH] remove test --- e2e_test/error_ui/simple/main.slt | 12 ------------ src/expr/udf/src/external.rs | 8 +++++--- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/e2e_test/error_ui/simple/main.slt b/e2e_test/error_ui/simple/main.slt index 3197544b45d75..da44dfa70a1e6 100644 --- a/e2e_test/error_ui/simple/main.slt +++ b/e2e_test/error_ui/simple/main.slt @@ -8,18 +8,6 @@ Caused by: Near "selet" -statement error -create function int_42() returns int as int_42 using link 'localhost:8815'; ----- -db error: ERROR: Failed to run the query - -Caused by these errors (recent errors listed first): - 1: failed to connect to UDF service - 2: transport error - 3: error trying to connect - 4: invalid URL, scheme is missing - - statement error alter system set not_exist_key to value; ---- diff --git a/src/expr/udf/src/external.rs b/src/expr/udf/src/external.rs index 52485ba125de7..f713ae34a1278 100644 --- a/src/expr/udf/src/external.rs +++ b/src/expr/udf/src/external.rs @@ -76,8 +76,9 @@ impl ArrowFlightUdfClient { if addr.starts_with("https://") { addr = addr.strip_prefix("https://").unwrap(); } - let host_addr = HostAddr::from_str(addr) - .map_err(|e| Error::service_error(format!("invalid address: {}, err: {}", addr, e)))?; + let host_addr = HostAddr::from_str(addr).map_err(|e| { + Error::service_error(format!("invalid address: {}, err: {}", addr, e.as_report())) + })?; let channel = LoadBalancedChannel::builder((host_addr.host.clone(), host_addr.port)) .dns_probe_interval(std::time::Duration::from_secs(DNS_PROBE_INTERVAL_SECS)) .timeout(Duration::from_secs(REQUEST_TIMEOUT_SECS)) @@ -88,7 +89,8 @@ impl ArrowFlightUdfClient { .map_err(|e| { Error::service_error(format!( "failed to create LoadBalancedChannel, address: {}, err: {}", - host_addr, e + host_addr, + e.as_report() )) })?; let client = FlightServiceClient::new(channel.into());