[feat](stats) Add option to config file to enable or disable analyze function (#19062)

Add this option in conf:

    /**
     * If set false, user couldn't submit analyze SQL and FE won't allocate any related resources.
     */
    @ConfField
    public static boolean enable_stats = true;

It will be checked during analyze of analyze related stmt and init analyze manager
This commit is contained in:
AKIRA
2023-04-26 14:37:08 +09:00
committed by GitHub
parent aa88083c1e
commit 270be55c4c
7 changed files with 31 additions and 3 deletions

View File

@ -2149,5 +2149,11 @@ public class Config extends ConfigBase {
*/
@ConfField(mutable = false)
public static boolean skip_localhost_auth_check = false;
/**
* If set false, user couldn't submit analyze SQL and FE won't allocate any related resources.
*/
@ConfField
public static boolean enable_stats = true;
}