DBLookup does not really use the metadata attribute?

Hi,

looks like DBLookup does not really use the metadata attribute… i declared it in my graph as such:


.....

and in my tranformation class’s init() method, i just have:


LookupTable lookup = getLookupTable(mylookup);
lookup.setLookupKey(“dummy”);

if (!lookup.isInitialized()) {
lookup.init();
}

and i have no problem getting my lookup_value from lookup_types table…

so why is the metadata attribute mandatory (according to the documentation at http://wiki.clovergui.net/doku.php?id=g … s#dblookup)?

when will it be used and what is it for then?

thanks,
al

Hi,
there are really not needed metadata for common usage of DBLookupTable - they are created from query result set during first query execution. But lack of this metadata would cause problems when using such table in writer component for partitioning or in CTL.