mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Fix tests.
This commit is contained in:
parent
abef634d1f
commit
086831e74c
@ -94,7 +94,7 @@ PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream(
|
||||
}
|
||||
|
||||
/// Remove calculated scalar subquery results, because they can be calculated for real, not substituted tables.
|
||||
if (views_context->hasQueryContext())
|
||||
if (views_context && views_context->hasQueryContext())
|
||||
views_context->getQueryContext().dropScalars();
|
||||
|
||||
/// Do not push to destination table if the flag is set
|
||||
|
Loading…
Reference in New Issue
Block a user