Close stream in `ArrowWriter.finalize` before inference error
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-11-28T17:05:58Z
https://github.com/huggingface/datasets/pull/5309#issuecomment-1329444572
https://api.github.com/repos/huggingface/datasets/issues/5309
IC_kwDODunzps5PPbbc
https://api.github.com/repos/huggingface/datasets/issues/comments/1329444572/reactions
2022-12-07T12:55:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1329444572
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
Ensure the file stream is closed in `ArrowWriter.finalize` before raising the `SchemaInferenceError` to avoid the `PermissionError` on Windows in `incomplete_dir`'s `shutil.rmtree`.