wsjz commented on code in PR #27154:
URL: https://github.com/apache/doris/pull/27154#discussion_r1405548479


##########
fe/be-java-extensions/max-compute-scanner/src/main/java/org/apache/doris/maxcompute/MaxComputeJniScanner.java:
##########
@@ -173,6 +173,11 @@ public void open() throws IOException {
                     .collect(Collectors.toSet());
             List<Column> maxComputeColumns = new ArrayList<>(readColumns);
             maxComputeColumns.removeIf(e -> 
partitionColumns.contains(e.getName()));
+            if (maxComputeColumns.isEmpty() && !partitionColumns.isEmpty()) {

Review Comment:
   If use count(*), maxComputeColumns can be empty,but partitionColumns not.
   Consider renaming



##########
fe/be-java-extensions/max-compute-scanner/src/main/java/org/apache/doris/maxcompute/MaxComputeJniScanner.java:
##########
@@ -173,6 +173,11 @@ public void open() throws IOException {
                     .collect(Collectors.toSet());
             List<Column> maxComputeColumns = new ArrayList<>(readColumns);
             maxComputeColumns.removeIf(e -> 
partitionColumns.contains(e.getName()));
+            if (maxComputeColumns.isEmpty() && !partitionColumns.isEmpty()) {

Review Comment:
   If use count(*), maxComputeColumns can be empty,but partitionColumns not.
   Consider renaming



-- 
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]

Reply via email to