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

[auto-merge] branch-0.4 to branch-0.5 [skip ci] [bot] #1825

Merged
merged 1 commit into from
Feb 26, 2021
Merged

Conversation

nvauto
Copy link
Collaborator

@nvauto nvauto commented Feb 26, 2021

auto-merge triggered by github actions on branch-0.4 to create a PR keeping branch-0.5 up-to-date. If this PR is unable to be merged due to conflicts, it will remain open until manually fix.

* Fix LEAD/LAG failures in Spark 3.1.1

Fixes class-loader related failures of LEAD/LAG operators, which caused
errors like:
```
: java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/nvidia/spark/rapids/OffsetWindowFunctionMeta.<init>(Lorg/apache/spark/sql/catalyst/expressions/OffsetWindowFunction;Lcom/nvidia/spark/rapids/RapidsConf;Lscala/Option;Lcom/nvidia/spark/rapids/ConfKeysAndIncompat;)V @11: invokespecial
Reason:
Type 'org/apache/spark/sql/catalyst/expressions/OffsetWindowFunction' (current frame, stack[1]) is not assignable to 'org/apache/spark/sql/catalyst/expressions/Expression'
```

Also corrects for the reversal in offset semantics for LAG() expressions
in Spark 3.1.1, causing `Lag.offset` to be negative.

Signed-off-by: Mithun RK <[email protected]>

* Removed dead code.

Signed-off-by: Mithun RK <[email protected]>

* More specific error handling extracting literal offsets.

* Offset checking for pre-3.1 Spark lead/lag window functions.

Signed-off-by: Mithun RK <[email protected]>

* Missing whitespace.

* Added tagExprForGpu() for OffsetWindowFunctionMeta.
@nvauto nvauto merged commit 85a7b81 into branch-0.5 Feb 26, 2021
@nvauto
Copy link
Collaborator Author

nvauto commented Feb 26, 2021

SUCCESS - auto-merge

nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
[auto-merge] branch-0.4 to branch-0.5 [skip ci] [bot]
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
[auto-merge] branch-0.4 to branch-0.5 [skip ci] [bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants