dbms: removed unused field [#METR-2944].

This commit is contained in:
Alexey Milovidov 2015-12-24 21:35:01 +03:00
parent d51e03da61
commit 89c64fe863
3 changed files with 1 additions and 4 deletions

View File

@ -15,8 +15,6 @@ class ASTLiteral : public ASTWithAlias
{
public:
Field value;
/// тип
DataTypePtr type;
ASTLiteral() = default;
ASTLiteral(const StringRange range_, const Field & value_) : ASTWithAlias(range_), value(value_) {}

View File

@ -173,7 +173,7 @@ bool LogicalExpressionsOptimizer::mayOptimizeDisjunctiveEqualityChain(const Disj
auto & operands = getFunctionOperands(equality_functions[i]);
auto literal = static_cast<ASTLiteral *>(&*operands[1]);
if (literal->type != first_literal->type)
if (literal->value.getType() != first_literal->value.getType())
return false;
}
return true;

View File

@ -787,7 +787,6 @@ void MergeTreeDataSelectExecutor::createPositiveSignCondition(ExpressionActionsP
sign->name = data.sign_column;
sign->kind = ASTIdentifier::Column;
one->type = new DataTypeInt8;
one->value = Field(static_cast<Int64>(1));
out_expression = ExpressionAnalyzer(function_ptr, context, {}, data.getColumnsList()).getActions(false);