za.co.absa.spark.commons.implicits.ColumnImplicits
Spark strings are base on 1 unlike scala.
Spark strings are base on 1 unlike scala. The function shifts the substring indexation to be in accordance with Scala/ Java. Another enhancement is, that the function allows a negative index, denoting counting of the index from back This version takes the substring from the startPos and takes up to the given number of characters (less.
the index (zero based) where to start the substring from, if negative it's counted from end
length of the desired substring, if longer then the rest of the string, all the remaining characters are taken
column with requested substring
Spark strings are based on 1 unlike scala.
Spark strings are based on 1 unlike scala. The function shifts the substring indexation to be in accordance with Scala/ Java. Another enhancement is, that the function allows a negative index, denoting counting of the index from back This version takes the substring from the startPos until the end.
the index (zero based) where to start the substring from, if negative it's counted from end
column with requested substring