Hive query: Convert date timestamp to date format
P粉504920992
P粉504920992 2023-08-14 13:02:24
0
1
531
<p>I want to convert a date timestamp column containing something like '4/12/2023 15:37' to a date format, like: 2023-12-04, using a Hive query. Using the to_date format just returns me null values. </p>
P粉504920992
P粉504920992

reply all(1)
P粉827121558
SELECT TO_DATE(FROM_UNIXTIME(UNIX_TIMESTAMP('04/12/2023 15:37', 'd/MM/yyyy HH:mm')));
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!