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

Data Explorer: Implement row filters and column sorting for duckdb backend #5168

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

wesm
Copy link
Contributor

@wesm wesm commented Oct 24, 2024

Addresses #5126 and #5127. It provides the full set of row filter types and column sorting. A lot of the work was in writing the unit tests code (with yarn test-extension -l positron-duckdb) to verify correctness, but I was fairly thorough and turned up some bugs while writing the unit tests.

DuckDB does not provide stable sorting (i.e. rows may be permuted if the sort keys are equal) so I had to introduce an auxiliary "row_index" field to do an order-preserving sort to make it easier to unit test.

@wesm
Copy link
Contributor Author

wesm commented Oct 24, 2024

Merging since I am working on other changes on top of this, and these features can move to verification. If anyone has any feedback about the code I will incorporate into a subsequent PR in the coming week.

@wesm wesm merged commit b283528 into main Oct 24, 2024
3 checks passed
@wesm wesm deleted the feature/de-duckdb-sort-and-filter branch October 24, 2024 21:41
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant