how can i parse string date in pyspark schema code example
Example: pyspark convert int to date
SELECT
from_unixtime(unix_timestamp(CAST(date_var AS string) ,'yyyyMMdd'), 'yyyy-MM-dd') AS min_unix_date
SELECT
from_unixtime(unix_timestamp(CAST(date_var AS string) ,'yyyyMMdd'), 'yyyy-MM-dd') AS min_unix_date