Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
SemanticException [Error 10293]:
Labels:
- Labels:
-
Apache Hive
Rising Star
Created ‎12-07-2017 10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1 ACCEPTED SOLUTION
Super Guru
Created ‎12-07-2017 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try this query
insert into table tblename select * from (select from_unixtime(unix_timestamp('161223000001', 'yyMMddHHmmss')))b;
#2) If you have timestamp as '1506614501'
hive> select from_unixtime(unix_timestamp('1506614501', 'yyMMddHHmm')); OK 2015-08-01 21:01:00 Time taken: 0.257 seconds, Fetched: 1 row(s)
Thanks,
Aditya
1 REPLY 1
Super Guru
Created ‎12-07-2017 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try this query
insert into table tblename select * from (select from_unixtime(unix_timestamp('161223000001', 'yyMMddHHmmss')))b;
#2) If you have timestamp as '1506614501'
hive> select from_unixtime(unix_timestamp('1506614501', 'yyMMddHHmm')); OK 2015-08-01 21:01:00 Time taken: 0.257 seconds, Fetched: 1 row(s)
Thanks,
Aditya
