Re: how to create custom user defined data type in Hive

2014-08-25 Thread Nitin Pawar
from teradata documentation A PERIOD column in Teradata can be any date or timestamp type I think both of these are supported in hive-0.13 if not as Peyman suggested, strings are best friends when we are not sure On Tue, Aug 26, 2014 at 6:56 AM, reena upadhyay wrote: > Hi, > > As long as the

Re: how to create custom user defined data type in Hive

2014-08-25 Thread reena upadhyay
Thanks a lot for sharing your views. On Tue, Aug 26, 2014 at 7:06 AM, Peyman Mohajerian wrote: > The only option I know in that case is using 'string' in hive. Also have > to see how something like sqoop will bring the data over, perhaps need to > cast the data type in Teradata first, using vie

Re: how to create custom user defined data type in Hive

2014-08-25 Thread Peyman Mohajerian
The only option I know in that case is using 'string' in hive. Also have to see how something like sqoop will bring the data over, perhaps need to cast the data type in Teradata first, using views. Those are my thoughts, there could be other tricks. On Mon, Aug 25, 2014 at 9:26 PM, reena upadhyay

Re: how to create custom user defined data type in Hive

2014-08-25 Thread reena upadhyay
Hi, As long as the data type is ANSI complaint, its equivalent type is available in Hive. But there are few data types that are database specific. Like there is a PERIOD data type in teradata, it is specific to teradata only, So how to map such columns in Hive? Thanks. On Tue, Aug 26, 2014 at 6

Re: how to create custom user defined data type in Hive

2014-08-25 Thread Peyman Mohajerian
As far as i know you cannot do that and most likely you don't need it, here are sample mappings between the two systems: Teradata Hive DECIMAL(x,y) double DATE,TIMESTAMP timestamp INTEGER,SMALLINT,BYTINT int VARCHAR,CHAR string DECIMAL(x,0) bigint I would typically stage

how to create custom user defined data type in Hive

2014-08-25 Thread reena upadhyay
Hi, Is there any way to create custom user defined data type in Hive? I want to move some table data from teradata database to Hive. But in teradata database tables, there are few columns data type that are not supported in Hive. So to map the source table columns to my destination table columns i