forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-34829][SQL] Fix higher order function results
### What changes were proposed in this pull request? This PR fixes a correctness issue with higher order functions. The results of function expressions needs to be copied in some higher order functions as such an expression can return with internal buffers and higher order functions can call multiple times the expression. The issue was discovered with typed `ScalaUDF`s after apache#28979. ### Why are the changes needed? To fix a bug. ### Does this PR introduce _any_ user-facing change? Yes, some queries return the right results again. ### How was this patch tested? Added new UT. Closes apache#31955 from peter-toth/SPARK-34829-fix-scalaudf-resultconversion. Authored-by: Peter Toth <peter.toth@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information
1 parent
540f1fb
commit 3382190
Showing
2 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
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
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