Skip to content

Commit

Permalink
Remove NullValue if the left hand side of IN is null
Browse files Browse the repository at this point in the history
Signed-off-by: Kunlin Yu <[email protected]>
  • Loading branch information
kunlinyu committed Dec 31, 2024
1 parent c0be73f commit ae1252f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/cql2cpp/node_evaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ const std::map<NodeType, std::map<Operator, NodeEval>> node_evals = {
std::to_string(n->children().size());
return false;
}
if (std::holds_alternative<NullStruct>(vs.at(0))) {
*value = NullValue;
return true;
}
if (not std::holds_alternative<bool>(vs.at(0)) and
not std::holds_alternative<int64_t>(vs.at(0)) and
not std::holds_alternative<uint64_t>(vs.at(0)) and
Expand Down

0 comments on commit ae1252f

Please sign in to comment.