SQL limitations
This topic describes the limitations of using MaxCompute SQL in Dataphin.
Limit | Value | Category | Description |
Table name length | 128 bytes | length limit | A table name cannot contain special characters. It must start with a letter and must only contain lowercase letters (a-z), uppercase letters (A-Z), digits, and underscores (_). |
Column name length | 128 bytes | length limit |
|
Comment length | 1,024 bytes | length limit | A valid string of up to 1,024 bytes. |
Columns per table | 1,200 | quantity limit | A table can have up to 1,200 columns. |
Partitions per table | 60,000 | quantity limit | A table can have up to 60,000 partitions. |
Partition hierarchy levels per table | 6 | quantity limit | The partition hierarchy in a table cannot exceed 6 levels. |
Display limit | 10,000 rows | quantity limit | A |
| 256 | quantity limit | In a |
| 256 | quantity limit | In a |
| 128 | quantity limit | In a |
| 512 MB | quantity limit | In a |
| 1,000 rows | quantity limit | If a subquery references a partition column, it cannot return more than 1,000 rows. |
SQL statement length | 2 MB | length limit | The maximum length of an SQL statement is 2 MB. This limit also applies to SQL calls made through an SDK. |
Cell size | 8 MB | quantity limit | A single cell in a table cannot exceed 8 MB. |
Arguments in an | 1,024 | quantity limit | The maximum number of parameters in an |
| 1 MB | length limit | The maximum size for |
View | Read-only | operation limit | Views are read-only. |
Column data type | Not modifiable | operation limit | You cannot modify the data type or position of a column. |
Java UDF | Cannot be | operation limit | A Java UDF cannot be |
Partitions per query | 10,000 | quantity limit | A query can scan up to 10,000 partitions. |
SQL execution plan length | 1 MB | length limit | The execution plan for a MaxCompute SQL query cannot exceed 1 MB. If a plan exceeds this limit, MaxCompute reports the error |
Maximum job execution time | 72 hours | runtime limit | The default maximum execution time for a single SQL job is 24 hours. You can increase it to 72 hours by setting the following parameter. An SQL job cannot run for more than 72 hours. If a job exceeds this 72-hour limit, MaxCompute automatically stops it. |
Table partition creation frequency | 120 operations/15 seconds | frequency limit | The |
Some of the MaxCompute SQL limits described in this topic cannot be changed.