You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Taras Bobrovytsky (JIRA)" <ji...@apache.org> on 2017/05/25 19:07:04 UTC

[jira] [Resolved] (IMPALA-5259) Add REFRESH FUNCTIONS statement

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

Taras Bobrovytsky resolved IMPALA-5259.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 2.9.0

{code}
commit 24ff0f2fc21f0111f4c4fa9cbab40105e1e7ee01
Author: Taras Bobrovytsky <tb...@cloudera.com>
Date:   Mon May 8 13:18:10 2017 -0700

    IMPALA-5259: Add REFRESH FUNCTIONS <db> statement
    
    Before this patch, Impala relied on INVALIDATE METADATA to load
    externally added UDFs from HMS. The problem with this approach is that
    INVALIDATE METADATA affects all databases and tables in the entire
    cluster.
    
    In this patch, we add a REFRESH FUNCTIONS <db> statement that reloads
    the functions of a database from HMS. We return a list of updated and
    removed db functions to the issuing Impalad in order to update its
    local catalog cache.
    
    Testing:
    - Ran a private build which passed.
    
    Change-Id: I3625c88bb51cca833f3293c224d3f0feb00e6e0b
    Reviewed-on: http://gerrit.cloudera.org:8080/6878
    Reviewed-by: Taras Bobrovytsky <tb...@cloudera.com>
    Tested-by: Impala Public Jenkins
{code}

> Add REFRESH FUNCTIONS <db> statement
> ------------------------------------
>
>                 Key: IMPALA-5259
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5259
>             Project: IMPALA
>          Issue Type: New Feature
>          Components: Catalog
>            Reporter: Dimitris Tsirogiannis
>            Assignee: Taras Bobrovytsky
>              Labels: metadata, usability
>             Fix For: Impala 2.9.0
>
>
> Currently, Impala relies on INVALIDATE METADATA to load externally added UDFs from HMS. However, INVALIDATE METADATA affects all the databases/tables of an Impala cluster. Instead, we should add a REFRESH FUNCTIONS <db> statement to reload the functions of a database from HMS. This statement should return the list of db functions to the issuing Impalad in order to update its local catalog cache.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)