Page 1 of 1

Happening Cardinality in join stage

Posted: Tue May 06, 2008 6:12 am
by ysrini9
Hi All,


here i am joining two tables using(left-outer) Join stage, in which left table contians 4000000 records and right table 2500 records joining with Join stage .when I am loadind data into next stage(join) records are multiplied(Cardinality) and I am getting error message which says "APT_CombinedOperatorController(0),0: Operator terminated abnormally: Terminating with exception:APT_BadAlloc: Heap allocation failed"..kindly give me the solutions.

Note:no need to use merge stage and lookup stage

Thanks
Srini

Posted: Tue May 06, 2008 6:49 am
by ArndW
Run the job with $APT_DISABLE_COMBINATION set to true in order to localize which stage is causing the error. It is most likely the JOIN but you cannot be sure.

Posted: Tue May 06, 2008 4:07 pm
by ray.wurlod
If you have duplicate join keys then you expect "cardinality". This is not a quirk of DataStage, it will happen in any SQL environment.

Exhausing heap space usually suggests that one or more operators (and these may be the tsort or buffer operators inserted by the framework) has run out of scratch space. Configure more scratch space.

You MUST disable operator combination for effective diagnosis. This may, of itself, cure the problem, as you won't be trying to do everything in a single operator.