mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix test "01834_alias_columns_laziness_filimonov" (no more sleeping in ExpressionAnalyzer).
This commit is contained in:
parent
a3423ce196
commit
db500b856f
@ -1,2 +1,2 @@
|
||||
SleepFunctionCalls: 3 (increment)
|
||||
SleepFunctionMicroseconds: 300000 (increment)
|
||||
SleepFunctionCalls: 1 (increment)
|
||||
SleepFunctionMicroseconds: 100000 (increment)
|
||||
|
@ -12,11 +12,7 @@ insert into aliases_lazyness(x) select * from numbers(100);
|
||||
|
||||
# In very old ClickHouse versions alias column was calculated for every row.
|
||||
# If it works this way, the query will take at least 0.1 * 100 = 10 seconds.
|
||||
# If the issue does not exist, the query should call sleepEachRow() "only" 4 times:
|
||||
# - from MergeTreeData::getQueryProcessingStageWithAggregateProjection() -> MergeTreeWhereOptimizer -> getBlockWithConstants()
|
||||
# - from MergeTreeWhereOptimizer -> getBlockWithConstants()
|
||||
# - ReadFromMergeTree::selectRangesToRead() -> getBlockWithConstants()
|
||||
# - Pipeline
|
||||
# If the issue does not exist, the query should call sleepEachRow() only 1 time.
|
||||
${CLICKHOUSE_CLIENT} --profile-events-delay-ms=-1 --print-profile-events --query "SELECT x, y FROM aliases_lazyness WHERE x = 1 FORMAT Null" |& grep -o -e "SleepFunctionMicroseconds.*" -e "SleepFunctionCalls.*"
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query "drop table aliases_lazyness"
|
||||
|
Loading…
Reference in New Issue
Block a user