title: Casting an array of Doubles to String in spark sql
body: <p>I'm trying read data from a JSON which has an array having lat, long values something like [48.597315,-43.206085] and I want to parse them in spark sql as a single string. is there a way I can do that?</p>
  
  <p>my JSON input will look something like below.</p>
  
  <pre><code>{"id":"11700","position":{"type":"Point","coordinates":[48.597315,-43.206085]}
  </code></pre>
  
  <p>I'm trying to push this to a rdbms store and when I'm trying to cast position.coordinates to string it's giving me </p>
  
  <pre><code>Can't get JDBC type for array&lt;string&gt; 
  </code></pre>
  
  <p>as the destination datatype is nvarchar. any kind help is appreciated.!</p>