Added a test

This commit is contained in:
Alexey Milovidov 2020-04-15 05:03:54 +03:00
parent fe59524481
commit 2491d59938
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1
Hello

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
$CLICKHOUSE_CLIENT --quota_key Hello --query_id test_quota_key --log_queries 1 --multiquery --query "SELECT 1; SYSTEM FLUSH LOGS; SELECT DISTINCT quota_key FROM system.query_log WHERE event_date >= yesterday() AND event_time >= now() - 300 AND query_id = 'test_quota_key'"