Member since
04-26-2018
5
Posts
0
Kudos Received
0
Solutions
04-26-2018
05:28 AM
Hi, In my use case, I need to store one or more documents(pdf or images) in hive table corresponding to id. I have tried to find a way but could not find a precise solution. Can somebody please let me know what will be the DDL and DML statements for the above purpose? Many thanks in advance.
... View more
Labels:
- Labels:
-
Apache Hive
02-03-2017
07:27 AM
Hi @Rohit Sureka, Did you find a solution for this?
I am also facing same issue, In my use case I want to add a field for current timestamp with 9 decimal place precision. Hive (v 1.1.0) is giving up to only 3 decimal place, I also tried by casting it in String but no luck. As per hive official document: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-TimestampstimestampTimestamps " Timestamps Supports traditional UNIX timestamp with optional nanosecond precision. Supported conversions: Integer numeric types: Interpreted as UNIX timestamp in seconds Floating point numeric types: Interpreted as UNIX timestamp in seconds with decimal precision Strings: JDBC compliant java.sql.Timestamp format " YYYY-MM-DD HH:MM:SS.fffffffff " (9 decimal place precision) " Thanks In advance.
... View more