Skip to content

Commit

Permalink
Add support for window function bindings (#521)
Browse files Browse the repository at this point in the history
* Add support for window function bindings

* Refactor PyWindow to be moved to Expr submodule

* Adjust Expr module imports, moved WindowFrame to expr

* Update src/expr/window.rs

---------

Co-authored-by: Andy Grove <[email protected]>
  • Loading branch information
jdye64 and andygrove authored Oct 21, 2023
1 parent 501acff commit c6a7af5
Show file tree
Hide file tree
Showing 9 changed files with 403 additions and 165 deletions.
117 changes: 67 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion datafusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
SessionConfig,
RuntimeConfig,
ScalarUDF,
WindowFrame,
)

from .common import (
Expand Down Expand Up @@ -86,6 +85,8 @@
DropTable,
Repartition,
Partitioning,
Window,
WindowFrame,
)

__version__ = importlib_metadata.version(__name__)
Expand All @@ -99,6 +100,7 @@
"Expr",
"AggregateUDF",
"ScalarUDF",
"Window",
"WindowFrame",
"column",
"literal",
Expand Down
Loading

0 comments on commit c6a7af5

Please sign in to comment.