Share

Teradata Row Size Limits: Understanding and Overcoming the 3577 Error

Learn about the Teradata row size limits and how to deal with the "3577 Row size or Sort Key size overflow" error in this informative article.

Teradata Row Size Limits: Understanding and Overcoming the 3577 Error
admin1

Occasionally, you may encounter the following error while executing an SQL SELECT statement, which pertains to the constraints imposed by the Teradata row size limits:

3577 Row size or Sort Key size overflow

Teradata has always had limitations on the size of its data rows. Before Teradata Release 14.10, all intermediate spool tables, including derived and final table results, were limited to a maximum size of 64 Kilobytes.


Want more practical data engineering analysis like this?

Join DWHPro Letters and get field-tested notes on Teradata, Snowflake, AI, migrations, performance, and enterprise data work. Early subscribers keep launch access before the paid plan launches.

Get the next issue


The Teradata 14.10 release raised the Teradata row size limit for spool tables to 1 Megabyte with the implementation of large cylinder systems. However, the final result set remained constrained to 64 Kilobytes.

Get the next issue by email.

Although 64 Kilobytes may seem like a significant number of columns that can be included in the result set, the use of wide UNICODE character columns may quickly surpass this restriction.

To address these problems, employing character columns in the LATIN format may be helpful whenever feasible. Additionally, to ensure that the final result set remains under 64 Kilobytes, it is advisable to include only the necessary columns in the outer SELECT statement of a query. Despite this limitation, derived tables within a query may still contain rows up to 1 Megabyte.

Teradata Release 16 eliminates the need for these workarounds. Moreover, the response rows of the result set can now hold up to 1 Megabyte in addition to the spool rows.

More good news: The row size of several database objects has now been increased to 1 Megabyte. The following are the most significant:

  • Base table rows
  • Global temporary table rows
  • Volatile table rows
  • The rows of Queue tables
  • Columnar rows
  • The Rows of USI and NUSI
  • The rows of Join Indexes
  • The Rows of Hash Indexes
  • The Output rows of Stored Procedures

Teradata 16 systems with large cylinders have 1-megabyte rows enabled by default.

The primary benefit of a 1 Megabyte row is its ability to accommodate a greater number of wider columns. By implementing this design approach, it is possible to minimize the need for vertical table splitting, reducing the number of joins required and significantly improving query performance.

Naturally, there is no such thing as a free lunch. Here are the primary drawbacks of utilizing rows of 1 megabyte:

  • They will consume more disk space
  • Larger rows require more data to be moved between storage devices and the CPU. This can lead to decreased performance.
  • The transient journal and the write-ahead log (WAL) will require more space.

Teradata Compression: Should you bother?
Compression in Teradata Columnar
Improve your Teradata Load Performance


Planning or surviving an enterprise data platform migration?

I write regularly about the performance, cost, architecture, and project mistakes that show up in real Teradata, Snowflake, Databricks, and enterprise data work.

Subscribe before the paid plan launches and keep launch access.

Written by Roland Wenzlofsky, founder of DWHPro and author of Teradata Query Performance Tuning. DWHPro has helped data warehouse practitioners for 15+ years.

Subscribe to DWHPro Letters

Practical field notes on enterprise data engineering, production AI systems, platform migration, and the senior engineering market.
Written by Roland Wenzlofsky Founder of DWHPro Author of Teradata Query Performance Tuning
Get the next issue
Subscribe