如何将日期和时间维度合并到 DateTime?

How to consolidate date and time dimensions to a DateTime?

我有这样的数据:

category_id | date (string) | time (string)
    1          2011-08-21       09:16:06    
    2          2012-09-29       10:18:26 

我现在想将 datetime 维度合并为 DateTime 作为时间戳格式。我该怎么做?

你试过了吗date_parse()

select date_parse(date || time, '%Y-%m-%d%H:%i:%s')