After recent changes (likely
IMPALA-2905), Impala may return empty row batches on fetch() calls. This shouldn't be a breaking issue for well written clients, but misbehaving clients may break. (e.g. Impyla isn't handling this correctly, I have a patch for it.)
Also this results in extra, unnecessary RPCs. We should make sure the server is skipping empty row batches.
I'm marking this as 'distributed exec' rather than 'client' because I think it's related to the recent coordinator fragment changes.
This is easy to reproduce with a simple query. Executed through impyla results in 0 rows because the first row batch is empty.