You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/11/01 02:54:38 UTC

[GitHub] [incubator-doris] Gabriel39 commented on a change in pull request #6973: [Feature] Spark connector supports to specify fields to write

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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org