How to implement a custom unnest function without getting "UDF returned a different number of rows than expected" error #13234
Unanswered
finlaydotb
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Based on the definition of scalar functions:
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. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
An unnest function by definition takes one value and has the possibility to generate multiple rows.
For some usecase I am trying to implement a custom unnest but I keep running into this error
The implementation looks something like this. This is not the custom logic I need but just to illustrate the issue
Beta Was this translation helpful? Give feedback.
All reactions