Re: Create dataframe column from list
Hello guys..i know its irrelevant to this topic but i've been looking desperately for the solution. I am facing en exception http://apache-spark-user-list.1001560.n3.nabble.com/how-to-resolve-you-must-build-spark-with-hive-exception-td27390.html plz help me.. I couldn't find any solution.. On Fri, Jul 22, 2016 at 5:26 PM, Ashutosh Kumarwrote: > > http://stackoverflow.com/questions/36382052/converting-list-to-column-in-spark > > > On Fri, Jul 22, 2016 at 5:15 PM, Divya Gehlot > wrote: > >> Hi, >> Can somebody help me by creating the dataframe column from the scala list >> . >> Would really appreciate the help . >> >> Thanks , >> Divya >> > >
Re: Create dataframe column from list
http://stackoverflow.com/questions/36382052/converting-list-to-column-in-spark On Fri, Jul 22, 2016 at 5:15 PM, Divya Gehlotwrote: > Hi, > Can somebody help me by creating the dataframe column from the scala list . > Would really appreciate the help . > > Thanks , > Divya >
Re: Create dataframe column from list
Hi, Doh, just rebuilding Spark so...writing off the top of my head. val cols = Seq("hello", "world") val columns = cols.map(Column.col) See http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.Column Pozdrawiam, Jacek Laskowski https://medium.com/@jaceklaskowski/ Mastering Apache Spark http://bit.ly/mastering-apache-spark Follow me at https://twitter.com/jaceklaskowski On Fri, Jul 22, 2016 at 1:45 PM, Divya Gehlotwrote: > Hi, > Can somebody help me by creating the dataframe column from the scala list . > Would really appreciate the help . > > Thanks , > Divya - To unsubscribe e-mail: user-unsubscr...@spark.apache.org