All Products
Search
Document Center

MaxCompute:Visually manage internal tables, external tables, and views

Last Updated:Mar 26, 2026

Manage internal tables, external tables, or views in a visualized manner

Project Explorer in MaxCompute Studio provides a visual editor for creating, modifying, viewing, and deleting internal tables, external tables, and views in a MaxCompute project — all without leaving IntelliJ IDEA.

Choose a table or view type

Before opening the editor, decide which object type fits your use case:

TypeUse when
Internal tableData is stored and managed within MaxCompute. This is the default choice for most workloads.
External tableData lives in an external store (such as OSS) and you want to query it without loading it into MaxCompute. Requires an OSS location and serialization configuration.
ViewYou want a named query that presents data from one or more tables. Views cannot be modified after creation.

Create an internal table, external table, or view

null When you create any object through the visual editor, MaxCompute Studio applies two global properties by default: odps.sql.submit.mode=script (submits statements as scripts) and odps.sql.type.system.odps2=true (enables MaxCompute 2.0 data types).
  1. In IntelliJ IDEA, click Project Explorer in the left-side navigation pane. Right-click Tables & Views under the target MaxCompute project and select Create new table.

  2. In the Create New Table/View dialog, configure the object using one of two methods: Method 1 (recommended): Write a SQL DDL script Write your DDL directly in the SQL DDL SCRIPT section and skip all other parameters. For table creation syntax, see the "Create a table" section in Table operations. For view creation syntax, see the "Create or update a view" section in View-related operations. Method 2: Configure parameters Fill in the parameters that apply to your object type. As you configure parameters, the dialog auto-generates the corresponding SQL DDL script. If you then edit the script directly, MaxCompute Studio uses the updated script rather than the parameter values.

    Parameters for internal and external tables

    ParameterDescription
    Create TableEnter the table name. Select External to create an external table; leave it unselected to create an internal table. Select If not exists to return a success message when you create an internal table or external table that has the same name as an existing table, even if the schema of the existing table is different from that of the new table. However, the metadata of the existing table with the same name remains unchanged.
    CommentEnter a description for the table.
    LifecycleEnter a value to specify the lifecycle of the internal table or external table. Unit: days.
    Stored as AliOrcSelect to store the table in AliORC format.
    Like TableCreate a table with the same schema as an existing table. Data and lifecycle settings are not copied. Equivalent to: create table table_name like model_table;
    ColumnsAdd non-partition columns. Click the icon on the right side of the Columns tab to add a column. The name, type, NOT NULL, and comment fields are pre-filled — update them to match your schema.
    PartitionsAdd partition key columns. Click the icon on the right side of the Partitions tab. The name, type, and comment fields are pre-filled — update them as needed.
    IndicesConfigure hash or range indexes for the table.
    External TableConfigure Storage Handler, SERDEPROPERTIES, Location, and Using for an external table. See Create an OSS external table for details.
    AS SELECTCreate a table from an existing table and copy its data. Partition key columns become regular columns in the new table, and the lifecycle is not copied. For example: create table table_name (colname1, colname2) as select col1, col2 from sale_detail;
    Table PropertiesAdd custom properties to the table. See Properties.
    SQL DDL SCRIPTDisplays the auto-generated script based on your parameter configuration. Edit this section directly to override the parameter values.

    Parameters for views

    ParameterDescription
    Create TableEnter the view name. Select View to create a view. Select If not exists to return a success message when you create a view that has the same name as an existing view, even if the schema of the existing view is different from that of the new view. The existing view remains unchanged. Select Replace if exists to overwrite an existing view with the same name.
    CommentEnter a description for the view.
    ColumnsAdd columns to the view. Click the icon on the right side of the Columns tab to add a column. The name field is pre-filled — update it as needed.
    AS SELECTDefine the query that the view represents. Equivalent to: create table view_name (colname1, colname2) as select col1, col2 from sale_detail;
    SQL DDL SCRIPTDisplays the auto-generated script. Edit this section directly to override the parameter values.
  3. Click Execute. When SUCCESS appears, click OK.

  4. Right-click Tables & Views under the target project and select Refresh meta to see the new table or view in the list.

Modify an internal table or external table

null Views cannot be modified.
  1. In IntelliJ IDEA, click Project Explorer in the left-side navigation pane. Right-click the table you want to modify under Tables & Views in the target project and select Open table editor.

  2. In the Modify Table dialog, update the table. You can change the table name, comment, lifecycle, column names, and column comments, and add columns, indexes, or table properties. For parameter descriptions, see the parameter tables in Create an internal table, external table, or view.

  3. Click Execute.

  4. Right-click Tables & Views in the destination MaxCompute project and select Refresh meta to verify the changes appear in the list.

View details of an internal table, external table, or view

Internal and external tables

In the Tables & Views folder of the target project, double-click the table name — or right-click it and select show table detail. The detail panel includes three sections:

  • Table information: the MaxCompute project, owner, creation time, and last updated time

  • Table schema: column names, data types, NOT NULL constraints, and default values

  • Data preview: specify Partitions (required only for partitioned tables) and Preview rows, then click Data Preview to sample table data

Views

In the Tables & Views folder of the target project, double-click the view name — or right-click it and select show table detail — to see the query statement that defines the view.

Clear table data or delete partitions

In the Tables & Views folder of the target project, right-click the table name and select Truncate table/Delete partition to either clear all data from a non-partitioned table or remove a specific partition from a partitioned table.

Delete an internal table, external table, or view

Important

Deleting a table or view is permanent.

  1. In IntelliJ IDEA, click Project Explorer in the left-side navigation pane. In the Tables & Views folder of the target project, right-click the table or view and select Drop table from server.

    Delete a table

  2. In the Confirmation Required dialog, click OK.

  3. Right-click Tables & Views and select Refresh meta to confirm the object no longer appears in the list.