Re: How can I get the constant value from the ObjectInspector in the UDF

2012-09-26 Thread Chen Song
#x27;column_name' should be numeric type. But right > now, in the API, I can not get this information. Only thing I can get is > the category type information, but I want more. > > Is it possible to do that in hive 0.7.1? > > Thanks for your help. > > Yong > >

RE: How can I get the constant value from the ObjectInspector in the UDF

2012-09-26 Thread java8964 java8964
meric type. But right now, in the API, I can not get this information. Only thing I can get is the category type information, but I want more. Is it possible to do that in hive 0.7.1? Thanks for your help. Yong Date: Thu, 27 Sep 2012 02:32:19 +0900 Subject: Re: How can I get the constant

Re: How can I get the constant value from the ObjectInspector in the UDF

2012-09-26 Thread Chen Song
Hi Yong The way GenericUDF works is as follows. *ObjectInspector initialize(ObjectInspector[] arguments) *is called only once for one GenericUDF instance used in your Hive query. This phase is for preparation steps of UDF, such as syntax check and type inference. *Object evaluate(DeferredObject[

How can I get the constant value from the ObjectInspector in the UDF

2012-09-25 Thread java8964 java8964
Hi, I am using Cloudera release cdh3u3, which has the hive 0.71 version. I am trying to write a hive UDF function as to calculate the moving sum. Right now, I am having trouble to get the constrant value passed in in the initialization stage. For example, let's assume the function is like the fo