ScanBatch is the Drill operator executor that handles most readers. Like most Drill operators, it uses an ad-hoc set of error detection and reporting methods that evolved over Drill development.
This ticket asks to standardize on error handling as outlined in
DRILL-5083. This basically means reporting all errors as a UserException rather than using the IterOutcome.STOP return status or using the FragmentContext.fail() method.
This work requires the new error codes introduced in
DRILL-5511, and is a step toward making readers aware of vector size limits.