SHARE
TWEET

Untitled

a guest Jun 15th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top