Skip to content

draft: move ntile from logical expr to udf window #12884

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

Conversation

hailelagi
Copy link
Contributor

Which issue does this PR close?

Closes #12694

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Oct 12, 2024
hailelagi and others added 20 commits October 12, 2024 04:32
…-window-function-ntile-to-udf-window

Signed-off-by: Haile Lagi <[email protected]>
* fix panic

* Update datafusion/sql/src/select.rs

Co-authored-by: Jonah Gao <[email protected]>

* move issue

---------

Co-authored-by: Jonah Gao <[email protected]>
…hema (apache#12876)

* Update memory.rs

* add assert

* Update memory.rs

* Update memory.rs

* Update memory.rs

* address review

* Update memory.rs

* Update memory.rs

* final fix

* Fix comments in test_utils.rs

---------

Co-authored-by: Mehmet Ozan Kabak <[email protected]>
* add bench

* Optimize iszero function (3-5x) faster
* Add macro for creating record batch, useful for unit test or rapid development

* Update docstring

* Add additional checks in unit test and rename macro per user input
…ter for Clickbench Q28) (apache#12792)

* Implement special min/max accumulator for Strings: `MinMaxBytesAccumulator`

* fix bug

* fix msrv

* move code, handle filters

* simplify

* Add functional tests

* remove unecessary test

* improve docs

* improve docs

* cleanup

* improve comments

* fix diagram

* fix accounting

* Use correct type in memory accounting

* Add TODO comment
* Make PruningPredicate's rewrite public

* feedback

* Improve documentation and add default to ConstantUnhandledPredicatehook

* Update pruning.rs

---------

Co-authored-by: Andrew Lamb <[email protected]>
* Minor: add flags for temporary ddl

Signed-off-by: Haile Lagi <[email protected]>

* Update datafusion/proto/src/logical_plan/mod.rs

Co-authored-by: Jonah Gao <[email protected]>

---------

Signed-off-by: Haile Lagi <[email protected]>
Co-authored-by: Jonah Gao <[email protected]>
* Documentation fixes + add

* fmt fix

* quick fix
* unparse Sort with push down limit

* cargo fmt

* set query limit directly
* Move equivalence fuzz testing to fuzz test binary

* fix license

* fixup
* regex migrate

* small fixes

* update docs

---------

Co-authored-by: Andrew Lamb <[email protected]>
@github-actions github-actions bot added documentation Improvements or additions to documentation sql SQL Planner physical-expr Changes to the physical-expr crates core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) common Related to common crate proto Related to proto crate functions Changes to functions implementation labels Oct 14, 2024
@hailelagi hailelagi closed this Oct 23, 2024
@hailelagi hailelagi deleted the haile/convert-builtin-window-function-ntile-to-udf-window branch October 23, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate core Core DataFusion crate documentation Improvements or additions to documentation functions Changes to functions implementation logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates proto Related to proto crate sql SQL Planner sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert BuiltInWindowFunction::Ntile to a user defined window function