Hubert-Dudek
Databricks MVP

Can you copy the whole error?

I bet that it should be withColumn not with withColumns (remove s)


My blog: https://databrickster.medium.com/