brancz commented on PR #27043: URL: https://github.com/apache/datafusion/pull/27043#issuecomment-7141640803
Thanks for the thorough review, @kosiew. I think I want to give up on the heuristic. Instead, the spill should split into several files only when the memory pool actually refuses the merge, whatever the key type. I put together #27724 to try that. It converts the merge keys one run at a time and stops at the first run the pool refuses. If everything fits, the spill writes one file as before, so the short `Utf8` disk-quota case and low-expansion dictionaries behave as on main: same spill files and bytes, and no slowdown in my runs. Nested dictionaries need no special handling, because the pool decides rather than the type. #27724 includes reproducers that fail on main during ingestion spilling, for dictionary, run-end-encoded and struct-wrapped keys, and pass with the change. If that approach looks better to you, I'll close this one. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
