Preserve non-`input_colums` in `Dataset.map` if `input_columns` are specified
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-09-12T18:15:18Z
https://github.com/huggingface/datasets/pull/4971#issuecomment-1244119539
https://api.github.com/repos/huggingface/datasets/issues/4971
IC_kwDODunzps5KJ8Hz
https://api.github.com/repos/huggingface/datasets/issues/comments/1244119539/reactions
2022-09-13T13:51:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1244119539
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
Currently, if the `input_columns` list in `Dataset.map` is specified, the columns not in that list are dropped after the `map` transform.

This makes the behavior inconsistent with `IterableDataset.map`.
 
(It seems this issue was introduced by mistake in https://github.com/huggingface/datasets/pull/2246) 

Fix https://github.com/huggingface/datasets/issues/4858