title: Spark CountVectorizer return a TinyInt
body: <p>I first ask my question on this page :
  <a href="https://stackoverflow.com/questions/50567836/spark-countvectorizer-return-udt-instead-of-vector?noredirect=1&amp;lq=1">Spark CountVectorizer return udt instead of vector</a></p>
  
  <p>The answer was quite correct. I have another question, if you clearly check my CountVectorizer output
  the format is the following : [<strong>0</strong>, 3, ...]</p>
  
  <p>After check inside my Databricks notebook it seems that the format of this line is the following :</p>
  
  <pre><code>features` AS STRUCT&lt;`type`: TINYINT, `size`: INT, `indices`: ARRAY&lt;INT&gt;, `values`: ARRAY&lt;DOUBLE&gt;&gt;
  </code></pre>
  
  <p>But after checking the JavaDoc of CountVectorizer, I see that "type" nowhere.</p>
  
  <p>What is it and how to remove it ?
  Because this leads me to a </p>
  
  <pre><code>org.apache.spark.sql.AnalysisException: cannot resolve 'CAST(`features` AS STRUCT&lt;`type`: TINYINT, `size`: INT, `indices`: ARRAY&lt;INT&gt;, `values`: ARRAY&lt;DOUBLE&gt;&gt;)' due to data type mismatch: cannot cast vector to vector;
  </code></pre>
  
  <p>when i try to convert him to RDD for my LDA.</p>