As seen on T260232, having BatchRowIterator::next passed as the fname caller is not helpful for debugging purposes.
We obviously cannot pass it in on the iteractor next call... But could we do something in the constructor, or have a setCaller type function to set the caller at point of query execution, so we have some idea where the caller is coming from, rather than having to work out from the sql query being generated?