Keys mismatch: make error message more informative
{'login': 'PaulLerner', 'id': 25532159, 'node_id': 'MDQ6VXNlcjI1NTMyMTU5', 'avatar_url': 'https://avatars.githubusercontent.com/u/25532159?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/PaulLerner', 'html_url': 'https://github.com/PaulLerner', 'followers_url': 'https://api.github.com/users/PaulLerner/followers', 'following_url': 'https://api.github.com/users/PaulLerner/following{/other_user}', 'gists_url': 'https://api.github.com/users/PaulLerner/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/PaulLerner/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/PaulLerner/subscriptions', 'organizations_url': 'https://api.github.com/users/PaulLerner/orgs', 'repos_url': 'https://api.github.com/users/PaulLerner/repos', 'events_url': 'https://api.github.com/users/PaulLerner/events{/privacy}', 'received_events_url': 'https://api.github.com/users/PaulLerner/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}, {'id': 1935892877, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODc3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/good%20first%20issue', 'name': 'good first issue', 'color': '7057ff', 'default': True, 'description': 'Good for newcomers'}]
[]
Good idea ! I think this can be improved in `Features.reorder_fields_as()` indeed at

https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/features.py#L1739-L1740

Is it something you would be interested in contributing ? Is this open to work on? I'd love to take on this as my first issue. Hi @daspartho I’ve opened a PR #4919 
I don’t think there’s much left to do ok : )
**Is your feature request related to a problem? Please describe.**
When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message like:
`ValueError: Keys mismatch: between {'bar': Value(dtype='int64', id=None)} and {'foo': Value(dtype='int64', id=None)}`

Which is fine when you have only a few features like in the example but it gets very hard to read when you have a lot of features in your dataset.

**Describe the solution you'd like**
The error message should give the difference between the features (what keys are in A but missing in B and vice-versa). It should also tell which keys are inferred from `dataset.arrow` and which come from `dataset_info.json`.

Willing to help :)

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4917/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}