You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2020/03/20 01:28:45 UTC

[incubator-doris] branch master updated: Add some system variables (#3144)

This is an automated email from the ASF dual-hosted git repository.

zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c88e8ab  Add some system variables (#3144)
c88e8ab is described below

commit c88e8ab1ab2ae4a2c168c390a073e77d3f9fe0af
Author: gengjun-git <54...@users.noreply.github.com>
AuthorDate: Fri Mar 20 09:28:34 2020 +0800

    Add some system variables (#3144)
    
    Add event_scheduler and storage_engine system variables to compatible with some mysql client connect, say DataGrip of JetBrains.
---
 .../java/org/apache/doris/qe/SessionVariable.java  | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/fe/src/main/java/org/apache/doris/qe/SessionVariable.java b/fe/src/main/java/org/apache/doris/qe/SessionVariable.java
index d4c9131..70ffbfc 100644
--- a/fe/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -92,6 +92,8 @@ public class SessionVariable implements Serializable, Writable {
     public static final String USE_V2_ROLLUP = "use_v2_rollup";
     public static final String TEST_MATERIALIZED_VIEW = "test_materialized_view";
     public static final String REWRITE_COUNT_DISTINCT_TO_BITMAP_HLL = "rewrite_count_distinct_to_bitmap_hll";
+    public static final String EVENT_SCHEDULER = "event_scheduler";
+    public static final String STORAGE_ENGINE = "storage_engine";
 
     // max memory used on every backend.
     @VariableMgr.VarAttr(name = EXEC_MEM_LIMIT)
@@ -231,6 +233,12 @@ public class SessionVariable implements Serializable, Writable {
     @VariableMgr.VarAttr(name = REWRITE_COUNT_DISTINCT_TO_BITMAP_HLL)
     private boolean rewriteCountDistinct = true;
 
+    // compatible with some mysql client connect, say DataGrip of JetBrains
+    @VariableMgr.VarAttr(name = EVENT_SCHEDULER)
+    private String eventScheduler = "OFF";
+    @VariableMgr.VarAttr(name = STORAGE_ENGINE)
+    private String storageEngine = "olap";
+
     public long getMaxExecMemByte() {
         return maxExecMemByte;
     }
@@ -415,6 +423,22 @@ public class SessionVariable implements Serializable, Writable {
         this.rewriteCountDistinct = rewriteCountDistinct;
     }
 
+    public String getEventScheduler() {
+        return eventScheduler;
+    }
+
+    public void setEventScheduler(String eventScheduler) {
+        this.eventScheduler = eventScheduler;
+    }
+
+    public String getStorageEngine() {
+        return storageEngine;
+    }
+
+    public void setStorageEngine(String storageEngine) {
+        this.storageEngine = storageEngine;
+    }
+
     // Serialize to thrift object
     // used for rest api
     public TQueryOptions toThrift() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org