Skip to content

Commit

Permalink
FLASH-782 fix filter error (#366)
Browse files Browse the repository at this point in the history
* fix segment fault

* fix filter error
  • Loading branch information
windtalker authored Dec 25, 2019
1 parent fc1939a commit 83e1708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Coprocessor/DAGExpressionAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ String DAGExpressionAnalyzer::convertToUInt8ForFilter(ExpressionActionsChain & c
// 2. if the column is string, convert it to numeric column, and compare with 0
// 3. if the column is date/datetime, compare it with zeroDate
// 4. if the column is other type, throw exception
auto & org_type = chain.steps.back().actions->getSampleBlock().getByName(column_name).type;
const auto & org_type = removeNullable(chain.steps.back().actions->getSampleBlock().getByName(column_name).type);
auto & actions = chain.steps.back().actions;
if (org_type->isNumber() || org_type->isDecimal())
{
Expand Down

0 comments on commit 83e1708

Please sign in to comment.