Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. date time content
  2.  
  3. 28may 11am [ssid][customerid,shopid]
  4.  
  5. val personDF2 = personDF.withColumn("temp",split(col("content"),"\[")).select(
  6. col("*") +: (0 until 3).map(i => col("temp").getItem(i).as(s/col$i)): _*)
  7.  
  8. date time content col1 col2 col3
  9.  
  10. 28may 11 [ssid][customerid] ssid customerid shopid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement