spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 崔苗 <cuim...@danale.com>
Subject how to use lit() in spark-java
Date Fri, 23 Mar 2018 12:32:58 GMT
Hi Guys, 

I want to add a constant column to dataset by lit function in java, like that:
 dataset.withColumn(columnName,lit("constant"))
but it's seems that idea coundn't found the lit() function,so how to use lit() function in
java?

thanks for any reply







Mime
View raw message