title: Column features must be of type org.apache.spark.ml.linalg.VectorUDT
body: <p>I want to run this code in pyspark (spark 2.1.1):</p>
  
  <pre><code>from pyspark.ml.feature import PCA
  
  bankPCA = PCA(k=3, inputCol="features", outputCol="pcaFeatures") 
  pcaModel = bankPCA.fit(bankDf)    
  pcaResult = pcaModel.transform(bankDF).select("label", "pcaFeatures")    
  pcaResult.show(truncate= false)
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>requirement failed: Column features must be of type
    <code>org.apache.spark.ml.linalg.Vect orUDT@3bfc3ba7</code>  but was actually
    <code>org.apache.spark.mllib.linalg.VectorUDT@f71b0bce</code>.</p>
  </blockquote>