fix: dataset path should be absolute
MEMBER
Good catch thanks ! Have you tried to use the absolue path in `MemoryMappedTable.__init__` in `table.py`?

I think it can fix issues with relative paths at more levels than just fixing it `load_from_disk`. If it works I think it would be a more robust fix to this issue
2022-11-18T15:14:16Z
https://github.com/huggingface/datasets/pull/5234#issuecomment-1320159969
https://api.github.com/repos/huggingface/datasets/issues/5234
IC_kwDODunzps5OsArh
https://api.github.com/repos/huggingface/datasets/issues/comments/1320159969/reactions
2022-11-18T15:14:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1320159969
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
CONTRIBUTOR
@lhoestq right, that actually fixed it indeed. I've pushed the changes (one-liner). lemme know if there's anything else you need for this fix
2022-12-07T20:58:41Z
https://github.com/huggingface/datasets/pull/5234#issuecomment-1341588192
https://api.github.com/repos/huggingface/datasets/issues/5234
IC_kwDODunzps5P9wLg
https://api.github.com/repos/huggingface/datasets/issues/comments/1341588192/reactions
2022-12-07T20:58:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1341588192
https://avatars.githubusercontent.com/u/30353?v=4
https://api.github.com/users/vigsterkr/events{/privacy}
https://api.github.com/users/vigsterkr/followers
https://api.github.com/users/vigsterkr/following{/other_user}
https://api.github.com/users/vigsterkr/gists{/gist_id}
https://github.com/vigsterkr
vigsterkr
MDQ6VXNlcjMwMzUz
https://api.github.com/users/vigsterkr/orgs
https://api.github.com/users/vigsterkr/received_events
https://api.github.com/users/vigsterkr/repos
https://api.github.com/users/vigsterkr/starred{/owner}{/repo}
https://api.github.com/users/vigsterkr/subscriptions
User
https://api.github.com/users/vigsterkr
public
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-12-07T22:15:26Z
https://github.com/huggingface/datasets/pull/5234#issuecomment-1341663655
https://api.github.com/repos/huggingface/datasets/issues/5234
IC_kwDODunzps5P-Cmn
https://api.github.com/repos/huggingface/datasets/issues/comments/1341663655/reactions
2022-12-07T23:49:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1341663655
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
cache_file_name depends on dataset's path.

A simple way where this could cause a problem:
```
import os
import datasets


def add_prefix(example):
    example["text"] = "Review: " + example["text"]
    return example


ds = datasets.load_from_disk("a/relative/path")
os.chdir("/tmp")

ds_1 = ds.map(add_prefix)
```

while it may feel that the `chdir` is quite constructed, there are many scenarios when the current working dir can/will change...