[Improve](config)The stream_load label length is changed to a configurable (#34459)
pick from #33745
This commit is contained in:
@ -2652,6 +2652,10 @@ public class Config extends ConfigBase {
|
||||
@ConfField
|
||||
public static String cloud_sql_server_cluster_id = "RESERVED_CLUSTER_ID_FOR_SQL_SERVER";
|
||||
|
||||
@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
|
||||
//==========================================================================
|
||||
|
||||
@ -28,7 +28,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-_]*$";
|
||||
|
||||
Reference in New Issue
Block a user