Same flow - initialize() is called on the GenericUDF very soon after
construction, by the same methods that created the UDF.
Take a look at TypeCheckProcFactory or ExprNodeGenericFuncDesc
From: Anirudh Paramshetti <anirudh2...@gmail.com>
Sent: Tuesday, Fe
.
From: Anirudh Paramshetti <anirudh2...@gmail.com>
Sent: Tuesday, February 02, 2016 6:29 AM
To: user@hive.apache.org
Subject: GenericUDF
Hi,
I have written a custom UDF in Java extending the GenericUDF class. I have some
print statements in the constructor and init
t:* Tuesday, February 02, 2016 6:29 AM
> *To:* user@hive.apache.org
> *Subject:* GenericUDF
>
> Hi,
>
> I have written a custom UDF in Java extending the GenericUDF class. I have
> some print statements in the constructor and initialize method, as to
> understand th
Hi,
I have written a custom UDF in Java extending the GenericUDF class. I have
some print statements in the constructor and initialize method, as to
understand the number of calls made to them. From what I have read about
GenericUDF, I was expecting the constructor and initialize method
. It works for every other
kind of table but for ORC table like above, the configure method of the
GenericUDF is not called.
Any thoughts on this?
and let the downstream tools
figure out how to consume it.
Is it possible to output columns headers through a hive genericudf ? I
looked around for example but could not find anything.
Thanks,
Viral
, February 4, 2014 2:34 PM, Raj Hadoop hadoop...@yahoo.com wrote:
How to test a Hive GenericUDF which accepts two parameters ListT, T
ListT - Can it be the output of a collect set. Please advise.
I have a generic udf which takes ListT, T. I want to test it how it works
through Hive
How to test a Hive GenericUDF which accepts two parameters ListT, T
ListT - Can it be the output of a collect set. Please advise.
I have a generic udf which takes ListT, T. I want to test it how it works
through Hive.
On Monday, January 20, 2014 5:19 PM, Raj Hadoop hadoop...@yahoo.com
a Hive GenericUDF which accepts two parameters ListT, T
ListT - Can it be the output of a collect set. Please advise.
I have a generic udf which takes ListT, T. I want to test it how it works
through Hive.
On Monday, January 20, 2014 5:19 PM, Raj Hadoop hadoop...@yahoo.com wrote
(productCategory);
fieldObjectInspectors.add(PrimitiveObjectInspectorFactory.writableStringObjectInspector);
GenericUDF.DeferredObject firstDeferredObject = new
MyDeferredObject(test2);
GenericUDF extract_product_category = new
GenericUDFExtractProductCategory
firstDeferredObject = new
MyDeferredObject(test2);
GenericUDF extract_product_category = new
GenericUDFExtractProductCategory();
extract_product_category.initialize(new
ObjectInspector[]{firstInspector});
extract_product_category.evaluate(new
DeferredObject
I am trying to write a GenericUDF function to collect all of a specific struct
field(s) within an array for each record, and return them in an array as well.
I wrote the UDF (as below), and it seems to work but:
1) It does not work when I am performing this on an external table, it works
fine
Hi all,
I am using Hive 0.7.1 over Cloudera's Hadoop distribution 0.20.2 and MapR hdfs
distribution 1.1.1.
I wrote a GenericUDF packaged as a Jar that attempts to open a local resource
during its initialization at initialize(ObjectInspector[] arguments) command.
When I run with the CLI
distribution 1.1.1.
I wrote a GenericUDF packaged as a Jar that attempts to open a local
resource during its initialization at initialize(ObjectInspector[]
arguments) command.
When I run with the CLI, everything is fine.
When I run using Cloudera’s Hive-JDBC driver, The UDF fails with null
pointer
14 matches
Mail list logo