提交 01e682d2 编写于 作者: N Nikita Vasilev

fix

上级 a555918f
......@@ -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);
}
......
#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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册