Skip to content

Commit

Permalink
fix error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Dec 29, 2023
1 parent 138c100 commit 12c3305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/handler/create_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use anyhow::Context;
use anyhow::{anyhow, Context};
use arrow_schema::Fields;
use bytes::Bytes;
use itertools::Itertools;
Expand Down Expand Up @@ -145,7 +145,7 @@ pub async fn handle_create_function(
{
let client = ArrowFlightUdfClient::connect(&link)
.await
.context("failed to connect UDF server")?;
.map_err(|e| anyhow!(e))?;
/// A helper function to create a unnamed field from data type.
fn to_field(data_type: arrow_schema::DataType) -> arrow_schema::Field {
arrow_schema::Field::new("", data_type, true)
Expand Down

0 comments on commit 12c3305

Please sign in to comment.