diff --git a/tests/queries/0_stateless/01814_distributed_push_down_limit.sh b/tests/queries/0_stateless/01814_distributed_push_down_limit.sh index 1412ea3be65..d995e3a1370 100755 --- a/tests/queries/0_stateless/01814_distributed_push_down_limit.sh +++ b/tests/queries/0_stateless/01814_distributed_push_down_limit.sh @@ -71,6 +71,7 @@ function test_distributed_push_down_limit_with_query_log() where event_date >= yesterday() and query_kind = 'Select' /* exclude DESC TABLE */ + and type = 'QueryFinish' and initial_query_id = '$query_id' and initial_query_id != query_id; " | xargs # convert new lines to spaces }