Hi, I was hoping that there is a casting vector into String method (instead of writing my UDF), so that it can then be serialized it into csv/text file.
Best regards, Mina On Tue, Feb 20, 2018 at 6:52 PM, vermanurag <anurag.ve...@fnmathlogic.com> wrote: > If your dataframe has columns types like vector then you cannot save as > csv/ > text as there are no direct equivalent supported by flat formats like csv/ > text. You may need to convert the column type appropriately (eg. convert > the > incompatible column to StringType before saving the output as csv. You may > need to write a UDF to convert the column Type. > > > > -- > Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/ > > --------------------------------------------------------------------- > To unsubscribe e-mail: user-unsubscr...@spark.apache.org > >