You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/16 18:57:26 UTC

[jira] [Commented] (TRAFODION-2439) add/externalize support to create trafodion views on hive tables

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

ASF GitHub Bot commented on TRAFODION-2439:
-------------------------------------------

GitHub user anoopsharma00 opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/913

    TRAFODION-2439 add support for traf views on hive tables

    support for creation of trafodion views on hive tables.
    cqd hive_views is set to ON by default to enable it.
    
    During view creation, an implicit external table is created
    on underlying hive table if one doesn't already exists.
    This is used to track usage info
    in views_usage metadata table and to track privileges.
    Usage info is used to return views on tables or tables in views
    during GET stmts.
    
    trafodion view is created in trafodion catalog/schema and not in hive
    catalog/schema.
    
    delete and update operations are not allowed on traf/hive views.
    
    drop of external hive table with CASCADE option will cause all
    dependent views to be dropped.
    drop of external table without CASCADE option will not drop it
    an a dependent view exists on that table.
    
    If the underlying hive table is dropped from hive shell,
    then an error is returned at runtime when that view is accessed.
    
    new test regress/hive/TEST007 contains tests for this feature.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anoopsharma00/incubator-trafodion viewsonhive_br

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/913.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #913
    
----
commit 8b5e8a0f2ce6a23cd589a683ac2c7de434201e85
Author: Anoop Sharma <an...@esgyn.com>
Date:   2017-01-16T18:55:15Z

    TRAFODION-2439 add support for traf views on hive tables
    
    support for creation of trafodion views on hive tables.
    cqd hive_views is set to ON by default to enable it.
    
    During view creation, an implicit external table is created
    on underlying hive table if one doesn't already exists.
    This is used to track usage info
    in views_usage metadata table and to track privileges.
    Usage info is used to return views on tables or tables in views
    during GET stmts.
    
    trafodion view is created in trafodion catalog/schema and not in hive
    catalog/schema.
    
    delete and update operations are not allowed on traf/hive views.
    
    drop of external hive table with CASCADE option will cause all
    dependent views to be dropped.
    drop of external table without CASCADE option will not drop it
    an a dependent view exists on that table.
    
    If the underlying hive table is dropped from hive shell,
    then an error is returned at runtime when that view is accessed.
    
    new test regress/hive/TEST007 contains tests for this feature.

----


> add/externalize support to create trafodion views on hive tables
> ----------------------------------------------------------------
>
>                 Key: TRAFODION-2439
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2439
>             Project: Apache Trafodion
>          Issue Type: New Feature
>            Reporter: Anoop Sharma
>            Assignee: Anoop Sharma
>            Priority: Minor
>
> this enhancement is to add support for creating views  on hive tables.
> Views will be created in trafodion schema and can be accessed as 
> a regular view.
> This jira will be updated with details on semantics and restrictions
> of creating views on hive tables.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)