📜  spark sql 将字符串转换为日期 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:05.444000             🧑  作者: Mango

代码示例1
spark.sql("""
  SELECT TO_DATE(CAST(UNIX_TIMESTAMP('12/31/2049', 'MM/dd/yyyy') AS TIMESTAMP)) AS newdate"""
).show()