hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Marron <>
Subject Access context from UDF
Date Thu, 30 May 2013 13:48:33 GMT

Using Hive 0.10.0 over Hadoop 1.0.4.

I guess that I know that this is a long shot.
Is there any way to access the context from inside a UDF?
Specifically I want to get hold of the value of the virtual
column BLOCK__OFFSET__INSIDE__FILE from inside a
UDF that I'm implementing. Of course I can pass it in as
a parameter but it would be nice if I didn't have to.
So is there some way I can interrogate the value of this column?
Or, seeing as I can, that the value of the virtual column
is set using the value of
where ctx is an ExecMapperContext
is there some way that I can get hold of this
directly? Can the UDF get hold of the ExecMapperContext?

Thanks in advance.


View raw message