Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0521b3a
change docker compose to 'docker-compose'
lsy3993 Nov 14, 2022
1981ce8
modify sql of mysql
lsy3993 Nov 15, 2022
fd21195
fix docker start and stop cmd
lsy3993 Nov 15, 2022
6cacce1
force merge
lsy3993 Nov 19, 2022
170c2d1
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 19, 2022
f4cbabf
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 21, 2022
8c2c186
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 21, 2022
5e696db
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 21, 2022
7bd616e
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 21, 2022
8789a43
Merge branch 'master' of https://github.com/lsy3993/doris
lsy3993 Nov 22, 2022
a37f3bf
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
0ecb363
Merge branch 'master' of https://github.com/lsy3993/doris
lsy3993 Nov 22, 2022
e53d750
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
2661a25
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
37a8f40
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
800f10d
Merge branch 'master' of https://github.com/lsy3993/doris
lsy3993 Nov 22, 2022
78ee379
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
b1caeea
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 22, 2022
6f9457d
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 23, 2022
a225e9c
Merge branch 'master' of https://github.com/lsy3993/doris
lsy3993 Nov 23, 2022
a4ea9a7
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 23, 2022
93ab830
Merge branch 'master' of https://github.com/apache/doris
lsy3993 Nov 24, 2022
6f5b42a
add new case for mysql external table
lsy3993 Nov 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions regression-test/data/jdbc_p0/test_jdbc_query_mysql.out
Original file line number Diff line number Diff line change
Expand Up @@ -1369,3 +1369,67 @@ true abc efg 2022-10-01 3.4 1 2 4 100000 1.2 2022-10-02T12:59:01 24.000 true abc
4
5

-- !sql73 --

-- !sql74 --
1025

-- !sql75 --
0

-- !sql76 --
111
112
113
114
115

-- !sql77 --
111
112
113
114
115

-- !sql78 --
99

-- !sql79 --
1

-- !sql80 --
4
96
97
98
99

-- !sql81 --
6 3.0
8 4.0

-- !sql82 --
1

-- !sql83 --
4
96
97
98
99

-- !sql84 --
\N \N

-- !sql85 --
1025

-- !sql86 --
0
1
2
3
4
5
6

28 changes: 28 additions & 0 deletions regression-test/suites/jdbc_p0/test_jdbc_query_mysql.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,33 @@ suite("test_jdbc_query_mysql", "p0") {
order_qt_sql71 """ WITH t AS (SELECT k8 x, k7 y FROM $jdbcMysql57Table1) SELECT x, y FROM t ORDER BY x, y LIMIT 1 """
order_qt_sql72 """ SELECT finance_admin X FROM ${exMysqlTable1} ORDER BY x """


// test for queries
order_qt_sql73 """ SELECT k7, k8 FROM $jdbcMysql57Table1 LIMIT 0 """
order_qt_sql74 """ SELECT COUNT(k8) FROM $jdbcMysql57Table1 """
order_qt_sql75 """ SELECT COUNT(CAST(NULL AS BIGINT)) FROM $jdbcMysql57Table1 """
order_qt_sql76 """ SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 120 INTERSECT SELECT id as k8 FROM ${exMysqlTable} """
order_qt_sql77 """ SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 120 INTERSECT DISTINCT SELECT id as k8 FROM ${exMysqlTable} """
order_qt_sql78 """ WITH wnation AS (SELECT k7, k8 FROM $jdbcMysql57Table1)
SELECT k8 FROM wnation WHERE k8 < 100
INTERSECT SELECT k8 FROM wnation WHERE k8 > 98 """
order_qt_sql79 """ SELECT num FROM (SELECT 1 AS num FROM $jdbcMysql57Table1 WHERE k8=10
INTERSECT SELECT 1 FROM $jdbcMysql57Table1 WHERE k8=20) T """
order_qt_sql80 """ SELECT k8 FROM (SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 100
INTERSECT SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 > 95) as t1
UNION SELECT 4 """
order_qt_sql81 """ SELECT k8, k8 / 2 FROM (SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 10
INTERSECT SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 > 4) T WHERE k8 % 2 = 0 order by k8 limit 3 """
order_qt_sql82 """ SELECT k8 FROM (SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 7
UNION SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 > 21) as t1
INTERSECT SELECT 1 """
order_qt_sql83 """ SELECT k8 FROM (SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 100
INTERSECT SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 > 95) as t1
UNION ALL SELECT 4 """
order_qt_sql84 """ SELECT NULL, NULL INTERSECT SELECT NULL, NULL FROM $jdbcMysql57Table1 """
order_qt_sql85 """ SELECT COUNT(*) FROM $jdbcMysql57Table1 INTERSECT SELECT COUNT(k8) FROM $jdbcMysql57Table1 HAVING SUM(k7) IS NOT NULL """
order_qt_sql86 """ SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 < 7 EXCEPT SELECT k8 FROM $jdbcMysql57Table1 WHERE k8 > 21 """

}
}

Expand All @@ -862,3 +889,4 @@ suite("test_jdbc_query_mysql", "p0") {