TsukiokaKogane commented on code in PR #61382:
URL: https://github.com/apache/doris/pull/61382#discussion_r2974915599
##########
fe/fe-common/src/main/java/org/apache/doris/common/Config.java:
##########
@@ -2905,6 +2905,11 @@ public class Config extends ConfigBase {
"Interval at which the dictionary triggers a data expiration
check, in seconds."})
public static int dictionary_auto_refresh_interval_seconds = 5;
+ @ConfField(mutable = false, masterOnly = false, description = { "是否启用
Table Stream 功能",
Review Comment:
fixed
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/stream/BaseStream.java:
##########
@@ -0,0 +1,166 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.catalog.stream;
+
+import org.apache.doris.catalog.Column;
+import org.apache.doris.catalog.Table;
+import org.apache.doris.catalog.TableIf;
+import org.apache.doris.common.AnalysisException;
+import org.apache.doris.common.io.Text;
+import org.apache.doris.common.util.PropertyAnalyzer;
+import org.apache.doris.persist.gson.GsonUtils;
+import org.apache.doris.thrift.TRow;
+
+import com.google.common.collect.ImmutableList;
+import com.google.gson.annotations.SerializedName;
+
+import java.io.DataOutput;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+public abstract class BaseStream extends Table {
+ public enum StreamConsumeType {
+ DEFAULT,
+ APPEND_ONLY,
+ MIN_DELTA,
+ UNKNOWN;
+ public static StreamConsumeType getType(String typeName) {
+ if (typeName == null) {
+ return UNKNOWN;
+ }
+ typeName = typeName.toLowerCase();
+ switch (typeName) {
+ case "default":
+ return DEFAULT;
+ case "append_only":
+ return APPEND_ONLY;
+ case "min_delta":
+ return MIN_DELTA;
+ default:
+ return UNKNOWN;
+ }
+ }
+ }
+
+ private static ImmutableList<TableType> supportedTableTypeList =
ImmutableList.of(TableType.OLAP);
+
+ @SerializedName("streamType")
+ protected StreamConsumeType streamConsumeType = StreamConsumeType.DEFAULT;
+
+ @SerializedName("showInitialRows")
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]