mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 21:20:49 +00:00
fix build
This commit is contained in:
parent
081f0feb56
commit
66905a1366
@ -110,10 +110,11 @@ int main(int, char **)
|
|||||||
|
|
||||||
/// read from it, apply the expression, filter, and write in tsv form to the console
|
/// read from it, apply the expression, filter, and write in tsv form to the console
|
||||||
|
|
||||||
|
std::shared_ptr<bool> remove_filter;
|
||||||
ExpressionAnalyzer analyzer(ast, context, nullptr, names_and_types_list);
|
ExpressionAnalyzer analyzer(ast, context, nullptr, names_and_types_list);
|
||||||
ExpressionActionsChain chain;
|
ExpressionActionsChain chain;
|
||||||
analyzer.appendSelect(chain, false);
|
analyzer.appendSelect(chain, false);
|
||||||
analyzer.appendWhere(chain, false);
|
analyzer.appendWhere(chain, false, remove_filter);
|
||||||
chain.finalize();
|
chain.finalize();
|
||||||
ExpressionActionsPtr expression = chain.getLastActions();
|
ExpressionActionsPtr expression = chain.getLastActions();
|
||||||
|
|
||||||
@ -128,7 +129,7 @@ int main(int, char **)
|
|||||||
QueryProcessingStage::Enum stage;
|
QueryProcessingStage::Enum stage;
|
||||||
|
|
||||||
BlockInputStreamPtr in = table->read(column_names, {}, context, stage, 8192, 1)[0];
|
BlockInputStreamPtr in = table->read(column_names, {}, context, stage, 8192, 1)[0];
|
||||||
in = std::make_shared<FilterBlockInputStream>(in, expression, 4);
|
in = std::make_shared<FilterBlockInputStream>(in, expression, 4, *remove_filter);
|
||||||
//in = std::make_shared<LimitBlockInputStream>(in, 10, 0);
|
//in = std::make_shared<LimitBlockInputStream>(in, 10, 0);
|
||||||
|
|
||||||
WriteBufferFromOStream ob(std::cout);
|
WriteBufferFromOStream ob(std::cout);
|
||||||
|
Loading…
Reference in New Issue
Block a user