hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Bender <>
Subject UDF with SELECT statement argument
Date Fri, 06 May 2011 22:06:42 GMT
Hey all,

I have a quick question about using a select statement as an input to a user
defined function.

I have a table TABLE, with columns (segment_ID STRING, user_IDs

I have a UDF myfunction (map<STRING,STRING> A).

If i did tried to do this statement: myfunction(SELECT user_IDs from TABLE
WHERE segment_ID = "foo"), could I get the actual stored map object out of
that or would that mismatch types?  Any elegant way of doing this?


View raw message