Uh oh!
There was an error while loading. Please reload this page.
Implement Grouped Map UDFs - #143
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| new IArrowArray[] | ||
| { | ||
| records.Column(groupFieldIndex), | ||
| CreateArrowArray(characterCount) |
There was a problem hiding this comment.
Should we not call this if returnLength is 0? (I know this works but just to be explicit)
There was a problem hiding this comment.
What would we use instead? null? I think that can lead to other errors down the line.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
eerhardt
commented
Jul 2, 2019
I've responded to all feedback. Please take a look and let me know your thoughts. |
Uh oh!
There was an error while loading. Please reload this page.
Assert there is only 1 Grouped Map UDF at a time. Add comment to test describing why the results are incorrect.
eerhardt
commented
Jul 9, 2019
This PR should be ready to be merged. Let me know if you have any other thoughts/comments. |
Implementing "Grouped map UDFs" functionality, similar to Pandas UDF functionality - https://docs.databricks.com/spark/latest/spark-sql/udf-python-pandas.html#grouped-map-udfs.
Grouped Map UDFs take an Arrow RecordBatch and return an Arrow RecordBatch. The shape and the number of rows returned are defined by the user. This allows for reducing and expanding rows in a UDF.
Implements part of #45.