mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10:49 +00:00
fix
This commit is contained in:
parent
a555918fca
commit
01e682d23c
@ -281,9 +281,9 @@ KeyCondition::KeyCondition(
|
||||
|
||||
RPNBuilder<RPNElement>(
|
||||
query_info, context,
|
||||
[this] (const ASTPtr & node, const Context & context, Block & block_with_constants, RPNElement & out) -> bool
|
||||
[this] (const ASTPtr & node, const Context & atom_context, Block & block_with_constants, RPNElement & out) -> bool
|
||||
{
|
||||
return this->atomFromAST(node, context, block_with_constants, out);
|
||||
return this->atomFromAST(node, atom_context, block_with_constants, out);
|
||||
}).extractRPN(rpn);
|
||||
}
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
#include <Storages/MergeTree/RPNBuilder.h>
|
@ -18,12 +18,12 @@ namespace DB
|
||||
* For index to work when something like "WHERE Date = toDate(now())" is written.
|
||||
*/
|
||||
static Block getBlockWithConstants(
|
||||
const ASTPtr & query, const SyntaxAnalyzerResultPtr & syntax_analyzer_result, const Context & context)
|
||||
const ASTPtr & query, const SyntaxAnalyzerResultPtr & syntax_analyzer_result, const Context & context)
|
||||
{
|
||||
Block result
|
||||
{
|
||||
{ DataTypeUInt8().createColumnConstWithDefaultValue(1), std::make_shared<DataTypeUInt8>(), "_dummy" }
|
||||
};
|
||||
{
|
||||
{ DataTypeUInt8().createColumnConstWithDefaultValue(1), std::make_shared<DataTypeUInt8>(), "_dummy" }
|
||||
};
|
||||
|
||||
const auto expr_for_constant_folding = ExpressionAnalyzer(query, syntax_analyzer_result, context).getConstActions();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user