-
Notifications
You must be signed in to change notification settings - Fork 321
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
Follow up on UDF that takes in and returns Row #406
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor comments, but generally looks good to me.
Assert.Equal(expected, actual); | ||
} | ||
|
||
// Row is a part of top-level column. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is a bit misleading. We can say UDF that takes multiple Rows, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I have updated to Multiple Rows
.
src/csharp/Microsoft.Spark.E2ETest/UdfTests/UdfComplexTypesTests.cs
Outdated
Show resolved
Hide resolved
src/csharp/Microsoft.Spark.E2ETest/UdfTests/UdfComplexTypesTests.cs
Outdated
Show resolved
Hide resolved
src/csharp/Microsoft.Spark.E2ETest/UdfTests/UdfComplexTypesTests.cs
Outdated
Show resolved
Hide resolved
@@ -65,15 +65,6 @@ public object construct(object[] args) | |||
s_schemaCache = new Dictionary<string, StructType>(); | |||
} | |||
|
|||
// When a row is ready to be materialized, then construct() is called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a breaking change, but @suhsteve is updating the worker version in his PR: https://github.com/dotnet/spark/pull/387/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a follow up of #376 and #214 to remove the materialization inside
construct()
. And change it on the worker side. This would make the behavior consistent for UDF that takes in Row and that returns Row.