MaxCompute provides several public datasets that you can query with MaxCompute SQL to quickly explore the service. This page lists the available datasets and shows how to query and analyze the 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. All datasets are stored 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 repository. Events include starring a repository and committing code. |
GitHub public events dataset |
github_events |
|
|
National statistics |
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 decision support benchmark that models 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 business-oriented ad hoc queries and concurrent data modifications, designed to execute complex queries on large datasets and answer critical business questions. |
|
|
|
|
TPCx-BB |
TPCx-BB (TPC Express Benchmark BB) is a big data benchmark that measures the performance of Hadoop-based systems by executing 30 common analytical queries across both hardware and software components. |
|
|
|
|
Digital commerce |
Data from services such as Taobao advertising, Taobao shopping, and Alibaba e-commerce. |
Digital commerce dataset |
commerce |
|
|
Lifestyle services |
Data on secondhand real estate, films and box office results, mobile number attribution, and administrative and urban-rural division codes. |
Lifestyle services dataset |
life_service |
|
|
Finance and stocks |
Stock information including basic data, quarterly financials, and trading prices. |
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 (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
The following sections detail 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 as public events. Examples 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: DataWorks Data Development node)
-
Log in to the DataWorks console and select a region in the upper-left corner.
-
Create an ODPS SQL node and enter the following SQL example.
-- 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; -
Click
to view the results.
Related topics
For more information about exporting data from MaxCompute, see the following topics: