-
Notifications
You must be signed in to change notification settings - Fork 187
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
Register Spark UDFs #513
Register Spark UDFs #513
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.
lgtm
@@ -673,6 +673,13 @@ public boolean isOptional(int i) { | |||
createAddUserDefinedFunction("com.linkedin.policy.decoration.udfs.RedactSecondarySchemaFieldIf", ARG1, family( | |||
SqlTypeFamily.BOOLEAN, SqlTypeFamily.ANY, SqlTypeFamily.ARRAY, SqlTypeFamily.CHARACTER, SqlTypeFamily.ANY)); | |||
|
|||
createAddUserDefinedFunction("com.linkedin.groot.runtime.udf.spark.HasMemberConsentUDF", ReturnTypes.BOOLEAN, |
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.
Could you add a quick comment explaining why we're adding spark UDFs in a class called StaticHiveFunctionRegistry
? Could be confusing for open source contributors with no context.
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.
StaticHiveFunctionRegistry
doesn't contain Hive UDFs only (check the java doc of this class), it contains all the UDFs (i.e. Hive UDF, Transport UDF, etc)
I don't think it's necessary to add comments for OSS contributors since they don't care about LinkedIn internal UDFs.
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
What changes are proposed in this pull request, and why are they necessary?
Register several Spark UDFs.
How was this patch tested?
Tested on target views