MaxCompute SQL is an SQL language designed for large-sized datasets. When you use MaxCompute SQL to process large amounts of data, you must take note of specific limits to ensure system stability and operation efficiency. This topic describes the limits of MaxCompute SQL.
Item | Maximum value/Limit | Category | Description |
Table name length | 128 bytes | Length | A table or column name can contain only letters, digits, and underscores (_). It must start with a letter. Special characters are not supported. |
Comment length | 1,024 bytes | Length | A comment is a valid string that cannot exceed 1,024 bytes in length. |
Column definitions in a table | 1,200 | Quantity | A table can contain a maximum of 1,200 column definitions. |
Partitions in a table | 60,000 | Quantity | A table can contain a maximum of 60,000 partitions. |
Partition levels of a table | 6 | Quantity | A table can contain a maximum of six levels of partitions. |
Output display | 10,000 rows | Quantity | A SELECT statement can return a maximum of 10,000 rows. |
Number of destination tables for | 256 | Quantity | A |
| 256 | Quantity | The |
| 128 | Quantity | A |
| 512 MB | Quantity | The memory size for all small tables cannot exceed 512 MB when you specify a |
| 1,000 rows | Quantity | A PT IN SUBQUERY statement can generate a maximum of 1,000 rows. |
Length of an SQL statement | 2 MB | Length | An SQL statement cannot exceed 2 MB in length. This limit is suitable for the scenarios in which you use an SDK to execute SQL statements. |
Length of a column record | 8 MB | Quantity | The maximum length of a column record in a table is 8 MB. |
Parameters in an IN clause | 1,024 | Quantity | This item specifies the maximum number of parameters in an IN clause, such as |
| 1 MB | Length | The maximum size of the |
View | Not writable | Operation | A view is not writable and does not support the |
Data type and position of a column | Unmodifiable | Operation | The data type and position of a column cannot be modified. |
Java user-defined functions (UDFs) | Not allowed to be | Operation | Java UDFs cannot be |
Partitions that can be queried | 10,000 | Quantity | A maximum of 10,000 partitions can be queried. |
SQL execution plans | 1 MB | Length | The size of an execution plan that is generated by using MaxCompute SQL statements cannot exceed 1 MB. Otherwise, the error message |
Maximum execution duration of a single job | 72 hours | Execution duration | The default maximum execution duration of a single SQL job is 24 hours. You can use the following parameter setting to run a single SQL job for up to 72 hours. An SQL job cannot run for more than 72 hours. If an SQL job runs for 72 hours, the job is automatically stopped.
|
Some of the preceding limits cannot be manually modified.