All Products
Search
Document Center

MaxCompute:SET operations

Last Updated:Jul 20, 2023

MaxCompute allows you to configure system variables for sessions. This topic describes how to configure and view the system variables, which can affect MaxCompute operations.

The following table describes the statements that are used for SET operations.

Operation

Description

Role

Operation platform

SET

Configures MaxCompute system variables for the current session.

Users who have operation permissions on projects

You can execute the statements that are described in this topic on the following platforms:

SHOW FLAGS

Displays the properties that you configured by using the SET statement.

SET

Configures MaxCompute system variables for the current session. MaxCompute also allows you to configure properties for projects. For more information, see Configure project properties.

  • Syntax

    set <KEY>=<VALUE>
  • Parameters

    • KEY: the name of the property.

    • VALUE: the value of the property.

      For more information about how to configure properties for sessions, see Flag parameters.

  • Example

    -- Set the size of data read by each Mapper to 256 MB. 
    set odps.stage.mapper.split.size=256;

SHOW FLAGS

Displays the properties that you configured by using the SET statement. Syntax:

show flags;