Hi group,
I have this snippet from an explain here, how do I avoid this product join; it should NEVER be that many rows (more like a couple of 1000..)...
I have this snippet from an explain here, how do I avoid this product join; it should NEVER be that many rows (more like a couple of 1000..)...
Code:
11) We do an all-AMPs JOIN step from Spool 9 (Last Use) by way of an
all-rows scan, which is joined to SYS_CALENDAR.CALDATES. Spool 9
and SYS_CALENDAR.CALDATES are joined using a product join, with a
join condition of ("(SYS_CALENDAR.CALDATES.cdate <= tot_met_datum)
AND (SYS_CALENDAR.CALDATES.cdate >= van_datum)"). The result goes
into Spool 11 (all_amps), which is redistributed by hash code to
all AMPs. Then we do a SORT to order Spool 11 by row hash. The
result spool file will not be cached in memory. The size of Spool
11 is estimated with index join confidence to be 25,266,093 rows.
The estimated time for this step is 2 hours and 41 minutes.