Created 07-18-2018 10:24 AM
I'm searching for the equivalent of default syntax in Hive
Hana Syntax :
Create column table Employee ( NAME NVARCHAR(10), JOIN_DATE SECONDDATE DEFAULT CURRENT_TIMESTAMP)
Created 07-19-2018 04:17 AM
@Prathamesh H Interesting question. This topic was proposed here:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75977362
And default value seems to be implemented in Hive 3
https://issues.apache.org/jira/browse/HIVE-18726
Sunile -
When an "Answer" addresses/solves your question, please select "Accept" beneath that answer. This encourages user participation in this forum.
Created 07-19-2018 04:46 AM
We are using Hive 2.0. Can't this scenario me handled here ?
Created 07-19-2018 04:53 AM
Not according to that Jira. It is well documented.