title: Can spark deal with views the same way it deals with persisted tables?
body: <p>I have a view created using hive which is nothing but a simple union of two tables. I want to read the view in spark and do operations on it.</p>
  
  <p>Will spark treat the view differently when it reads the table. As in, is the view read using map-reduce (that hive would use) or is it read by spark by parallelizing the partitions (the way it usually reads tables).</p>
  
  <p>I preferred the view approach rather than creating another table with the union because of the useless duplication of data and the space that would get wasted due to it.</p>