Variables Databricks Sql Substring Before Specific Character