Skip to main content

Common Table Creation Issues

Start by checking the CREATE TABLE syntax and the table definition. For partition-creation failures or a statement that does not finish, record the SQL, database and table names, error, occurrence time with time zone, and warehouse details for VeloDB Cloud Support.

The log files and frontend configuration names below describe service-side diagnostics. VeloDB Cloud manages these components. Warehouse users do not need host access or configuration-file access to follow this guide.

Scenario 1: CREATE TABLE syntax errors​

When syntax errors occur in a long CREATE TABLE statement, the error messages may be incomplete. Common causes are as follows:

CauseInvestigation and Correction Suggestions
Syntax structure errorCarefully read HELP CREATE TABLE; and check the relevant syntax structure against it
Use of reserved wordsWhen a custom name conflicts with a reserved word, enclose it in backticks `. It is recommended that all custom names be enclosed in backticks
Chinese characters or full-width charactersNon-utf-8 encoded Chinese characters, or hidden full-width characters (such as full-width spaces or full-width punctuation), can cause syntax errors. Use a text editor with a "show invisible characters" feature for inspection

Scenario 2: Table creation reports Failed to create partition [xxx]. Timeout​

Table creation includes creating its partitions and tablets. A failure during that work can produce the error above.

Even without an explicit partition clause, a table has a default partition. A failure to create it can therefore also report Failed to create partition.

This error is usually caused by problems encountered by the BE when creating data shards (Tablets).

Collect diagnostics for Support​

Check the statement for an unexpectedly large number of partitions or buckets. Save the complete error and the table definition. The following service-side investigation is performed by VeloDB Cloud Support:

  1. Locate the failed Backend and Tablet

    Support searches fe.log for the Failed to create partition log at the corresponding time point. The log contains a series of number pairs similar to {10001-10010}:

    • The first number (10001): Backend ID
    • The second number (10010): Tablet ID

    The example above indicates that creating Tablet ID 10010 failed on the Backend with ID 10001.

  2. Check the BE log to locate the error message

    Support checks the be.INFO log of the corresponding backend for the tablet ID and occurrence time.

  3. Handle the issue according to common errors

Service-side causes of tablet creation failure​

Error SymptomPossible CauseSuggested Action
The BE did not receive the related task (no Tablet ID-related logs can be found in be.INFO), or the BE created the Tablet successfully but failed to reportConnectivity issues exist between FE and BEAsk Support to investigate frontend-to-backend connectivity
Memory pre-allocation failedWide schemas or service-side memory pressure can require investigationCheck declared column widths and provide the complete error to Support
Too many open filesThe number of open file handles exceeds the Linux system limitAsk Support to investigate service-side resource limits

Table-creation timeout settings​

If partition creation repeatedly times out, contact Support. The upstream reference below lists two service-side timeout parameters in fe.conf:

These are diagnostic references, not user-editable warehouse settings. The listed values are not verified runtime defaults for your warehouse:

ParameterDefault ValueDescription
tablet_create_timeout_second1 secondTimeout for creating a single Tablet
max_create_table_timeout_second60 secondsMaximum timeout for the entire table creation operation

The upstream guide gives the following timeout formula. Support must confirm the applicable timeout path and effective values for your warehouse:

min(tablet_create_timeout_second * replication_num, max_create_table_timeout_second)

Support can confirm the effective settings and determine whether a timeout change is appropriate.

Scenario 3: CREATE TABLE does not return​

CREATE TABLE waits for table creation to complete. The following upstream timeout formula is an implementation illustration, not a guaranteed Cloud timeout:

timeout = tablet num * replication num (seconds)

The corresponding symptoms and recommendations are as follows:

  • If many data shards are created and some of them fail, the error may be returned only after a long timeout.
  • Completion time depends on the table layout and current service conditions. A fixed duration is not guaranteed.
  • If the statement remains unresolved, record its details and contact Support. Before retrying, check whether the table was created, so a delayed response does not lead to a conflicting retry.

Get more help​

For more detailed information about data partitioning, refer to the following:

Enter to send · Shift+Enter for a new line