fix: pull JVM input only when the native plan waits for it #7804
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.30) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 93 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.272
Real PR Conversation Timeline
1 comments
"Review active on #7804"
general
weight: 0.35
comphead
Which issue does this PR close?
No issue. Split out of #7316 at review.
Rationale for this change
execute_planpulls the next JVM batch into every scan before it polls the plan. When a limit is already met by rows from the previous batch, that reads one more batch from the JVM than the query needs, and if reading it fails, the query fails.What changes are included in this PR?
execute_planno longer pulls before polling. It pulls only when a poll returnsPending, whichnext_batchalready handles.How are these changes tested?
New test in
CometExecIteratorLifecycleSuite: a limit of 3 over a scan whose first batch has 10 rows, where reading a second batch throws. It fails before this change and passes with it.