All Products
Search
Document Center

E-MapReduce:SQL editor

Last Updated:Jun 21, 2026

The EMR Serverless StarRocks SQL editor is an interactive query editor. You can write, run, and manage SQL statements directly in the console without needing to download or install a local client. This simplifies real-time data query and analysis for data analysts and developers.

Prerequisites

You have created a StarRocks instance. For more information, see Create an instance.

Notes

The SQL editor uses the semicolon (;) as the statement separator by default. If your SQL statement contains a semicolon (;), it might cause a syntax parsing error.

To prevent this issue:

  1. Set a custom delimiter.

    Before running an SQL statement that contains a semicolon, declare a custom delimiter to prevent parsing errors. For example:

    delimiter $$
  2. Restore the default delimiter.

    After you execute the SQL statement, restore the default delimiter (;) so that subsequent SQL operations can run correctly.

    delimiter ;

Open the SQL editor

  1. Go to the E-MapReduce Serverless StarRocks instance list page.

    1. Log on to the E-MapReduce console.

    2. In the navigation pane on the left, choose EMR Serverless > StarRocks.

    3. In the top menu bar, select the required region.

  2. On the Instances page, find the desired instance and click Connect in the Connect column. For more information, see Connect to a StarRocks instance by using StarRocks Manager.

    You will be prompted to select a user identity to connect to the instance.

SQL editor UI

The SQL editor UI has four main sections: the files panel on the left, a toolbar at the top, the editor in the center, and the results panel at the bottom. The toolbar includes selectors for default_catalog, a database, and a compute group.

Item

Description

The files panel on the left displays available files, including ready-to-use TPC-DS and TPC-H benchmark scripts that you can run directly in the editor. For more information, see TPC-DS and TPC-H.

Click the image icon to create a new SQL query. When you first open the SQL editor, you can also click the image icon.

Click Run to execute all SQL statements in the editor from start to finish.

To run only a portion of the script, select the desired code and click the image icon that appears on the left.

Note

This icon appears only when you select one or more lines of code.

Click Save to save all statements.

Click Format to automatically adjust indentation, line breaks, and keyword case.

The results panel at the bottom displays query results or error messages.

Click the image icon to export the query results.

Click the image icon to display the query results or error messages in full-screen mode.

In the lower-right corner of the page, click Query Analysis to diagnose the query execution plan. For more information, see Query management and analysis.

Related documentation

To view and analyze all database operations, enable the audit log. For more information, see Audit logs.