diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java index 9fc7a7857e11fa3..3a5e86b2b2c94c0 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java @@ -249,7 +249,6 @@ private FlightInfo executeQueryStatement(String peerIdentity, ConnectContext con // TODO Support multiple endpoints. Location location; if (flightSQLConnectProcessor.getPublicAccessAddr().isSetHostname()) { - Preconditions.checkState(flightSQLConnectProcessor.getPublicAccessAddr().isSetPort()); location = Location.forGrpcInsecure(flightSQLConnectProcessor.getPublicAccessAddr().hostname, flightSQLConnectProcessor.getPublicAccessAddr().port); } else {