Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.8.0
-
None
-
None
-
None
Description
The external sort operator performs in-memory or on-disk sorting. Several functions within external sort can take an extended time. During this time, the operator does not check if a query cancellation has occurred. These long events are:
- Spilling a group of batches to disk
- In-memory sort
Note that "re-spilling" of spill files is covered by the first item above: re-spill uses the same code to write the new file as is used for the original "first generation" spill files.
Also, the final merge is handled because the downstream operator will check for cancellation prior to fetching each batch from the sort operator.