All Products
Search
Document Center

MaxCompute:Overview of SDK for Go

Last Updated:Mar 26, 2026

The MaxCompute Go SDK provides Go interfaces for operating and managing MaxCompute services, including project management, table manipulation, and data transfer.

Get started

Complete these steps in order to set up the SDK and start making requests:

StepDescription
1. Install the Go SDKInstall the Go SDK package into your project.
2. Configure access credentialsSet up a credential provider to authenticate requests. Alibaba Cloud uses these credentials to verify identity and access privileges.
3. Initialize the MaxCompute SDKCreate an ODPS object, which is the entry point for all SDK operations. Access projects, tables, and instances through this object.

Core operations

After setup, use the SDK for the following operations:

OperationDescription
Execute SQLRun MaxCompute SQL statements using the run method of the SQLTask object or the MaxCompute SQL Driver.
Upload and download dataBatch upload and download data for tables or partitions using the Tunnel. To write data in a streaming fashion, use the Streaming Tunnel.
Manage tablesRetrieve table metadata and delete tables.
Manage partitionsRetrieve partition information and delete partitions.
Manage instancesMonitor execution status and retrieve results from instance objects returned after SQL execution.
Manage permissionsRun permission management commands to control access to MaxCompute resources.
LogviewView and debug submitted MaxCompute jobs using Logview.