-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add a Polars backend #22
Merged
Merged
Conversation
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
The row order after a polars group_by().agg() is not consistent across multiple executions, so it does not make much sense to test it.
has the same functionality as pandas, need to support arrange / filter for window functions.
is never used
- make dense_rank a nullary operator - do not allow an operator to mutate it's args via mutate_args (this was just for rank and dense_rank and can be handled in a simpler way) - rank and dense_rank are an explicit special case in polars _translate_function since the polars rank function does not support ranking on multiple expressions, thus a conversion to a struct column is necessary
values should not be sorted or positive only up front as this can hide bugs
one cannot specify a tolerance for decimal-float comparison
it does not seem like something very common and every backend does something different and calls it string join / string agg or similar. The SQL backends do a cumulative join, polars not. Maybe we can add it back in as a function only allowed in summarise and not in mutate, since there the behaviour (apart from MSSQL, of course) is consistent.
we also implicitly convert dates to datetimes when comparing / subtracting them. the exact semantics still need to be defined (don't know what SQL does).
strings are 0-indexed.
Postgres and SQLite give cols that only contain null values after a join the Null type. Polars and MSSQL don't do that. transform does what the backend does.
in pl.read_database, DuckDB only accepts a string or some special DuckDB object, so we compile the query to a string for DuckDB. The changed test failed since DuckDB apparently produces floats on integer division. This will be investigated later.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.