Skip to content
Discussion options

You must be logged in to vote

Based on the definition of scalar functions:

SQL Scalar Functions operate on a single value and return a single value.

So args and results must have the same number of rows.

If it is not this case, it might be necessary to define it as a table function or custom logical plan. Unnest is a logical plan in DataFusion.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@finlaydotb
Comment options

@jonahgao
Comment options

jonahgao Nov 5, 2024
Collaborator

Answer selected by Jefffrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants