title: Number of partitions of a spark dataframe created by reading the data from Hive table
body: <p>I have question on spark dataframe number of partitions.</p>
  
  <p>If I have Hive table(employee) which has columns (name,age,id,location).</p>
  
  <p><code>CREATE TABLE employee (name String, age String, id Int) PARTITIONED BY (location String);</code></p>
  
  <p>If the employee table has 10 different locations. So data will be partitioned into 10 partitions in HDFS.</p>
  
  <p>If I create a Spark dataframe(df) by reading the whole data of a Hive table(employee).</p>
  
  <p>How many number of partitions will be created by Spark for a dataframe(df)?</p>
  
  <p>df.rdd.partitions.size = ??</p>