Skip to content

Commit

Permalink
Add EXTRACT_COLLECTION UDF to registry (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixqfu authored Sep 20, 2024
1 parent e48ff5e commit 6172733
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,8 @@ public boolean isOptional(int i) {
SqlTypeFamily.BOOLEAN, SqlTypeFamily.ANY, SqlTypeFamily.ARRAY, SqlTypeFamily.STRING, SqlTypeFamily.STRING));
createAddUserDefinedFunction("com.linkedin.groot.runtime.udf.spark.GetMappedValueUDF", FunctionReturnTypes.STRING,
family(SqlTypeFamily.STRING, SqlTypeFamily.STRING));
createAddUserDefinedFunction("com.linkedin.groot.runtime.udf.spark.ExtractCollectionUDF",
FunctionReturnTypes.arrayOfType(SqlTypeName.VARCHAR, true), family(SqlTypeFamily.ANY, SqlTypeFamily.STRING));

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

0 comments on commit 6172733

Please sign in to comment.