mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix test
This commit is contained in:
parent
9983a5d802
commit
7dcf15067c
@ -78,6 +78,15 @@ fi
|
||||
if [[ -n "$USE_DATABASE_ORDINARY" ]] && [[ "$USE_DATABASE_ORDINARY" -eq 1 ]]; then
|
||||
ln -sf $SRC_PATH/users.d/database_ordinary.xml $DEST_SERVER_PATH/users.d/
|
||||
fi
|
||||
|
||||
if [[ -n "$USE_S3_STORAGE_FOR_MERGE_TREE" ]] && [[ "$USE_S3_STORAGE_FOR_MERGE_TREE" -eq 1 ]]; then
|
||||
ln -sf $SRC_PATH/config.d/s3_storage_policy_by_default.xml $DEST_SERVER_PATH/config.d/
|
||||
fi
|
||||
|
||||
if [[ -n "$EXPORT_S3_STORAGE_POLICIES" ]]; then
|
||||
ln -sf $SRC_PATH/config.d/storage_conf.xml $DEST_SERVER_PATH/config.d/
|
||||
fi
|
||||
|
||||
if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]; then
|
||||
ln -sf $SRC_PATH/users.d/database_replicated.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/config.d/database_replicated.xml $DEST_SERVER_PATH/config.d/
|
||||
@ -107,12 +116,4 @@ if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]
|
||||
sudo chgrp clickhouse /var/lib/clickhouse2
|
||||
fi
|
||||
|
||||
if [[ -n "$USE_S3_STORAGE_FOR_MERGE_TREE" ]] && [[ "$USE_S3_STORAGE_FOR_MERGE_TREE" -eq 1 ]]; then
|
||||
ln -sf $SRC_PATH/config.d/s3_storage_policy_by_default.xml $DEST_SERVER_PATH/config.d/
|
||||
fi
|
||||
|
||||
if [[ -n "$EXPORT_S3_STORAGE_POLICIES" ]]; then
|
||||
ln -sf $SRC_PATH/config.d/storage_conf.xml $DEST_SERVER_PATH/config.d/
|
||||
fi
|
||||
|
||||
ln -sf $SRC_PATH/client_config.xml $DEST_CLIENT_PATH/config.xml
|
||||
|
@ -1,2 +1,2 @@
|
||||
SELECT 1, * FROM test LIMIT 10 FORMAT Null; 4194304 0 0
|
||||
SELECT 2, * FROM test LIMIT 10 FORMAT Null; 0 2097152 0
|
||||
SELECT 1, * FROM test LIMIT 10 FORMAT Null; 1 0 1
|
||||
SELECT 2, * FROM test LIMIT 10 FORMAT Null; 0 1 0
|
||||
|
@ -9,12 +9,13 @@ SELECT 1, * FROM test LIMIT 10 FORMAT Null;
|
||||
|
||||
SYSTEM FLUSH LOGS;
|
||||
SELECT query,
|
||||
ProfileEvents['RemoteFSReadBytes'] as remote_fs_read,
|
||||
ProfileEvents['RemoteFSCacheReadBytes'] as remote_fs_cache_read,
|
||||
ProfileEvents['RemoteFSCacheDownloadedBytes'] as remote_fs_read_and_download
|
||||
ProfileEvents['RemoteFSReadBytes'] > 0 as remote_fs_read,
|
||||
ProfileEvents['RemoteFSCacheReadBytes'] > 0 as remote_fs_cache_read,
|
||||
ProfileEvents['RemoteFSCacheDownloadBytes'] > 0 as remote_fs_read_and_download
|
||||
FROM system.query_log
|
||||
WHERE query LIKE 'SELECT 1, * FROM test LIMIT%'
|
||||
AND type = 'QueryFinish'
|
||||
AND current_database = currentDatabase()
|
||||
ORDER BY query_start_time DESC
|
||||
LIMIT 1;
|
||||
|
||||
@ -28,11 +29,14 @@ SELECT 2, * FROM test LIMIT 10 FORMAT Null;
|
||||
|
||||
SYSTEM FLUSH LOGS;
|
||||
SELECT query,
|
||||
ProfileEvents['RemoteFSReadBytes'] as remote_fs_read,
|
||||
ProfileEvents['RemoteFSCacheReadBytes'] as remote_fs_cache_read,
|
||||
ProfileEvents['RemoteFSCacheDownloadedBytes'] as remote_fs_read_and_download
|
||||
ProfileEvents['RemoteFSReadBytes'] > 0 as remote_fs_read,
|
||||
ProfileEvents['RemoteFSCacheReadBytes'] > 0 as remote_fs_cache_read,
|
||||
ProfileEvents['RemoteFSCacheDownloadBytes'] > 0 as remote_fs_read_and_download
|
||||
FROM system.query_log
|
||||
WHERE query LIKE 'SELECT 2, * FROM test LIMIT%'
|
||||
AND type = 'QueryFinish'
|
||||
AND current_database = currentDatabase()
|
||||
ORDER BY query_start_time DESC
|
||||
LIMIT 1;
|
||||
|
||||
DROP TABLE test NO DELAY;
|
||||
|
Loading…
Reference in New Issue
Block a user