Skip to content

Commit a4b2d56

Browse files
committed
clear
1 parent 822aec5 commit a4b2d56

File tree

1 file changed

+0
-86
lines changed
  • rust/cubestore/cubestore-sql-tests/src

1 file changed

+0
-86
lines changed

rust/cubestore/cubestore-sql-tests/src/tests.rs

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -8001,18 +8001,6 @@ async fn limit_pushdown_without_group(service: Box<dyn SqlClient>) {
80018001
.exec_query("CREATE TABLE foo.pushdown_where_group2 (a int, b int, c int) index ind1 (a, b, c) index ind2 (c, b)")
80028002
.await
80038003
.unwrap();
8004-
service
8005-
.exec_query("CREATE TABLE foo.pushdown_where_group2_with_alias (a_alias int, b_alias int, c_alias int) index ind1 (a_alias, b_alias, c_alias) index ind2 (c_alias, b_alias)")
8006-
.await
8007-
.unwrap();
8008-
service
8009-
.exec_query("CREATE TABLE foo.pushdown_where_group3_with_alias (a_alias int, b_alias int, c_alias int) index ind1 (c_alias, b_alias)")
8010-
.await
8011-
.unwrap();
8012-
service
8013-
.exec_query("CREATE TABLE foo.pushdown_where_group4_with_alias (a_alias_2 int, b_alias_2 int, c_alias_2 int) index ind1 (c_alias_2, b_alias_2)")
8014-
.await
8015-
.unwrap();
80168004
service
80178005
.exec_query(
80188006
"INSERT INTO foo.pushdown_where_group1
@@ -8291,80 +8279,6 @@ async fn limit_pushdown_without_group(service: Box<dyn SqlClient>) {
82918279
]),
82928280
]
82938281
);
8294-
8295-
// ====================================
8296-
assert_limit_pushdown(
8297-
&service,
8298-
"SELECT a, b, c FROM (
8299-
SELECT a, b, c FROM foo.pushdown_where_group1
8300-
UNION ALL
8301-
SELECT a_alias a, b_alias b, c_alias c FROM foo.pushdown_where_group2_with_alias
8302-
) as `tb`
8303-
ORDER BY 3 DESC
8304-
LIMIT 10",
8305-
Some("ind2"),
8306-
true,
8307-
true,
8308-
)
8309-
.await
8310-
.unwrap();
8311-
8312-
// ====================================
8313-
assert_limit_pushdown(
8314-
&service,
8315-
"SELECT a, b, c FROM (
8316-
SELECT a, b, c FROM foo.pushdown_where_group1
8317-
UNION ALL
8318-
SELECT a_alias a, b_alias b, c_alias c FROM foo.pushdown_where_group2_with_alias
8319-
) as `tb`
8320-
WHERE b = 20
8321-
ORDER BY 1 DESC, 3 DESC
8322-
LIMIT 3",
8323-
Some("ind1"),
8324-
true,
8325-
true,
8326-
)
8327-
.await
8328-
.unwrap();
8329-
8330-
// ====================================
8331-
// TODO: theses cases still don't use an optimal index
8332-
// Filters outside the index are a priority right now.
8333-
// The second problem is that ORDER BY does not affect the score when selecting an index
8334-
// assert_limit_pushdown(
8335-
// &service,
8336-
// "SELECT a, b, c FROM (
8337-
// SELECT a_alias a, b_alias b, c_alias c FROM foo.pushdown_where_group3_with_alias
8338-
// UNION ALL
8339-
// SELECT a_alias_2 a, b_alias_2 b, c_alias_2 c FROM foo.pushdown_where_group4_with_alias
8340-
// ) as `tb`
8341-
// WHERE a = 20
8342-
// ORDER BY 3 DESC
8343-
// LIMIT 3",
8344-
// Some("ind1"),
8345-
// true,
8346-
// true,
8347-
// )
8348-
// .await
8349-
// .unwrap();
8350-
8351-
// ====================================
8352-
// assert_limit_pushdown(
8353-
// &service,
8354-
// "SELECT a, b, c FROM (
8355-
// SELECT a_alias a, b_alias b, c_alias c FROM foo.pushdown_where_group3_with_alias
8356-
// UNION ALL
8357-
// SELECT a_alias_2 a, b_alias_2 b, c_alias_2 c FROM foo.pushdown_where_group4_with_alias
8358-
// ) as `tb`
8359-
// WHERE a > 20
8360-
// ORDER BY 3 DESC
8361-
// LIMIT 3",
8362-
// Some("ind1"),
8363-
// true,
8364-
// true,
8365-
// )
8366-
// .await
8367-
// .unwrap();
83688282
}
83698283
async fn limit_pushdown_without_group_resort(service: Box<dyn SqlClient>) {
83708284
service.exec_query("CREATE SCHEMA foo").await.unwrap();

0 commit comments

Comments
 (0)