티스토리 뷰

공부

[Spark] string to date

승가비 2020. 12. 10. 10:31
728x90
SELECT date_format(to_timestamp("2019-10-22 00:00:00", "yyyy-MM-dd HH:mm:ss"), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

https://stackoverflow.com/questions/58774777/how-to-format-date-in-spark-sql

 

How to format date in Spark SQL?

I need to transform this given date format: 2019-10-22 00:00:00 to this one: 2019-10-22T00:00:00.000Z I know this could be done in some DB via: In AWS Redshift, you can achieve this using the fol...

stackoverflow.com

 

728x90
댓글