datasets.config.PYARROW_VERSION has no attribute 'major'
CONTRIBUTOR
I have changed line 288 to `if int(datasets.config.PYARROW_VERSION.split(".")[0]) < 3:` just to get around it.
2021-09-06T21:09:54Z
https://github.com/huggingface/datasets/issues/2871#issuecomment-913854518
https://api.github.com/repos/huggingface/datasets/issues/2871
IC_kwDODunzps42eFA2
https://api.github.com/repos/huggingface/datasets/issues/comments/913854518/reactions
2021-09-06T21:09:54Z
https://api.github.com/repos/huggingface/datasets/issues/comments/913854518
https://avatars.githubusercontent.com/u/6764450?v=4
https://api.github.com/users/bwang482/events{/privacy}
https://api.github.com/users/bwang482/followers
https://api.github.com/users/bwang482/following{/other_user}
https://api.github.com/users/bwang482/gists{/gist_id}
https://github.com/bwang482
bwang482
MDQ6VXNlcjY3NjQ0NTA=
https://api.github.com/users/bwang482/orgs
https://api.github.com/users/bwang482/received_events
https://api.github.com/users/bwang482/repos
https://api.github.com/users/bwang482/starred{/owner}{/repo}
https://api.github.com/users/bwang482/subscriptions
User
https://api.github.com/users/bwang482
public
MEMBER
Hi @bwang482,

I'm sorry but I'm not able to reproduce your bug.

Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists

2021-09-07T05:44:27Z
https://github.com/huggingface/datasets/issues/2871#issuecomment-914006989
https://api.github.com/repos/huggingface/datasets/issues/2871
IC_kwDODunzps42eqPN
https://api.github.com/repos/huggingface/datasets/issues/comments/914006989/reactions
2021-09-07T05:44:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/914006989
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
CONTRIBUTOR
Sorted. Thanks!
2021-09-07T17:28:13Z
https://github.com/huggingface/datasets/issues/2871#issuecomment-914489944
https://api.github.com/repos/huggingface/datasets/issues/2871
IC_kwDODunzps42ggJY
https://api.github.com/repos/huggingface/datasets/issues/comments/914489944/reactions
2021-09-07T17:28:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/914489944
https://avatars.githubusercontent.com/u/6764450?v=4
https://api.github.com/users/bwang482/events{/privacy}
https://api.github.com/users/bwang482/followers
https://api.github.com/users/bwang482/following{/other_user}
https://api.github.com/users/bwang482/gists{/gist_id}
https://github.com/bwang482
bwang482
MDQ6VXNlcjY3NjQ0NTA=
https://api.github.com/users/bwang482/orgs
https://api.github.com/users/bwang482/received_events
https://api.github.com/users/bwang482/repos
https://api.github.com/users/bwang482/starred{/owner}{/repo}
https://api.github.com/users/bwang482/subscriptions
User
https://api.github.com/users/bwang482
public
CONTRIBUTOR
Reopening this. Although the `test_dataset_common.py` script works fine now.

Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?

https://github.com/huggingface/datasets/pull/2873
2021-09-07T20:35:47Z
https://github.com/huggingface/datasets/issues/2871#issuecomment-914613155
https://api.github.com/repos/huggingface/datasets/issues/2871
IC_kwDODunzps42g-Oj
https://api.github.com/repos/huggingface/datasets/issues/comments/914613155/reactions
2021-09-07T20:37:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/914613155
https://avatars.githubusercontent.com/u/6764450?v=4
https://api.github.com/users/bwang482/events{/privacy}
https://api.github.com/users/bwang482/followers
https://api.github.com/users/bwang482/following{/other_user}
https://api.github.com/users/bwang482/gists{/gist_id}
https://github.com/bwang482
bwang482
MDQ6VXNlcjY3NjQ0NTA=
https://api.github.com/users/bwang482/orgs
https://api.github.com/users/bwang482/received_events
https://api.github.com/users/bwang482/repos
https://api.github.com/users/bwang482/starred{/owner}{/repo}
https://api.github.com/users/bwang482/subscriptions
User
https://api.github.com/users/bwang482
public
MEMBER
Hi @bwang482,

If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.

For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```

Therefore, your PR non-passing test has nothing to do with this issue.
2021-09-08T08:51:52Z
https://github.com/huggingface/datasets/issues/2871#issuecomment-915045561
https://api.github.com/repos/huggingface/datasets/issues/2871
IC_kwDODunzps42iny5
https://api.github.com/repos/huggingface/datasets/issues/comments/915045561/reactions
2021-09-08T08:51:52Z
https://api.github.com/repos/huggingface/datasets/issues/comments/915045561
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
In the test_dataset_common.py script, line 288-289

```
if datasets.config.PYARROW_VERSION.major < 3:
   packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```

which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.

```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
      1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major

AttributeError: 'str' object has no attribute 'major'
```

## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
