diff --git a/presto-native-execution/presto_cpp/main/types/PrestoToVeloxExpr.cpp b/presto-native-execution/presto_cpp/main/types/PrestoToVeloxExpr.cpp index e88adc89b3a1e..b9b68c76faffc 100644 --- a/presto-native-execution/presto_cpp/main/types/PrestoToVeloxExpr.cpp +++ b/presto-native-execution/presto_cpp/main/types/PrestoToVeloxExpr.cpp @@ -497,8 +497,7 @@ TypedExprPtr VeloxExprConverter::toVeloxExpr( velox::functions::RemoteVectorFunctionMetadata metadata; metadata.serdeFormat = fromSerdeString(systemConfig->remoteFunctionServerSerde()); - proxygen::URL url(systemConfig->remoteFunctionRestUrl()); - metadata.location = url; + metadata.location = systemConfig->remoteFunctionRestUrl(); metadata.functionId = restFunctionHandle->functionId; metadata.version = restFunctionHandle->version;