def create_another_function(): gateway = get_gateway() j_function = gateway.jvm.GenericCatalogFunction( "MyAnotherFunction", {}) return CatalogFunction(j_function)
def create_function(): gateway = get_gateway() j_function = gateway.jvm.CatalogFunctionImpl("MyFunction", {}) return CatalogFunction(j_function)
def create_another_function(): gateway = get_gateway() j_function = gateway.jvm.CatalogFunctionImpl( "org.apache.flink.table.functions.ScalarFunction") return CatalogFunction(j_function)
def create_function(): gateway = get_gateway() j_function = gateway.jvm.CatalogFunctionImpl( "org.apache.flink.table.functions.python.SimplePythonFunction") return CatalogFunction(j_function)
def create_another_function(): return CatalogFunction.create_instance( "org.apache.flink.table.functions.ScalarFunction", "Java")
def create_function(): return CatalogFunction.create_instance( "org.apache.flink.table.functions.python.PythonScalarFunction", "Java")