Skip to content

Commit

Permalink
fix: allow .(dot) literal in table name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Sep 25, 2023
1 parent 73842f1 commit 7abdfda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/meta/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ use crate::DatanodeId;

pub const REMOVED_PREFIX: &str = "__removed";

const NAME_PATTERN: &str = "[a-zA-Z_:-][a-zA-Z0-9_:-]*";
const NAME_PATTERN: &str = r"[a-zA-Z_:-][a-zA-Z0-9_:\-\.]*";

const DATANODE_TABLE_KEY_PREFIX: &str = "__dn_table";
const TABLE_INFO_KEY_PREFIX: &str = "__table_info";
Expand Down
1 change: 1 addition & 0 deletions src/common/meta/src/key/table_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ mod tests {
test_ok("my_table");
test_ok("cpu:metrics");
test_ok(":cpu:metrics");
test_ok("sys.cpu.system");
}

#[test]
Expand Down

0 comments on commit 7abdfda

Please sign in to comment.