Skip to content

Commit

Permalink
[GIE Compiler] fix bugs of group result
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 committed Feb 4, 2024
1 parent 9228223 commit 355db36
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.alibaba.graphscope.common.config.QueryTimeoutConfig;
import com.alibaba.graphscope.common.result.ResultParser;
import com.alibaba.graphscope.gremlin.plugin.QueryStatusCallback;
import com.alibaba.graphscope.gremlin.result.GroupResultParser;
import com.alibaba.pegasus.intf.ResultProcessor;
import com.alibaba.pegasus.service.protocol.PegasusClient;

Expand Down Expand Up @@ -82,7 +83,8 @@ public synchronized void process(PegasusClient.JobResponse response) {
if (isContextWritable) {
// send back a page of results if batch size is met and then reset the
// resultCollectors
if (this.resultCollectors.size() >= this.resultCollectorsBatchSize) {
if (this.resultCollectors.size() >= this.resultCollectorsBatchSize
&& !(resultParser instanceof GroupResultParser)) {
aggregateResults();
writeResultList(
writeResult, resultCollectors, ResponseStatusCode.PARTIAL_CONTENT);
Expand Down

0 comments on commit 355db36

Please sign in to comment.