mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: removed unused field [#METR-2944].
This commit is contained in:
parent
d51e03da61
commit
89c64fe863
@ -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_) {}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user