Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalFileSystem Not sorted by file name, As a result, the data lines queried in multiple files are out of order. #2730

Closed
yourenawo opened this issue Jun 14, 2022 · 2 comments · Fixed by #2735
Labels
bug Something isn't working

Comments

@yourenawo
Copy link
Contributor

Describe the bug
the data lines queried in multiple files are out of order.

@yourenawo yourenawo added the bug Something isn't working label Jun 14, 2022
@bi-kai
Copy link

bi-kai commented Jun 15, 2022

save issue like this, multi parquet files in a folder, the results are not in the sequence.

@andygrove
Copy link
Member

Partitions are processed in parallel on multiple threads so DataFusion cannot provide any guarantee of ordering of results unless the query contains an ORDER BY clause.

alamb pushed a commit that referenced this issue Jun 16, 2022
* Update local.rs

* Update local.rs

* Update local.rs

Added a test case for sorting directories.
waynexia pushed a commit to waynexia/arrow-datafusion that referenced this issue Jun 20, 2022
* Update local.rs

* Update local.rs

* Update local.rs

Added a test case for sorting directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants