Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017 03:20 AM
@Raela Wang
I have used
val new DF = dataframe.withColumn("Timestamp_val",current_timestamp())
added a new column to an existing dataframe, but the compile is throwing errors while running it with yarn,
java.lang.IllegalArgumentException: requirement failed
at scala.Predef$.require(Predef.scala:221)
at org.apache.spark.sql.catalyst.analysis.UnresolvedStar.expand(unresolved.scala:199)How else can we add a column, should we not create a new dataframe while adding the column?