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

Order by ts_init to read row groups in order #1656

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

twitu
Copy link
Collaborator

@twitu twitu commented May 20, 2024

Pull Request

Use ORDER BY ts_init in default sql query. Closes #1515

By default datafusion reads row groups out of order for large files. The test files use in CI are small and don't show this so it was missed. From discussion in apache/datafusion#10572, there are two ways to fix this and using ORDER BY clause is the recommended way.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested?

Tested with sample data to ensure ordering is maintained.

@cjdsellers cjdsellers merged commit a3dc265 into develop May 21, 2024
9 checks passed
@cjdsellers cjdsellers deleted the row-group-bug branch May 21, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming Backtest with multiple datasets time synchronization issue
2 participants