Hadoop - Formatting dates when creating tables
问题 How to format dates during the process of creating Hive tables? I've currently been dumping some data into a discovery environment at work and storing dates as string, because if I format them as a DATE or TIMESTAMP the values are null. Here's what the raw data looks like: 12/07/2016 05:07:28 PM My understanding is that Hive accepts dates in this format yyyy-mm-dd hh:mm:ss I can format these using a select statement: select id, receipt_dt, from_unixtime(unix_timestamp(receipt_dt ,'MM/dd/yyyy'