oracle11g - Timestamp in Hive tables keeps changing -
i have hive table stores timestamp in yyyy-mm-dd hh:mm::ss.s format. have noticed value in such columns keeps changing, e.g. value sqooped '2016-01-25 00:00:00.0' (not always) value shown '2016-01-24 19:00:00.0'.
to make matters worse, not happen in tables @ same time. table1 have correct format , table2, incorrect 1 (2016-01-24 19:00:00.0) , vice versa
i don't know if relevant, moved oracle hive. in oracle table date column of type 'date' stored datda 25-jan-16 in hive column of type 'timestamp' , stores data 2016-01-25 00:00:00.0.
the timestamp correct when sqoop data incorrect when check out later.
could please tell me how fix or work around problem?
i believe because of timezone problem. try using timezone udfs in hive , check whether getting right.
eg. to_utc_timestamp
Comments
Post a Comment