Data Catalog (new version)

Updated at:

Data Catalog is a unified metadata workspace for data analysis. It brings together metadata from sources such as MaxCompute, Hologres, and DLF, allowing you to prepare tables and manage views without leaving DataWorks so you can focus on analysis.

Access the feature

Log on to DataWorks DataAnalysis, switch to the target region, and then click Go to DataAnalysis.

  • If Switch to New DataAnalysis appears in the navigation bar, click it to switch to the new version.

  • If Return to Legacy DataAnalysis appears in the navigation bar, you are in the new version.

Add a data catalog

Data Catalog brings together metadata from multiple data sources. You can add the data source types that you need to build a personalized catalog tree. Data Catalog supports the following types: MaxCompute, Hologres, Hive (including EMR and CDH), DLF Catalog, AnalyticDB MySQL, AnalyticDB PostgreSQL, StarRocks, Data Album, My Favorites, Public Data, and Alibaba Cloud billing data.

  1. In Data Catalog, find the type of data source to add and click the image icon next to its name to open the Add Data Catalog page.

  2. On the Add Data Catalog page, find the instance or data source and click Add in the Operation column to add it to Data Catalog.

    If you no longer need a data source, you can remove it from Data Catalog.

MaxCompute

In addition to directly adding MaxCompute projects, you can add the following content under the MaxCompute type:

  • DataWorks data source: displays the data sources of the workspaces that you have joined.

  • My MaxCompute Tables: aggregates the tables, external tables, object tables, views, and materialized views that you own in the MaxCompute projects you have joined, so that you can quickly locate your data assets across projects without browsing each project.

Other data source types

When you add data sources of other types such as Hologres, Hive, AnalyticDB MySQL, AnalyticDB PostgreSQL, or StarRocks, the DataWorks data source tab displays the data sources of the workspaces that you have joined.

Data Album

The Add Data Album page contains the following content:

  • Category: All, Albums I manage, Albums I created, and Albums I follow.

  • Search: You can search data albums by name or description keywords.

  • List: Displays the name, description, and creator of each data album and provides the option to add a data album.

If the target data album is not found in the list, create one in Data Album.

My Favorites

After you add My Favorites, you can view your favorite tables in the catalog tree. You can right-click a table to Generate SQL, Remove from Favorites, and perform other operations.

Public Data

You do not need to add Public Data to Data Catalog separately. The catalog tree displays public datasets by category, such as Digital Commerce and Life Services. You can expand a category to browse and analyze the datasets it contains.

Alibaba Cloud billing data

Alibaba Cloud billing data is used to subscribe all product and service fees generated by the current tenant on Alibaba Cloud to MaxCompute tables, so that you can run cost queries and bill analysis directly in DataWorks. On the Add Data Catalog page, click Alibaba Cloud billing data. The catalog tree then displays billing tables such as Billing Item Bill Details, Split Bill Details, and Cost Details. You can right-click the target table to run Data Insight, View Sample SQL, Enable Subscription, and perform other operations.

Manage Data Catalog

Use Data Catalog to manage data objects such as tables, views, external tables, resources, and functions.

Generate query SQL

Quickly generate query SQL from a table, then configure and run the query. For more information, see Create an SQL query.

  1. Find the target data source in the Data Catalog list. Click the image icons on the left in sequence, and locate the table to query under Tables.

  2. Right-click the target table and select Generate SQL File for Query.

  3. You can modify the generated query SQL script on the SQL editing page.

  4. After making changes, click Run Configuration on the right side of the SQL editing page. Set Computing Resource, Script Parameters, and other information, and then run the query.

Appendix

MaxCompute authentication identity and authorization

To view MaxCompute data in Data Catalog as a RAM user or RAM role, first obtain the required MaxCompute permissions. If the added MaxCompute data source or project uses the three-layer model, also grant the RAM user or role permission to view Schema metadata.

Note

If a MaxCompute project contains multiple Schemas, grant metadata permissions for all of them to view the complete Schema list on the project's details page in Data Catalog.

  • Authorize RAM users:

    GRANT DESCRIBE ON SCHEMA <SchemaName> TO USER RAM$<AlibabaCloudAccountName>:<RAMUserName>;
  • Authorize RAM roles:

    GRANT DESCRIBE ON SCHEMA <SchemaName> TO USER `RAM$<AlibabaCloudAccountName>:role/<RAMRoleName>`;