lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/createFunction.sql
琉易 d13a92914d
feat: spark sql DDL test (#170)
Co-authored-by: liuyi <liuyi@dtstack.com>
2023-10-09 09:49:48 +08:00

20 lines
835 B
SQL

-- Syntax
-- CREATE [ OR REPLACE ] [ TEMPORARY ] FUNCTION [ IF NOT EXISTS ] function_name AS class_name [ resource_locations ]
CREATE OR REPLACE TEMPORARY FUNCTION IF NOT EXISTS simple_udf AS 'SimpleUdfR' USING JAR '/tmp/SimpleUdfR.jar';
CREATE OR REPLACE TEMPORARY FUNCTION IF NOT EXISTS simple_udf AS 'SimpleUdfR';
CREATE OR REPLACE FUNCTION IF NOT EXISTS simple_udf AS 'SimpleUdfR';
CREATE TEMPORARY FUNCTION IF NOT EXISTS simple_udf AS 'SimpleUdfR';
CREATE FUNCTION IF NOT EXISTS simple_udf AS 'SimpleUdfR';
CREATE OR REPLACE FUNCTION simple_udf AS 'SimpleUdfR';
CREATE TEMPORARY FUNCTION simple_udf AS 'SimpleUdfR';
CREATE FUNCTION simple_udf AS 'SimpleUdfR';
CREATE FUNCTION simple_udf AS 'SimpleUdf' USING JAR '/tmp/SimpleUdf.jar';
CREATE TEMPORARY FUNCTION simple_temp_udf AS 'SimpleUdf' USING JAR '/tmp/SimpleUdf.jar';