title: Spark SQL HiveContext - saveAsTable creates wrong schema
body: <p>I try to store a Dataframe to a persistent Hive table in Spark 1.3.0 (PySpark). This is my code:</p>
  
  <pre><code>sc = SparkContext(appName="HiveTest")
  hc = HiveContext(sc)
  peopleRDD = sc.parallelize(['{"name":"Yin","age":30}'])
  peopleDF = hc.jsonRDD(peopleRDD)
  peopleDF.printSchema()
  #root
  # |-- age: long (nullable = true)
  # |-- name: string (nullable = true)
  peopleDF.saveAsTable("peopleHive")
  </code></pre>
  
  <p>The Hive output table I expect is:</p>
  
  <pre><code>Column  Data Type   Comments
  age     long        from deserializer
  name    string      from deserializer
  </code></pre>
  
  <p>But the actual output Hive table of the above code is:</p>
  
  <pre><code>Column  Data Type       Comments
  col     array&lt;string&gt;   from deserializer
  </code></pre>
  
  <p>Why is the Hive table not the same schema as the DataFrame? How to achieve the expected output?</p>