Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jan 8, 2025
1 parent 4770b30 commit 0622789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
21 changes: 3 additions & 18 deletions regression-test/suites/nereids_syntax_p0/test_join3.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,9 @@ suite("nereids_test_join3", "query,p0") {
sql "INSERT INTO ${tbName3} VALUES ( 'cc', 23 );"
sql "INSERT INTO ${tbName3} VALUES ( 'dd', 33 );"


sql "set profile_level=3"
def label = UUID.randomUUID().toString()

profile(label) {
run {
qt_join1 """
SELECT /** $label */ * FROM ${tbName1} FULL JOIN ${tbName2} USING (name) FULL JOIN ${tbName3} USING (name) ORDER BY 1,2,3,4,5,6;
"""
}

check { p, e ->
logger.info("profile\n${p}")
if (e != null) {
throw e
}
}
}
qt_join1 """
SELECT * FROM ${tbName1} FULL JOIN ${tbName2} USING (name) FULL JOIN ${tbName3} USING (name) ORDER BY 1,2,3,4,5,6;
"""
qt_join2 """
SELECT * FROM
(SELECT * FROM ${tbName2}) as s2
Expand Down
19 changes: 3 additions & 16 deletions regression-test/suites/query_p0/join/bucket_shuffle_join.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,7 @@
// under the License.

suite("bucket-shuffle-join") {
sql "set profile_level=3"
def label = UUID.randomUUID().toString()
profile(label) {
run {
order_qt_test_bucket """
select /** ${label} */ * from test_bucket_shuffle_join where rectime="2021-12-01 00:00:00" and id in (select k1 from test_join where k1 in (1,2))
"""
}

check { p, e ->
logger.info("profile\n${p}")
if (e != null) {
throw e
}
}
}
order_qt_test_bucket """
select * from test_bucket_shuffle_join where rectime="2021-12-01 00:00:00" and id in (select k1 from test_join where k1 in (1,2))
"""
}

0 comments on commit 0622789

Please sign in to comment.