[Improve](config)The stream_load label length is changed to a configurable (#34459)

pick from #33745
This commit is contained in:
wudongliang
2024-05-07 20:43:16 +08:00
committed by GitHub
parent ac56255f82
commit 182177def0
2 changed files with 5 additions and 1 deletions

View File

@ -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
//==========================================================================

View File

@ -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-_]*$";