MaxCompute SQL is designed to process large-scale datasets. To ensure system stability and operational efficiency, MaxCompute SQL has certain limitations. This topic describes the limitations of MaxCompute SQL.
Item | Limit | Category | Description |
Table name length | 128 bytes | Length limit | A table name cannot contain special characters, must start with a letter, and can only contain letters (a-z, A-Z), digits, and underscores (_). |
Column name length | 128 bytes | Length limit |
|
Comment length | 1,024 bytes | Length limit | A comment must be a valid string that does not exceed 1,024 bytes. |
Columns per table | 1,200 | Quantity limit | A table supports a maximum of 1,200 columns. |
Partitions per table | 60,000 | Quantity limit | A table supports a maximum of 60,000 partitions. |
Partition levels per table | 6 | Quantity limit | A table supports a maximum of six partition levels. |
Screen display | 10,000 rows | Quantity limit | A SELECT statement can display a maximum of 10,000 rows on the screen. |
Destination tables for | 256 | Quantity limit | A |
| 256 | Quantity limit | A |
| 128 | Quantity limit | In a |
| 512 MB | Quantity limit | In a |
| 1,000 rows | Quantity limit | If a subquery contains a partition column, the subquery can return a maximum of 1,000 rows. |
SQL statement length | 2 MB | Length limit | A SQL statement cannot exceed 2 MB. This limit also applies to SQL statements run through an SDK. |
Cell size | 8 MB | Quantity limit | The data in a single table cell cannot exceed 8 MB. |
Number of parameters in an IN clause | 1,024 | Quantity limit | The recommended maximum number of parameters in an |
| 1 MB | Length limit | The size of |
Views | Not writable | Operation limit | Views are read-only and do not support |
Column data type | Cannot be modified | Operation limit | You cannot modify the data type or position of an existing column. |
Java user-defined function (UDF) | Cannot be | Operation limit | A Java UDF cannot be defined as |
Maximum number of partitions to query | 10,000 | Quantity limit | A query can scan a maximum of 10,000 partitions. |
SQL execution plan size | 1 MB | Length limit | The execution plan generated by MaxCompute SQL cannot exceed 1 MB. If it does, the job fails and returns the following error: |
Maximum job execution duration | 72 hours | Runtime duration limit | By default, the maximum execution duration for a single SQL job is 24 hours. You can extend this limit to 72 hours by using the following command. The system automatically terminates any job that runs longer than 72 hours. |
Partition creation frequency | 120 times/15 seconds | Frequency limit | You can execute the |
Some of these MaxCompute SQL limitations cannot be changed.