wsjz commented on code in PR #19819: URL: https://github.com/apache/doris/pull/19819#discussion_r1214048572
########## fe/fe-core/src/main/java/org/apache/doris/planner/external/MaxComputeScanNode.java: ########## @@ -74,7 +78,37 @@ protected Map<String, String> getLocationProperties() throws UserException { @Override protected List<Split> getSplits() throws UserException { List<Split> result = new ArrayList<>(); - result.add(new FileSplit(new Path("/"), 0, -1, -1, 0L, new String[0], Collections.emptyList())); + // String splitPath = catalog.getTunnelUrl(); + // TODO: use single max compute scan node rather than file scan node + com.aliyun.odps.Table odpsTable = table.getOdpsTable(); + if (desc.getSlots().isEmpty() || odpsTable.getFileNum() <= 0) { + return result; + } + try { + List<Pair<Long, Long>> sliceRange = new ArrayList<>(); + long totalRows = catalog.getTotalRows(table.getDbName(), table.getName()); Review Comment: access metaserviceļ¼ just call when catalog init -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org