Split 1 column into 3 columns in spark scala : <p>I have a dataframe in Spark using scala that has a column that I need split.</p>

<pre><code>scala&gt; test.show
+-------------+
|columnToSplit|
+-------------+
|        a.b.c|
|        d.e.f|
+-------------+
</code></pre>

<p>I need this column split out to look like this:</p>

<pre><code>+--------------+
|col1|col2|col3|
|   a|   b|   c|
|   d|   e|   f|
+--------------+
</code></pre>

<p>I'm using Spark 2.0.0</p>

<p>Thanks</p>
