After you activate the MaxCompute service, you can run join queries on tables in public datasets by using MaxCompute SQL to get started. This topic introduces the public datasets and explains how to run queries to analyze data.
Introduction
MaxCompute provides public datasets in several categories, including GitHub public event data, national statistics, TPC benchmark data, digital commerce data, lifestyle services data, and financial and stock data. MaxCompute stores these datasets in different schemas within the BIGDATA_PUBLIC_DATASET public project.
Category | Description | Dataset name | Schema | |
GitHub public event data | Developers on GitHub generate a large number of events while working on open-source projects. GitHub records details for each event, including its type, the developer, and the code repository. This dataset contains public events, such as starring a repository or committing code. | GitHub public events dataset | github_events | |
National statistics | This dataset includes annual GDP data for countries around the world and for provinces in China. | National statistics dataset | national_data | |
TPC performance data | TPC-DS | TPC-DS is a benchmark for decision support systems. It models several key aspects, such as queries and data maintenance, and evaluates the performance of emerging technologies like big data systems. |
|
|
TPC-H | TPC-H is a decision support benchmark consisting of a suite of business-oriented ad hoc queries and concurrent data modifications. It is used to execute highly complex queries on large datasets to answer critical business questions. |
|
| |
TPCx-BB | The TPC Express Benchmark BB (TPCx-BB) is a big data benchmark that measures the performance of Hadoop-based big data systems. It evaluates both hardware and software components by executing 30 common analytical queries. |
|
| |
Digital commerce | This dataset includes data from services like Taobao advertising, Taobao shopping, and Alibaba e-commerce. | Digital commerce dataset | commerce | |
Lifestyle services | This dataset includes data on secondhand real estate, films and box office results, mobile number attribution, and codes for administrative and urban-rural divisions. | Lifestyle services dataset | life_service | |
Finance and stocks | This dataset contains stock information. | Financial and stock dataset | finance | |
Disclaimer
MaxCompute's public datasets are for product testing only. The data is not periodically updated and its accuracy is not guaranteed. Therefore, do not use this data in a production environment.
The generation and analysis of TPC data in the MaxCompute public datasets are based on TPC benchmarks. These test results are not comparable to published TPC benchmark results because they do not meet all TPC benchmark requirements.
The TPC performance test data in MaxCompute is from TPC. You can also generate your own TPC data. For details about generating TPC test data, see the TPC official documentation.
Notes
Public datasets are available to all MaxCompute users. When you query these datasets, note the following:
All data in the public dataset is stored in the
BIGDATA_PUBLIC_DATASETproject. However, you are not a member of this project. Therefore, you must use cross-project access to retrieve the data. When you write an SQL script, you must specify the project name and schema name before the table name. Additionally, if tenant-level schema syntax is disabled, you must enable session-level schema syntax to ensure that your commands run properly. An example command is as follows:-- Enable session-level schema syntax SET odps.namespace.schema=true; -- Query 100 rows from the dwd_github_events_odps table SELECT * FROM bigdata_public_dataset.github_events.dwd_github_events_odps WHERE ds='2024-05-10' limit 100;ImportantYou do not incur storage fees for public datasets, but you are charged for the computing fees for your queries. For more information about billing, see Computing fees (subscription) or Computing fees (pay-as-you-go).
Because public datasets require cross-project access, you cannot find tables from these datasets in the DataWorks Data Map.
The project for public datasets uses schemas. If tenant-level schema syntax is not enabled for your project, you cannot view the public datasets directly in DataWorks
DataAnalysis. However, you can still query the data by running SQL statements.
Table details
This section details the tables within each schema of the BIGDATA_PUBLIC_DATASET public project.
GitHub public event data
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | github_events |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu) |
Tables and descriptions | Developers on GitHub generate a large volume of events when working on open-source projects. GitHub records details for each event, such as the event type, developer, and repository, and publishes these public events. These public events include starring a repository and committing code. For a list of event types, see GitHub Events. MaxCompute processes the public event data from GH Archive offline to generate the following tables:
Note The data in these tables is sourced from GH Archive. |
Update cycle |
|
Query table structure | |
Query example | |
For more information and query examples, see GitHub Public Event Data. | |
National statistics
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | national_data |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu) |
Tables and descriptions |
Note The data for the |
Update cycle | This is a static dataset and is not updated. |
Query table structure | |
Query example | |
TPC-DS data
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | tpcds_10g, tpcds_100g, tpcds_1t, tpcds_10t |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu), China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), UK (London), Germany (Frankfurt), UAE (Dubai), China (Shanghai) Finance, China (Beijing) Finance, China (Beijing) Government Cloud, China (Shenzhen) Finance |
Tables and descriptions | The TPC-DS model simulates the sales system of a large nationwide retail chain with three sales channels:
Note The data in these tables is sourced from TPC. |
Update cycle | This is a static dataset and is not updated. |
Query table structure | |
Query example | |
For query examples on datasets of different sizes, see TPC-DS Data. For more details about the data, see the official TPC Benchmark DS specification. | |
TPC-H data
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | tpch_10g, tpch_100g, tpch_1t, tpch_10t |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu), China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), UK (London), Germany (Frankfurt), UAE (Dubai), China (Shanghai) Finance, China (Beijing) Finance, China (Beijing) Government Cloud, China (Shenzhen) Finance |
Tables and descriptions | TPC-H is a benchmark for evaluating online analytical processing (OLAP) systems. It simulates transactions between suppliers and customers, and includes data such as orders, products, and customers.
Note The data in these tables is sourced from TPC. |
Update cycle | This is a static dataset and is not updated. |
Query table structure | |
Query example | |
For more information and query examples, see the official TPC Benchmark H specification. | |
TPCx-BB data
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | tpcxbb_10g, tpcxbb_100g, tpcxbb_1t, tpcxbb_10t |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu), China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), UK (London), Germany (Frankfurt), UAE (Dubai), China (Shanghai) Finance, China (Beijing) Finance, China (Beijing) Government Cloud, China (Shenzhen) Finance |
Tables and descriptions | TPCx-BB is a big data benchmark that simulates an online retail scenario. The dataset includes sales and return records, as well as item and promotion information. The tables are as follows:
Note The data in these tables is sourced from TPC. |
Update cycle | This is a static dataset and is not updated. |
Query table structure | |
Query example | |
For more information and query examples, see the official TPCx-BB specification. | |
Digital commerce dataset
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | commerce |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu) |
Tables and descriptions |
Note The data in these tables comes from the Tianchi Lab - Taobao Display Ad Click-Through Rate (CTR) Prediction dataset. |
Update cycle | This is a static dataset and is not updated. |
Query table structure | |
Query example | |
Lifestyle services dataset
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | life_service |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu) |
Tables and descriptions |
|
Update cycle |
|
Query table structure | |
Query example | |
Financial and stock dataset
Project name | BIGDATA_PUBLIC_DATASET |
Schema name | finance |
Available regions | China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shenzhen), China (Chengdu) |
Tables and descriptions |
|
Update cycle | Data is static, provided in date-based partitions. |
Query table structure | |
Query example | |
Query a public dataset
Prerequisites
You have activated MaxCompute and created a project. For more information, see Create a MaxCompute project.
Supported tools
Procedure (Example: MaxCompute SQL analysis)
Log in to the MaxCompute console and select a region in the upper-left corner.
If you do not have a project, create one.
In the left-side navigation pane, choose .
Open a sample file from the CommonDataSet Demo or create a new SQL file and enter the following code:
-- View GDP trends for provinces in China over the past 20 years. SET odps.namespace.schema=true; SET odps.sql.validate.orderby.limit = false; SELECT region, gdp, year FROM bigdata_public_dataset.national_data.annual_gdp_by_province ORDER BY year ASC;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.
Related topics
For more information about how to export data from MaxCompute, see the following topics: