티스토리 뷰

공부

[Spark] string to date

seunggabi 승가비 2020. 12. 10. 10:31
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

 

댓글
댓글쓰기 폼