Skip to content
Snippets Groups Projects
Commit 8fb1d1c7 authored by Davies Liu's avatar Davies Liu Committed by Davies Liu
Browse files

[SPARK-15357] Cooperative spilling should check consumer memory mode

## What changes were proposed in this pull request?

Since we support forced spilling for Spillable, which only works in OnHeap mode, different from other SQL operators (could be OnHeap or OffHeap), we should considering the mode of consumer before calling trigger forced spilling.

## How was this patch tested?

Add new test.

Author: Davies Liu <davies@databricks.com>

Closes #13151 from davies/fix_mode.
parent c1fd9cac
No related branches found
No related tags found
No related merge requests found
Showing
with 145 additions and 106 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment