can we convert int to date format in pyspark 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