Ignore empty batch when writing
{'login': 'pcuenca', 'id': 1177582, 'node_id': 'MDQ6VXNlcjExNzc1ODI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1177582?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/pcuenca', 'html_url': 'https://github.com/pcuenca', 'followers_url': 'https://api.github.com/users/pcuenca/followers', 'following_url': 'https://api.github.com/users/pcuenca/following{/other_user}', 'gists_url': 'https://api.github.com/users/pcuenca/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/pcuenca/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/pcuenca/subscriptions', 'organizations_url': 'https://api.github.com/users/pcuenca/orgs', 'repos_url': 'https://api.github.com/users/pcuenca/repos', 'events_url': 'https://api.github.com/users/pcuenca/events{/privacy}', 'received_events_url': 'https://api.github.com/users/pcuenca/received_events', 'type': 'User', 'site_admin': False}
[]
[]
This prevents an schema update with unknown column types, as reported in #2644.

This is my first attempt at fixing the issue. I tested the following:
- First batch returned by a batched map operation is empty.
- An intermediate batch is empty.
- `python -m unittest tests.test_arrow_writer` passes.

However, `arrow_writer` looks like a pretty generic interface, I'm not sure if there are other uses I may have overlooked. Let me know if that's the case, or if a better approach would be preferable.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2698/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2698', 'html_url': 'https://github.com/huggingface/datasets/pull/2698', 'diff_url': 'https://github.com/huggingface/datasets/pull/2698.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2698.patch', 'merged_at': '2021-07-26T13:25:26Z'}