docs/design_docs/segcore/visitor.md
Visitor Pattern is used in segcore for parse and execute Execution Plan.
${internal/core}/src/query/PlanNode.h, contains physical plan for vector search:
VectorPlanNode vector search execution node${internal/core}/src/query/Expr.h contains physical plan for scalar expression:
TermExpr support operation like col in [1, 2, 3]RangeExpr support constant compare with data column like a >= 5 1 < b < 2CompareExpr support compare with different columns, like a < bLogicalBinaryExpr support and/orLogicalUnaryExpr support notCurrently, under ${internal/core/src/query} directory, there are the following visitors:
ExecPlanNodeVistor physical plan executor only supports ANNS node for now