Relative Content

Tag Archive for apache-sparkpysparkdatabricksazure-databricks

Pyspark transformation causing out of memory issues

So I have a spark dataframe with multiple columns which are complex structs. I am trying to transform the value of a field in one of the struct columns based on the value of a field in another struct column. I am working with spark 3.5 so I am using the withField function. The transformation: