gengliangwang commented on PR #60681:
URL: https://github.com/apache/spark/pull/60681#issuecomment-6992823772

   @viirya Done in 5eccf93f1cc7: Thanks for the close read. I added two of 
these points to the config doc. On scale: the overshoot is about what all 
running tasks read in one heartbeat interval, which grows with the size of the 
cluster. On policy: it's a guard against mistakes, not an enforced policy, 
since a session can change it. On BigQuery, agreed: `maximum_bytes_billed` 
rejects a query up front from an estimate, so it is prior art for a plan-time 
check. Trino's limit is the runtime counterpart of this one. And yes, I see a 
plan-time check on the file sizes left after partition pruning as a 
complementary follow-up. It would stop the missing-partition-filter case with 
no overshoot. This runtime guard still covers what that estimate gets wrong: it 
is too high under column pruning and row-group skipping, and dynamic partition 
pruning is only known at runtime. I left it out to keep this PR to the runtime 
guard.


-- 
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]

Reply via email to