Print out types of data frame columns in Spark
<p>I tried using VectorAssembler on my Spark Data Frame and it complained that it didn't support the StringType type. My Data Frame has 2126 columns.</p>

<p>What's the programmatic way to print out all the column types? </p>