compilation error is showing while spliting 1 column into multiple column : while splitting my one column in dataFrame  into 2 column using below code , 
i have tried with two type of code but both the time i got error while running the program.in IteliJ screen its not showing error(means no red mark) but while running it shows error on console.
my data frame is:
+---------+
|Wrap Time|
+---------+
|   19.674|
|   11.466|
|  263.697|

code: 1

    val df2=  df.withColumn("nested", split(col("Wrap Time"), "."))
          .withColumn("Call Completion Code_1", $"nested".getItem(0))
          .withColumn("Call Completion Code_2", $"nested".getItem(1))
          .withColumn("Call Completion Code_3", $"nested".getItem(2))
          .drop("nested")

Error:(26, 43) could not find implicit value for parameter impl: breeze.linalg.split.Impl2[org.apache.spark.sql.Column,String,VR]
   val df2=  df.withColumn("nested", split(col("Wrap Time"), "."))

Error:(26, 43) not enough arguments for method apply: (implicit impl: breeze.linalg.split.Impl2[org.apache.spark.sql.Column,String,VR])VR in trait UFunc.
Unspecified value parameter impl.
   val df2=  df.withColumn("nested", split(col("Wrap Time"), "."))

code: 2: 

    val df2= df.
          withColumn("nested", split($"Wrap Time", ".")).select($"nested"(0) as "Call Completion Code_1", $"nested"(1) as "Call Completion Code_2")


Error:(23, 33) could not find implicit value for parameter impl: breeze.linalg.split.Impl2[org.apache.spark.sql.ColumnName,String,VR]
      withColumn("nested", split($"Wrap Time", ".")).select($"nested"(0) as "Call Completion Code_1", $"nested"(1) as "Call Completion Code_2")

Error:(23, 33) not enough arguments for method apply: (implicit impl: breeze.linalg.split.Impl2[org.apache.spark.sql.ColumnName,String,VR])VR in trait UFunc.
Unspecified value parameter impl.
      withColumn("nested", split($"Wrap Time", ".")).select($"nested"(0) as "Call Completion Code_1", $"nested"(1) as "Call Completion Code_2")


spark version is: spark-2.3.2  
scala 2.11.8  
jdk1.8.0_20
sbt-1.2.7


