У меня есть файл паркета, который содержит идентификатор, функции. Когда я использую ошибку приведения 
приведение ArrayType (DoubleType, true) к DoubleType
val training = spark.read.parquet("/usr/local/spark/dataset/data/user")
val df = training.selectExpr("cast(id as int) id","cast(features as double) features")
val assembler = new VectorAssembler().setInputCols(Array("features" )).setOutputCol("feature")
val data = assembler.transform(df)
эта ошибка появляется
cannot resolve 'CAST(`features` AS DOUBLE)' due to data type mismatch: cannot cast ArrayType(DoubleType,true) to DoubleType; line 1 pos 0;
как ее решить?
После ошибки редактирования появляются
java .lang.ClassCastException: scala .collection.mutable.WrappedArray $ ofRef не может быть приведен к [D