You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Peter Chu <pe...@outlook.com> on 2013/05/06 20:39:47 UTC

Table vs View

On Hive, I am using lots of tables that builds other tables, sorts of like a funnel, funneling data to get the parts I want.
I am wondering what is the advantage to creating views vs creating tables.
Is it faster to use views as compare to tables?
Peter 		 	   		  

RE: Table vs View

Posted by "Connell, Chuck" <Ch...@nuance.com>.
I am not sure about speed, but my understanding is that tables are real things, they exist as files on disk and can be reused. Views are temporary entities that are created on-the-fly and cannot be reused later.

Chuck


From: Peter Chu [mailto:pete.chu@outlook.com]
Sent: Monday, May 06, 2013 2:40 PM
To: user@hive.apache.org
Subject: Table vs View

On Hive, I am using lots of tables that builds other tables, sorts of like a funnel, funneling data to get the parts I want.

I am wondering what is the advantage to creating views vs creating tables.

Is it faster to use views as compare to tables?

Peter

Re: Table vs View

Posted by Nitin Pawar <ni...@gmail.com>.
views  in hive are similar to those in any rdbms schema

normally a view is created to have a well defined interface over
an inconsistently defined table so that modification in the table
definition does not alter the view definition

another use case would be suppose you have 100 columns in a table and you
just want to give grant to 10 columns for an user. views come in picture.

I am not sure on the speed but I did not notice any difference when I used
them


On Tue, May 7, 2013 at 12:09 AM, Peter Chu <pe...@outlook.com> wrote:

> On Hive, I am using lots of tables that builds other tables, sorts of like
> a funnel, funneling data to get the parts I want.
>
> I am wondering what is the advantage to creating views vs creating tables.
>
> Is it faster to use views as compare to tables?
>
> Peter
>



-- 
Nitin Pawar