title: how to insert dataframe having map column in hive table
body: <p>I have a dataframe with multiple columns out of which one column is map(string,string) type. I'm able to print this dataframe having column as map which gives data as Map("PUN" -> "Pune"). I want to write this dataframe to hive table (stored as avro) which has same column with type map.</p>
  
  <pre><code>Df.withcolumn("cname", lit("Pune"))
  withcolumn("city_code_name", map(lit("PUN"), col("cname"))
  Df.show(false)
  
  //table - created external hive table..stored as avro..with avro schema
  </code></pre>
  
  <p>After removing this map type column I'm able to save the dataframe to hive avro table.</p>
  
  <p>Save way to hive table: </p>
  
  <ol>
  <li>spark.save - saving avro file</li>
  <li>spark.sql - creating partition on hive table with avro file location</li>
  </ol>