Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-8290: [Python] Improve FileSystemDataset constructor
* Handle the required `schema`, `format` and `filesystem` keyword validation manually, instead of letting cython handle it (which gives very cryptic error messages, like complaining about positional arguments if you made a typo in one of the keyword names) * Move the paths to the first argument, move `root_expression` to the end * Make `partitions` and `root_expression` optional * Rename `file_format` to `format`, since this name is what we are using elsewhere (eg in `ds.dataset(..)` Closes #6913 from jorisvandenbossche/ARROW-8290-FileSystemDataset Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
- Loading branch information
1 parent
32de9fa
commit 52a3126
Showing
2 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters