Skip to content

Commit

Permalink
Register a UDF (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfgem authored Sep 1, 2023
1 parent 736b03f commit 15e290e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ public boolean isOptional(int i) {
// This UDF is not converted to a transport UDF.
createAddUserDefinedFunction("com.linkedin.dali.customudf.date.hive.DateFormatToEpoch", BIGINT_NULLABLE,
STRING_STRING_STRING);
createAddUserDefinedFunction("com.linkedin.policy.decoration.udfs.HasMemberConsent", ReturnTypes.BOOLEAN,
family(SqlTypeFamily.STRING, SqlTypeFamily.ANY, SqlTypeFamily.TIMESTAMP, SqlTypeFamily.BOOLEAN));

// UDTFs
addFunctionEntry("explode", new CoralSqlUnnestOperator(false));
Expand Down

0 comments on commit 15e290e

Please sign in to comment.