From 5804398eaefe64bc7065e429e87e74e4e36aaa56 Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Sun, 4 Aug 2019 17:32:33 +0300 Subject: [PATCH] new test --- .../queries/0_stateless/00943_materialize_index.reference | 2 ++ dbms/tests/queries/0_stateless/00943_materialize_index.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00943_materialize_index.reference b/dbms/tests/queries/0_stateless/00943_materialize_index.reference index 00aa71e8bd1..aa4014f798d 100644 --- a/dbms/tests/queries/0_stateless/00943_materialize_index.reference +++ b/dbms/tests/queries/0_stateless/00943_materialize_index.reference @@ -4,5 +4,7 @@ "rows_read": 8, 5 "rows_read": 6, +5 + "rows_read": 10, 5 "rows_read": 6, diff --git a/dbms/tests/queries/0_stateless/00943_materialize_index.sh b/dbms/tests/queries/0_stateless/00943_materialize_index.sh index 4ab061d9347..96cdc27a7ec 100755 --- a/dbms/tests/queries/0_stateless/00943_materialize_index.sh +++ b/dbms/tests/queries/0_stateless/00943_materialize_index.sh @@ -47,6 +47,11 @@ $CLICKHOUSE_CLIENT --query="ALTER TABLE test.minmax_idx MATERIALIZE INDEX idx IN $CLICKHOUSE_CLIENT --query="SELECT count() FROM test.minmax_idx WHERE i64 = 2;" $CLICKHOUSE_CLIENT --query="SELECT count() FROM test.minmax_idx WHERE i64 = 2 FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="ALTER TABLE test.minmax_idx CLEAR INDEX idx;" + +$CLICKHOUSE_CLIENT --query="SELECT count() FROM test.minmax_idx WHERE i64 = 2;" +$CLICKHOUSE_CLIENT --query="SELECT count() FROM test.minmax_idx WHERE i64 = 2 FORMAT JSON" | grep "rows_read" + $CLICKHOUSE_CLIENT --query="ALTER TABLE test.minmax_idx MATERIALIZE INDEX idx;" $CLICKHOUSE_CLIENT --query="SELECT count() FROM test.minmax_idx WHERE i64 = 2;"