JAHNAVI
Databricks Employee
Databricks Employee

Hi,

In Spark 3.0 and later versions, the default behavior of the split() function with an empty delimiter is to include an empty string at the beginning of the resulting array so that is the reason it is showing 4 .

Jahnavi N