[ 
https://issues.apache.org/jira/browse/CALCITE-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687407#comment-16687407
 ] 

Julian Hyde commented on CALCITE-2663:
--------------------------------------

I rebased and fixed up as 
https://github.com/julianhyde/calcite/tree/2663-create-function.

Two things you still need to do:
* Add syntax to reference.md
* When you parse {{CREATE FUNCTION f AS 'path' USING JAR 'foo', FILE 'bar'}} 
gets unparsed as {{CREATE FUNCTION f AS 'path' ('foo', 'bar')}}. Can you fix 
unparse so that it generates JAR and FILE.

> create function and drop function SQL statement
> -----------------------------------------------
>
>                 Key: CALCITE-2663
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2663
>             Project: Calcite
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 1.16.0, 1.17.0
>            Reporter: ambition
>            Assignee: Julian Hyde
>            Priority: Minor
>             Fix For: 1.18.0
>
>
> support create function and drop function statement like apache hive:
> {code:java}
> CREATE [OR REPLACE] FUNCTION [IF NOT EXISTS] [db_name.]function_name AS 
> class_name
>   [USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri'] ];
> DROP FUNCTION [IF EXISTS] function_name; 
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to