-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
feathr-impl/src/test/java/com/linkedin/feathr/common/AlienMvelContextUDFs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.linkedin.feathr.common; | ||
|
||
import com.linkedin.feathr.common.util.MvelContextUDFs; | ||
|
||
/** | ||
* | ||
* MVEL is an open-source expression language and runtime that makes it easy to write concise statements that operate | ||
* on structured data objects (such as Avro records), among other things. | ||
* | ||
* This class contains all the udfs used in Mvel for both online and offline | ||
*/ | ||
public class AlienMvelContextUDFs { | ||
// The udf naming in this class should use a_b_c form. (to be consistent with existing Spark built-in UDFs). | ||
private AlienMvelContextUDFs() { } | ||
|
||
|
||
/** | ||
* convert input to upper case string | ||
* @param input input string | ||
* @return upper case input | ||
*/ | ||
@MvelContextUDFs.ExportToMvel | ||
public static String toUpperCaseExt(String input) { | ||
return input.toUpperCase(); | ||
} | ||
/** | ||
* convert input to upper case string | ||
* @param input input string | ||
* @return upper case input | ||
*/ | ||
@MvelContextUDFs.ExportToMvel | ||
public static String toUpperCase(String input) { | ||
return input.toUpperCase(); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version=0.10.4-rc1 | ||
version=0.10.4-rc2 | ||
SONATYPE_AUTOMATIC_RELEASE=true | ||
POM_ARTIFACT_ID=feathr_2.12 |