feat: bring back sqlness and integration tests (#2448)

* enable integration test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update sqlness result

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* disable sqlness region failover

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* enable sqlness in CI

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* sort unstable result

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* set require_lease_before_startup to true

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix: fix inconsistent cache

* replace windows path chars

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* ignore some integration cases in windows

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* Revert "ignore some integration cases in windows"

This reverts commit 122478b7c1.

* disable windows for now

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix: fix close region bug in RegionHeartbeatResponseHandler

* disable failover tests

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-09-20 04:17:30 -05:00
committed by GitHub
parent 567fbad647
commit 34d6288945
18 changed files with 659 additions and 195 deletions

View File

@@ -6,19 +6,20 @@ insert into t0 values ('a', 1), (NULL,2), (NULL, 3), (NULL, 4), (NULL, 5), (NULL
Affected Rows: 7
-- SQLNESS SORT_RESULT 2 2
SELECT * FROM t0 ORDER BY t0.c0 DESC;
+----+-------------------------+
| c0 | t |
+----+-------------------------+
| | 1970-01-01T00:00:00.007 |
| | 1970-01-01T00:00:00.006 |
| | 1970-01-01T00:00:00.005 |
| | 1970-01-01T00:00:00.004 |
| | 1970-01-01T00:00:00.003 |
| | 1970-01-01T00:00:00.002 |
| a | 1970-01-01T00:00:00.001 |
+----+-------------------------+
+------+-------------------------+
| c0 | t |
+------+-------------------------+
| null | 1970-01-01T00:00:00.002 |
| null | 1970-01-01T00:00:00.003 |
| null | 1970-01-01T00:00:00.004 |
| null | 1970-01-01T00:00:00.005 |
| null | 1970-01-01T00:00:00.006 |
| null | 1970-01-01T00:00:00.007 |
| a | 1970-01-01T00:00:00.001 |
+------+-------------------------+
CREATE TABLE test0 (job VARCHAR, name VARCHAR, t TIMESTAMP TIME INDEX);
@@ -74,7 +75,7 @@ SELECT * FROM test1 ORDER BY s;
| 3555555555552 | 1970-01-01T00:00:00.003 |
| 3555555555553 | 1970-01-01T00:00:00.007 |
| 355555555556 | 1970-01-01T00:00:00.005 |
| | 1970-01-01T00:00:00.002 |
| null | 1970-01-01T00:00:00.002 |
+---------------+-------------------------+
CREATE TABLE test4 (i INT, j INT, t TIMESTAMP TIME INDEX);
@@ -341,7 +342,7 @@ select i, split_part(s, 'b', 1) from test8 order by i;
| i | split_part(test8.s,Utf8("b"),Int64(1)) |
+---+----------------------------------------+
| 1 | cc |
| 2 | |
| 2 | null |
| 3 | a |
| | d |
+---+----------------------------------------+

View File

@@ -2,6 +2,7 @@ create table t0 (c0 varchar, t TIMESTAMP TIME INDEX);
insert into t0 values ('a', 1), (NULL,2), (NULL, 3), (NULL, 4), (NULL, 5), (NULL,6), (NULL,7);
-- SQLNESS SORT_RESULT 2 2
SELECT * FROM t0 ORDER BY t0.c0 DESC;
CREATE TABLE test0 (job VARCHAR, name VARCHAR, t TIMESTAMP TIME INDEX);