All Products
Search
Document Center

E-MapReduce:SQL editor

Last Updated:Mar 17, 2026

The SQL editor in E-MapReduce (EMR) Serverless StarRocks Manager is a browser-based query workspace where data analysts and developers write, run, and manage SQL scripts against a StarRocks instance — no client software to install.

Prerequisites

Before you begin, ensure that you have:

Open the SQL editor

  1. Log on to the EMR console.

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

  3. In the top navigation bar, select the region where your instance is deployed.

  4. On the Instances tab, find the target instance and click Connect in the Actions column. For details, see Use EMR StarRocks Manager to connect to an EMR Serverless StarRocks instance.

Note: Select the user you want to connect as before proceeding. The selected user determines which databases and tables are accessible in this session.

SQL editor page layout

The SQL editor page is organized into three areas: the Files panel, the Editor, and the Results panel.

SQL editor page overview

Files panel

The Files panel (area 1) lists all saved SQL files. It also includes built-in TPC-DS and TPC-H benchmark scripts for testing the instance directly. For details, see the TPC-DS and TPC-H topics.

Editor

The Editor (areas 2–5) is where you write and manage SQL scripts.

AreaControlDescription
2New query iconCreate a new SQL query. On your first visit, a prompt icon appears in the center of the editor as an alternative entry point.
3RunRun the SQL script or a selected portion of it. For details, see the Run SQL statements section below.
4SaveSave all statements in the current script.
5FormatAuto-format the script: adjusts indentation, line breaks, and keyword case.

Results panel

The Results panel (areas 6–9) displays query output and analysis.

AreaControlDescription
6Results areaShows query results or failure details after each run.
7Export iconExport the query results.
8Full screen iconExpand the results or failure details to full screen.
9Query AnalysisAnalyze the query execution plan. See Manage and analyze queries.

Run SQL statements

The Run button in area 3 supports two modes:

Run the entire script

Click Run. All statements in the current script are executed.

Run a selection

Select the SQL statements you want to execute, then click the run icon that appears on the left of the selected line. This icon is visible only when a line is clicked or selected.

What's next