Page 1 of 1

Multirow Hash File Lookup

Posted: Tue Jun 22, 2010 4:30 am
by sohasaid
Dears,

I want to retrieve multi-rows from a hash file to be used as reference to lookup transformer. Reference link have retrieved multi-rows when using ODBC stage with a direct reference but I need to hash data first before lookup.

I found the following reply by 'Ray' while searching:
viewtopic.php?t=88934
ray.wurlod wrote:How you create multi-valued columns depends on how you create the hashed file.
If you're using a Hashed File or UV stage to create the hashed file, specify M in the Type column in the Columns grid.
I've tried to set 'M' in the Type column for key columns as suggested but it still didn't work.

Regards.

Posted: Tue Jun 22, 2010 4:52 am
by ray.wurlod
You can not do it with a Hashed File stage. You can, however, do it with a UniVerse stage that references the hashed file through a VOC pointer.

Posted: Tue Jun 22, 2010 5:30 am
by chulett
The 'M' didn't work how? Making something 'multi-value' has absolutely nothing to do with a multi-row result set, by the way, so I guess that makes my question rhetorical.

As noted in many other posts here, you would need to build the hashed file with X fields as the "key" and then use "less than X" in the lookup when you create the VOC pointer over the hashed file and then reference it using a UV stage. Keeping the keys the same would result in still having a singleton lookup. And don't forget the CREATE.INDEX and BUILD.INDEX steps! Without that, it will be slow as, well... mole asses. :wink:

Posted: Tue Jun 22, 2010 1:25 pm
by Murali4u
It can be done through the standard utility routine 'UtilityHashLookup' under sdk option.

Posted: Tue Jun 22, 2010 9:33 pm
by chulett
Sorry, but no it cannot.

Re: Multirow Hash File Lookup

Posted: Fri Jun 25, 2010 3:21 pm
by arunkumarmm
Read your Hashed File in a UV stage and look it up... Multi-row lookup will not be enabled for a HF lookup..