[ https://issues.apache.org/jira/browse/SPARK-40224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17585109#comment-17585109 ]
Apache Spark commented on SPARK-40224: -------------------------------------- User 'ulysses-you' has created a pull request for this issue: https://github.com/apache/spark/pull/37668 > Make ObjectHashAggregateExec release memory eagerly when fallback to > sort-based > ------------------------------------------------------------------------------- > > Key: SPARK-40224 > URL: https://issues.apache.org/jira/browse/SPARK-40224 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.4.0 > Reporter: XiDuo You > Priority: Major > > Avoid OOM issue as far as possible: > {code:java} > ObjectAggregationIterator INFO - Aggregation hash map size 128 reaches > threshold capacity (128 entries), spilling and falling back to sort based > aggregation. You may change the threshold by adjust option > spark.sql.objectHashAggregate.sortBased.fallbackThreshold > # > # java.lang.OutOfMemoryError: Java heap space > # -XX:OnOutOfMemoryError="kill %p" > # Executing /bin/sh -c "kill 46725"...{code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org