Gabriel39 commented on a change in pull request #6973:
URL: https://github.com/apache/incubator-doris/pull/6973#discussion_r739928533
##########
File path:
extension/spark-doris-connector/src/main/java/org/apache/doris/spark/rest/RestService.java
##########
@@ -523,7 +470,13 @@ public static String randomBackend(SparkSettings
sparkSettings , Logger logger)
logger.error(SHOULD_NOT_HAPPEN_MESSAGE);
throw new ShouldNeverHappenException();
}
- List<BackendRow> backendRows = backend.getRows().stream().filter(v ->
v.getAlive()).collect(Collectors.toList());
+ List<BackendRow> backendRows = backend.stream().map(array -> {
+ BackendRow backendRow = new BackendRow();
+ backendRow.setIP(array.get(2));
Review comment:
emm, have you updated code here? I think this change should be reverted
to current version. Hard code like `array.get(2)` is unreasonable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]