diff --git a/interactive_engine/compiler/src/main/java/com/alibaba/graphscope/gremlin/result/processor/AbstractResultProcessor.java b/interactive_engine/compiler/src/main/java/com/alibaba/graphscope/gremlin/result/processor/AbstractResultProcessor.java index 8785165f9015..1337830cd64a 100644 --- a/interactive_engine/compiler/src/main/java/com/alibaba/graphscope/gremlin/result/processor/AbstractResultProcessor.java +++ b/interactive_engine/compiler/src/main/java/com/alibaba/graphscope/gremlin/result/processor/AbstractResultProcessor.java @@ -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; @@ -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);