mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Create local context for query analyzing in PushingToViewsBlockOutputStream.
This commit is contained in:
parent
c6b9580e9e
commit
18e4df1e85
@ -69,7 +69,7 @@ PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream(
|
|||||||
Context local_context = *views_context;
|
Context local_context = *views_context;
|
||||||
local_context.addViewSource(
|
local_context.addViewSource(
|
||||||
StorageValues::create(
|
StorageValues::create(
|
||||||
storage->getStorageID(), storage->getColumns(), Block(), storage->getVirtuals()));
|
storage->getStorageID(), storage->getColumns(), storage->getSampleBlock(), storage->getVirtuals()));
|
||||||
|
|
||||||
/// Get list of columns we get from select query.
|
/// Get list of columns we get from select query.
|
||||||
auto header = InterpreterSelectQuery(query, local_context, SelectQueryOptions().analyze()).getSampleBlock();
|
auto header = InterpreterSelectQuery(query, local_context, SelectQueryOptions().analyze()).getSampleBlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user