SQL editor is an interactive query editor provided by Alibaba Cloud E-MapReduce (EMR) Serverless StarRocks Manager. You can write, run, and manage SQL query statements in the SQL editor of EMR Serverless StarRocks without the need to download or install any on-premises client software. This helps data analysts and developers query and analyze data in real time.
Prerequisites
An EMR Serverless StarRocks instance is created. For more information, see Create an instance.
Go to the SQL editor
Go to the homepage of E-MapReduce (EMR) Serverless StarRocks.
Log on to the EMR console.
In the left-side navigation pane, choose
.In the top navigation bar, select a region based on your business requirements.
On the Instances tab, find the created instance and click Connect in the Actions column. For more information, see Use EMR StarRocks Manager to connect to an EMR Serverless StarRocks instance.
You can specify an appropriate user to connect to the StarRocks instance.
Overall layout of the SQL Editor page
Area | Description |
1 | This area displays all files. You can use the out-of-the-box TPC-DS and TPC-H test scripts to perform a test in the SQL editor of StarRocks Manager. For more information, see the topics in the TPC-DS and TPC-H directories. |
2 | You can click the |
3 | You can click Run to run the entire SQL script or execute specific SQL statements in the SQL script. To execute specific SQL statements, select the desired SQL statements and click the Note This icon is displayed only when you click a line of code. |
4 | You can click Save to save all statements. |
5 | You can click Format to adjust the indentation, line feed, and keyword case. |
6 | This area displays the query results or failure information. |
7 | You can click the |
8 | You can click the |
9 | You can click Query Analysis to analyze the query plan. For more information, see Manage and analyze queries. |
References
For information about how to view and analyze the operations performed on a database, see Audit logs.