[fix](arrow-flight)Fix the prompt that be arrow_flight_sql_port is not set (#31668)

This commit is contained in:
wudongliang
2024-03-02 09:36:19 +08:00
committed by yiguolei
parent b248d3a27e
commit cacbd048ec

View File

@ -1824,7 +1824,7 @@ public class Coordinator implements CoordInterface {
throw new UserException(SystemInfoService.NO_BACKEND_LOAD_AVAILABLE_MSG);
}
if (backend.getArrowFlightSqlPort() < 0) {
return null;
throw new UserException("be arrow_flight_sql_port cannot be empty.");
}
return backend.getArrowFlightAddress();
}