From ae1252faae301277f7390e681128c2a18520a725 Mon Sep 17 00:00:00 2001 From: Kunlin Yu Date: Tue, 31 Dec 2024 12:20:40 +0800 Subject: [PATCH] Remove NullValue if the left hand side of IN is null Signed-off-by: Kunlin Yu --- include/cql2cpp/node_evaluator.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cql2cpp/node_evaluator.h b/include/cql2cpp/node_evaluator.h index fd32706..0215e83 100644 --- a/include/cql2cpp/node_evaluator.h +++ b/include/cql2cpp/node_evaluator.h @@ -115,6 +115,10 @@ const std::map> node_evals = { std::to_string(n->children().size()); return false; } + if (std::holds_alternative(vs.at(0))) { + *value = NullValue; + return true; + } if (not std::holds_alternative(vs.at(0)) and not std::holds_alternative(vs.at(0)) and not std::holds_alternative(vs.at(0)) and