This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 022003e840c [Improve](config)The stream_load label length is changed
to a configurable (#33745)
022003e840c is described below
commit 022003e840c4e47a9a4e61fc8bca16225470d22c
Author: wudongliang <[email protected]>
AuthorDate: Fri Apr 19 14:26:15 2024 +0800
[Improve](config)The stream_load label length is changed to a configurable
(#33745)
When importing using stream load, the length of the label may exceed the
default 128 character limit.
You can change the label length by configuring label_regex_length.
---
fe/fe-common/src/main/java/org/apache/doris/common/Config.java | 5 +++++
fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
index 1cf0f448959..715c4a51c38 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
@@ -2730,6 +2730,11 @@ public class Config extends ConfigBase {
+ "for example: jdbc_driver_url_white_list=a,b,c"
})
public static String[] jdbc_driver_url_white_list = {};
+
+ @ConfField(description = {"Stream_Load 导入时,label 被限制的最大长度",
+ "Stream_Load When importing, the maximum length of label is
limited"})
+ public static int label_regex_length = 128;
+
//==========================================================================
// end of cloud config
//==========================================================================
diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java
b/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java
index 7d479af62dc..493b61582fc 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java
@@ -29,7 +29,7 @@ import org.apache.doris.qe.VariableMgr;
import com.google.common.base.Strings;
public class FeNameFormat {
- private static final String LABEL_REGEX = "^[-_A-Za-z0-9:]{1,128}$";
+ private static final String LABEL_REGEX = "^[-_A-Za-z0-9:]{1," +
Config.label_regex_length + "}$";
private static final String COMMON_NAME_REGEX =
"^[a-zA-Z][a-zA-Z0-9-_]{0,63}$";
private static final String UNDERSCORE_COMMON_NAME_REGEX =
"^[_a-zA-Z][a-zA-Z0-9-_]{0,63}$";
private static final String TABLE_NAME_REGEX = "^[a-zA-Z][a-zA-Z0-9-_]*$";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]