|
|
Archives of the TeradataForum
Message Posted: Thu, 20 Oct 2005 @ 16:46:59 GMT
Subj: | | Re: Why do I get a spool space error |
|
From: | | Lunn, Jonathan |
| Right; but the OP seems to have no duplicates at all but GROUP BY is still doing its magic. | |
| I think the case reported here might be something new. | |
I hate to be pedantic, but I think we need to get back to basics here.
In order to understand spool issues, we need to look at explains of the 2 queries so that we can see the choices the optimiser is making.
Adding a GROUP BY will definitely change the plan, and if random AMP samples are causing the redistribution of the big table on occasion, that
will lead to issues ...
JL
| |