Problem Note 61592: The error "No more spool space..." might occur when you score a model via a User Defined Function (UDF) with Teradata 14.0 or later
In Teradata 14.0 or later, when you try to score a model via a User Defined Function (UDF), you might encounter an error similar to the following:
ERROR: Teradata execute: No more spool space in xxxx.
This problem occurs because the Teradata optimizer takes the data and moves it to one Access Module Processor (AMP) when running a UDF that is defined as NOT DETERMINISTIC. The spool space available on that one AMP might not be enough for the data, thus resulting in the error.
A possible workaround is to create the UDF as DETERMINISTIC instead of NOT DETERMINISTIC. To make this change, follow these steps:
- Run the %INDTD_PUBLISH_MODEL macro doing an action=REPLACE and specifying the OUTDIR= argument.
- Go to the directory specified with the OUTDIR= setting and edit the BTEQInput.txt file.
- Add DETERMINISTIC between PARAMETER STYLE SQL and CALLED ON NULL INPUT for each function, as shown here:
PARAMETER STYLE SQL
DETERMINISTIC
CALLED ON NULL INPUT
- Take the code in the file and run in Batch Teradata Query (BTEQ).
Operating System and Release Information
SAS System | SAS Scoring Accelerator for Teradata | Windows 7 Home Premium 32 bit | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows XP Professional | 9.3 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Std | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Datacenter | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows Server 2012 Datacenter | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 R2 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |
Microsoft Windows 8.1 Pro x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8.1 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8 Pro x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M6 |
Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Teradata on Linux | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Home Premium x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Professional 32 bit | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Professional x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | 9.4 TS1M6 |
Windows 7 Ultimate x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Windows Vista | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3 TS1M2 | 9.4 TS1M6 |
64-bit Enabled HP-UX | 9.3 TS1M2 | 9.4 TS1M6 |
64-bit Enabled Solaris | 9.3 TS1M2 | 9.4 TS1M6 |
HP-UX IPF | 9.3 TS1M2 | 9.4 TS1M6 |
Linux | 9.3 TS1M2 | 9.4 TS1M6 |
Linux for x64 | 9.3 TS1M2 | 9.4 TS1M6 |
Solaris for x64 | 9.3 TS1M2 | 9.4 TS1M6 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2019-03-14 14:54:01 |
Date Created: | 2017-12-15 15:32:04 |