SET VARIABLE
This statement is mainly used to modify Doris system variables. These system variables can be modified at the global and session level, and some can also be modified dynamically. You can also view these system variables with SHOW VARIABLE.
grammar:
SET variable_assignment [, variable_assignment] ...
illustrate:
Note:
- Only ADMIN users can set variables to take effect globally
- The globally effective variable does not affect the variable value of the current session, but only affects the variable in the new session.
Variables that support both the current session and the global effect include:
time_zonewait_timeoutsql_modeenable_profilequery_timeoutexec_mem_limitbatch_sizeallow_partition_column_nullableinsert_visible_timeout_msenable_fold_constant_by_beVariables that only support global effects include:
default_rowset_typeSet the time zone to Dongba District
SET time_zone = "Asia/Shanghai";
Set the global execution memory size
SET GLOBAL exec_mem_limit = 137438953472
SET, VARIABLE