blob: 6e488a1ac2353db378a19d897d7c91808edd31c5 [file] [log] [blame]
import org.apache.pig.scripting.groovy.OutputSchemaFunction;
class GroovyUDFs {
@OutputSchemaFunction('squareSchema')
public static square(x) {
return x * x;
}
public static squareSchema(input) {
return input;
}
}