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

ScalarUDF with zero arguments should be provided with one null array as parameter #9032

Closed
viirya opened this issue Jan 28, 2024 · 0 comments · Fixed by #9031
Closed

ScalarUDF with zero arguments should be provided with one null array as parameter #9032

viirya opened this issue Jan 28, 2024 · 0 comments · Fixed by #9031
Labels
bug Something isn't working

Comments

@viirya
Copy link
Member

viirya commented Jan 28, 2024

Describe the bug

According to ScalarUDFImpl document, if the function has zero argument, it will be passed a single element slice which is a a null array to indicate the batch's row count. But currently it is provided a null scalar.

This is reported by @dadepo in #8866 (comment).

To Reproduce

#8866 (comment) provides a reproducible test.

Expected behavior

ScalarUDFImpl implementation, when it has zero argument, it will be passed a single element slice which is a a null array to indicate the batch's row count.

Additional context

No response

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