Skip to content

Commit bbec36a

Browse files
committed
feat: add expression evaluator with full operator dispatch and integration tests
Implements evaluate_expression<D>() template that switches on all AST NodeType variants: literals, column refs, unary/binary operators, IS NULL, BETWEEN, IN, CASE/WHEN, function calls, and LIKE. Includes 56 unit tests (AST-level) and 37 integration tests (parse SQL end-to-end).
1 parent 1108cf9 commit bbec36a

4 files changed

Lines changed: 1702 additions & 1 deletion

File tree

Makefile.new

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ TEST_SRCS = $(TEST_DIR)/test_main.cpp \
4747
$(TEST_DIR)/test_string_funcs.cpp \
4848
$(TEST_DIR)/test_cast.cpp \
4949
$(TEST_DIR)/test_registry.cpp \
50-
$(TEST_DIR)/test_like.cpp
50+
$(TEST_DIR)/test_like.cpp \
51+
$(TEST_DIR)/test_expression_eval.cpp \
52+
$(TEST_DIR)/test_eval_integration.cpp
5153
TEST_OBJS = $(TEST_SRCS:.cpp=.o)
5254
TEST_TARGET = $(PROJECT_ROOT)/run_tests
5355

0 commit comments

Comments
 (0)