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 <anoop.sharma@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.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
|