Convert Date of Birth into Age in Spark Dataframe API

前端 未结 4 1944
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 08:16

This seems simple but I couldn\'t find the answer. I\'m trying to convert a column of date-of-birth in the below date format to the date format in Spark Dataframe API and th

4条回答
  •  误落风尘
    2021-01-16 08:39

    I was able to convert the date of birth column to age using udf with sql date format. Please see the edit for details.

提交回复
热议问题