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

Support aggregation on NullType in RunningWindowExec #2722

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

mythrocks
Copy link
Collaborator

Fixes #2715.

#2596 extended WindowExec's meta to allow for aggregations on NullType input. E.g.

SELECT MIN(null) OVER (PARTITION BY foo ORDER BY bar ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)...

test_window_running() and test_window_running_no_part() integration tests were added to exercise this path.

#2596 did not include a change to enable NullType aggregations in the Databricks Shims, causing the test_window_running*() tests to fail.

This commit should resolve the failure.

Signed-off-by: Mithun RK mythrocks@gmail.com

Signed-off-by: Mithun RK <mythrocks@gmail.com>
@mythrocks mythrocks self-assigned this Jun 16, 2021
@mythrocks mythrocks added the P0 Must have for release label Jun 16, 2021
@mythrocks
Copy link
Collaborator Author

build

@tgravescs
Copy link
Collaborator

tgravescs commented Jun 16, 2021

Do we know if we need NullType support for 21.06?

@mythrocks
Copy link
Collaborator Author

Do we know if we need NullType support for 21.06?

#2596 didn't ship in 21.06, so I think it should be alright for this to be left out of 21.06 as well.

@sameerz sameerz added the bug Something isn't working label Jun 16, 2021
@sameerz sameerz added this to the June 7 - June 18 milestone Jun 16, 2021
@pxLi pxLi merged commit e378d49 into NVIDIA:branch-21.08 Jun 17, 2021
@@ -105,7 +105,7 @@ class Spark301dbShims extends Spark301Shims {
"Databricks-specific window function exec, for \"running\" windows, " +
"i.e. (UNBOUNDED PRECEDING TO CURRENT ROW)",
ExecChecks(
TypeSig.commonCudfTypes + TypeSig.DECIMAL +
TypeSig.commonCudfTypes + TypeSig.DECIMAL + TypeSig.Null +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a typo here. I will draft a fix

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yikes!
I noticed that when testing on Databricks 7.3. I honestly thought I'd fixed that already.

I can post a fix shortly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2729 just post one, can you help take a look? thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Must have for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Part of the plan is not columnar class com.databricks.sql.execution.window.RunningWindowFunc
4 participants