SHOW DIST VARIABLE

Description

The SHOW DIST VARIABLE syntax is used to query PROXY system variables configuration.

Syntax

  1. ShowDistVariable ::=
  2. 'SHOW' ('VARIABLES'|'VARIABLE' 'WHERE' 'NAME' '=' variableName)
  3. variableName ::=
  4. identifier

Return Value Description

ColumnsDescription
variable_namesystem variable name
variable_valuesysten variable value

Supplement

  • When variableName is not specified, the default is query all PROXY variables configuration.

Example

  • Query all system variables configuration of PROXY
  1. SHOW DIST VARIABLES;
  1. mysql> SHOW DIST VARIABLES;
  2. +---------------------------------------+----------------+
  3. | variable_name | variable_value |
  4. +---------------------------------------+----------------+
  5. | sql_show | false |
  6. | sql_simple | false |
  7. | kernel_executor_size | 0 |
  8. | max_connections_size_per_query | 1 |
  9. | check_table_metadata_enabled | false |
  10. | sql_federation_type | NONE |
  11. | proxy_frontend_database_protocol_type | |
  12. | proxy_frontend_flush_threshold | 128 |
  13. | proxy_hint_enabled | false |
  14. | proxy_backend_query_fetch_size | -1 |
  15. | proxy_frontend_executor_size | 0 |
  16. | proxy_backend_executor_suitable | OLAP |
  17. | proxy_frontend_max_connections | 0 |
  18. | proxy_backend_driver_type | JDBC |
  19. | proxy_mysql_default_version | 5.7.22 |
  20. | proxy_default_port | 3307 |
  21. | proxy_netty_backlog | 1024 |
  22. | proxy_instance_type | Proxy |
  23. | proxy_metadata_collector_enabled | false |
  24. | agent_plugins_enabled | true |
  25. | cached_connections | 0 |
  26. | transaction_type | LOCAL |
  27. +---------------------------------------+----------------+
  28. 22 rows in set (0.01 sec)
  • Query specified system variable configuration of PROXY
  1. SHOW DIST VARIABLE WHERE NAME = sql_show;
  1. mysql> SHOW DIST VARIABLE WHERE NAME = sql_show;
  2. +---------------+----------------+
  3. | variable_name | variable_value |
  4. +---------------+----------------+
  5. | sql_show | false |
  6. +---------------+----------------+
  7. 1 row in set (0.00 sec)

Reserved word

SHOW, DIST, VARIABLE, VARIABLES, NAME