Use the SQL analysis feature in the MaxCompute console to edit, run, and analyze SQL statements online.
Alibaba Cloud has upgraded the SQL analysis feature in the MaxCompute console with all-region support. Explore the new capabilities and enable them in Connect using SQL analysis (new version).
The legacy SQL analysis entry point shuts down on March 31, 2026, UTC+8. Move local files from your legacy workspace to your personal directory in the new SQL analysis interface before that date.
Function overview
-
Edit and run SQL statements online, and visualize query results.
-
Built-in public dataset demos let you test MaxCompute features immediately.
Scenarios
-
Quick exploration: Use public datasets to explore core MaxCompute capabilities.
-
Ad hoc testing: Run temporary SQL commands, such as viewing table data.
SQL analysis interface
Editor area
|
Module |
Description |
|
Tab bar |
File tabs let you open multiple files at once.
|
|
Toolbar |
|
|
Editor |
|
Run parameter configuration pane
Click Run Parameters in the top-right corner of the SQL editor to expand the configuration panel.
|
Module |
Description |
|
Project |
|
|
Computing Quota |
|
Result pane
|
Module |
Description |
|
Issue |
Automatically validates syntax and formatting for all open files before script execution. |
|
MetaData |
Select an object (table, resource, or function) from Table Data or DataSet Manage to view metadata: basic info, columns, DDL, and data preview. Requires appropriate data permissions for the object. |
|
Result |
Displays script execution results:
|
|
Cost Analysis |
Shows results from the COST SQL statement executed during Cost Analysis, including execution logs and output. |
Resource manager
Right-click an empty area in the resource manager to configure visible modules, such as hiding Timeline.
|
Module |
Description |
|
File list |
Important
You must grant access permissions to all files each time a local folder is opened. No folder contents are stored on the server. |
|
CommonDataSet Demo |
|
|
Timeline |
Records operation logs for files opened in the editor. Logs are stored in browser cache and cleared when you clear the cache. |
Search
Click the Search icon in the sidebar. The search box supports Match Case (Aa), Whole Words (ab), and Regular Expression (*). The replace box supports Preserve Case (AB).
|
Module |
Description |
|
Search |
|
|
Replacement |
|
Table data
Lists all objects across projects in the current tenant and region: schemas, tables, views, resources, and functions.
-
Visibility scope: Alibaba Cloud accounts can view all projects. RAM users must be added to a project to view its contents.
-
SYSTEM_CATALOGproject:SYSTEM_CATALOGis a system-created project for tenant-level Information Schema. INFORMATION_SCHEMA views reside under the "INFORMATION_SCHEMA" schema in this project and are directly accessible. -
View permissions: Viewing a project’s object list requires List permission.
Tables with
SELECTpermission display a green icon
. -
Schema hierarchy: Expand a project to see its schemas (if enabled) or object categories directly. Expand a category to view its objects.
-
Click an object to view its metadata details in the MetaData tab in the result pane.
Public datasets
In the SQL editor, click the database icon at the bottom of the left navigation pane. The Public Datasets entry appears at the top of the left panel. Expand BIGDATA_PUBLIC_DATASET to browse available tables.
Displays metadata for tables in system-provided public datasets.
Use SQL analysis
-
SQL jobs require a project. Create one after activating MaxCompute.
-
Log in to the MaxCompute console and select a region in the upper-left corner.
-
SQL jobs require a project. Create one after activating MaxCompute.
-
In the left-side navigation pane, choose .
-
On the Data Exploration > SQL Analysis page, create an SQL file.
-
When you open the SQL Analysis page for the first time, an SQL file named
untitled_xis created and opened by default. You can edit this file directly. -
Double-click a blank area on the file tab bar in the editor to create an SQL file.
-
Right-click the file tab bar in the editor and select New File.
-
-
After you enter SQL in the SQL editor, click Run Configurations on the right and configure the Project and Computing Quota.
Project: Required. The project in which to execute the SQL statements. You must have the
CREATE instancepermission for this project.Computing Quota: Optional. This parameter specifies the compute resource quota for the job. If you specify a quota, your account must have the
USAGEpermission for it. If you do not specify a quota, the SQL statements are executed using the default compute resource quota configured for the project.
-
Click Run and wait for the query to complete. In the execution results, you can click the
icon to perform a simple visual analysis.The SQL analysis interface does not support result downloads. Use one of these methods:
-
Run the SQL job in the MaxCompute client (odpscmd), then use the Tunnel command to download results. Download instance data.
-
Run the SQL job in an ODPS SQL node in DataWorks Data Development, then use the Export button. Export, share, and download workbooks.
-
-
Click Save to save the current SQL file to your local computer.