title: How to convert array type column in dataframe to string
body: <p>I have a Spark Data Frame with a random number of columns. Some of these columns are <code>array&lt;Int&gt;</code> type. How should I find array columns in Data Frame and convert it to String? </p>
  
  <p>For example, if the field is <code>[1, 2, 3]</code> (array of int), it should be converted to one string <code>{1, 2, 3}</code>.</p>
  
  <p>The process:</p>
  
  <pre><code>  df.write
      .format("orc")
      .mode(SaveMode.Overwrite)
      .saveAsTable(s"temp_table")
  </code></pre>