You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Nuthan Reddy Gantla (Jira)" <ji...@apache.org> on 2020/06/01 14:21:00 UTC

[jira] [Resolved] (HIVE-13663) Create UDFs using existing functions in Hive instead from JAR files

     [ https://issues.apache.org/jira/browse/HIVE-13663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nuthan Reddy Gantla resolved HIVE-13663.
----------------------------------------
    Resolution: Abandoned

> Create UDFs using existing functions in Hive instead from JAR files
> -------------------------------------------------------------------
>
>                 Key: HIVE-13663
>                 URL: https://issues.apache.org/jira/browse/HIVE-13663
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Nuthan Reddy Gantla
>            Assignee: Jason Dere
>            Priority: Minor
>              Labels: features
>
> Recently i came across 
> FIRST_DAY_OF_YEAR UDF in SQL which returns Jan 1st of that year.
> This could be made simply using existing functions in Hive as
> suppose our input date is '2016-03-04'
> concat(Year('2016-03-04'),'-01-01') 
> instead of loading a JAR file. And moreover i guess using JAR has less performance when compared to the above implementation.
> We can also use UDFs for hiding complex functions from our query which makes it more readable.
> Kindly let me know if i'm wrong about performance.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)