diff --git a/tests/cases/distributed/information_schema/cluster_info.result b/tests/cases/distributed/information_schema/cluster_info.result index 9f193625916b..adc75e65fe6b 100644 --- a/tests/cases/distributed/information_schema/cluster_info.result +++ b/tests/cases/distributed/information_schema/cluster_info.result @@ -18,7 +18,7 @@ DESC TABLE CLUSTER_INFO; +-------------+----------------------+-----+------+---------+---------------+ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -28,7 +28,7 @@ SELECT * FROM CLUSTER_INFO ORDER BY peer_type; +++++++++|peer_id|peer_type|peer_addr|node_version|git_commit|start_time|uptime|active_time|+++++++++|1|DATANODE|127.0.0.1:29411|Version|Hash|Start_time|Duration|Duration||2|DATANODE|127.0.0.1:29412|Version|Hash|Start_time|Duration|Duration||3|DATANODE|127.0.0.1:29413|Version|Hash|Start_time|Duration|Duration||0|FLOWNODE|127.0.0.1:29680|Version|Hash|Start_time|Duration|Duration||1|FRONTEND|127.0.0.1:29401|Version|Hash|Start_time|Duration|Duration||1|METASRV|127.0.0.1:29302|Version|Hash|Start_time|Duration||+++++++++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -38,7 +38,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'METASRV' ORDER BY peer_type; +++++++++|peer_id|peer_type|peer_addr|node_version|git_commit|start_time|uptime|active_time|+++++++++|1|METASRV|127.0.0.1:29302|Version|Hash|Start_time|Duration||+++++++++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -48,7 +48,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'FRONTEND' ORDER BY peer_type; +++++++++|peer_id|peer_type|peer_addr|node_version|git_commit|start_time|uptime|active_time|+++++++++|1|FRONTEND|127.0.0.1:29401|Version|Hash|Start_time|Duration|Duration|+++++++++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -58,7 +58,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE != 'FRONTEND' ORDER BY peer_type; +++++++++|peer_id|peer_type|peer_addr|node_version|git_commit|start_time|uptime|active_time|+++++++++|1|DATANODE|127.0.0.1:29411|Version|Hash|Start_time|Duration|Duration||2|DATANODE|127.0.0.1:29412|Version|Hash|Start_time|Duration|Duration||3|DATANODE|127.0.0.1:29413|Version|Hash|Start_time|Duration|Duration||0|FLOWNODE|127.0.0.1:29680|Version|Hash|Start_time|Duration|Duration||1|METASRV|127.0.0.1:29302|Version|Hash|Start_time|Duration||+++++++++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration diff --git a/tests/cases/distributed/information_schema/cluster_info.sql b/tests/cases/distributed/information_schema/cluster_info.sql index ec0f3bb2735c..c9b254aa160b 100644 --- a/tests/cases/distributed/information_schema/cluster_info.sql +++ b/tests/cases/distributed/information_schema/cluster_info.sql @@ -3,7 +3,7 @@ USE INFORMATION_SCHEMA; DESC TABLE CLUSTER_INFO; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -11,7 +11,7 @@ DESC TABLE CLUSTER_INFO; SELECT * FROM CLUSTER_INFO ORDER BY peer_type; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -19,7 +19,7 @@ SELECT * FROM CLUSTER_INFO ORDER BY peer_type; SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'METASRV' ORDER BY peer_type; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -27,7 +27,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'METASRV' ORDER BY peer_type; SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'FRONTEND' ORDER BY peer_type; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -35,7 +35,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'FRONTEND' ORDER BY peer_type; SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE != 'FRONTEND' ORDER BY peer_type; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\s\d\.\d\.\d\s) Version +-- SQLNESS REPLACE (\s\d+\.\d+\.\d+\s) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{19,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration diff --git a/tests/cases/standalone/common/function/system.result b/tests/cases/standalone/common/function/system.result index 8abcb1e91572..d7390a28e5fc 100644 --- a/tests/cases/standalone/common/function/system.result +++ b/tests/cases/standalone/common/function/system.result @@ -14,6 +14,6 @@ SELECT version(); +-----------+ | version() | +-----------+ -| VERSION | +| VERSION | +-----------+ diff --git a/tests/cases/standalone/information_schema/cluster_info.result b/tests/cases/standalone/information_schema/cluster_info.result index 629e3865c9ca..3d4a762ac41c 100644 --- a/tests/cases/standalone/information_schema/cluster_info.result +++ b/tests/cases/standalone/information_schema/cluster_info.result @@ -18,7 +18,7 @@ DESC TABLE CLUSTER_INFO; +-------------+----------------------+-----+------+---------+---------------+ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -28,7 +28,7 @@ SELECT * FROM CLUSTER_INFO; +++++++++|peer_id|peer_type|peer_addr|node_version|git_commit|start_time|uptime|active_time|+++++++++|0|STANDALONE||Version|Hash|Start_time|Duration||+++++++++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -43,7 +43,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE != 'STANDALONE'; ++ -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration diff --git a/tests/cases/standalone/information_schema/cluster_info.sql b/tests/cases/standalone/information_schema/cluster_info.sql index e0a1fce07e71..c27b605a8e81 100644 --- a/tests/cases/standalone/information_schema/cluster_info.sql +++ b/tests/cases/standalone/information_schema/cluster_info.sql @@ -3,7 +3,7 @@ USE INFORMATION_SCHEMA; DESC TABLE CLUSTER_INFO; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -11,7 +11,7 @@ DESC TABLE CLUSTER_INFO; SELECT * FROM CLUSTER_INFO; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration @@ -21,7 +21,7 @@ SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE = 'STANDALONE'; SELECT * FROM CLUSTER_INFO WHERE PEER_TYPE != 'STANDALONE'; -- SQLNESS REPLACE version node_version --- SQLNESS REPLACE (\d\.\d\.\d) Version +-- SQLNESS REPLACE (\d+\.\d+\.\d+) Version -- SQLNESS REPLACE (\s[a-z0-9]{7,8}\s) Hash -- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) Start_time -- SQLNESS REPLACE ((\d+(s|ms|m)\s)+) Duration