11 Commits

Author SHA1 Message Date
Buqian Zheng
846cf52a95
enhance: Remove unused vector plan node subclasses (#44453)
Remove redundant `VectorPlanNode` subclasses and simplify the visitor
pattern by consolidating to a single `VectorPlanNode`.

The previous design used distinct `VectorPlanNode` subclasses and a
templated `VectorVisitorImpl` for type-directed dispatch. However, the
template parameter was not functionally used to implement different
logic for each vector type, making the subclasses redundant for their
intended purpose.

This PR is created by Cursor Agent and manually moved from
https://github.com/zhengbuqian/milvus/pull/14.

Signed-off-by: zhengbuqian <zhengbuqian@gmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: buqian.zheng <buqian.zheng@zilliz.com>
2025-09-22 18:00:27 +08:00
Yinzuo Jiang
3628593d20
feat: Implement custom function module in milvus expr (#36560)
OSPP 2024 project:
https://summer-ospp.ac.cn/org/prodetail/247410235?list=org&navpage=org

Solutions:

- parser (planparserv2)
    - add CallExpr in planparserv2/Plan.g4
    - update parser_visitor and show_visitor
- grpc protobuf
    - add CallExpr in plan.proto
- execution (`core/src/exec`)
- add `CallExpr` `ValueExpr` and `ColumnExpr` (both logical and
physical) for function call and function parameters
- function factory (`core/src/exec/expression/function`)
    - create a global hashmap when starting milvus (see server.go)
- the global hashmap stores function signatures and their function
pointers, the CallExpr in execution engine can get the function pointer
by function signature.
- custom functions
    - empty(string)
    - starts_with(string, string)
- add cpp/go unittests and E2E tests

closes: #36559

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
2024-10-25 15:25:30 +08:00
groot
b24349a8d8
[skip e2e] Fix typo for design doc (#14567)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
2021-12-30 12:21:46 +08:00
groot
c3825052b1
[skip e2e] Modify design docs (#14159)
Signed-off-by: groot <yihua.mo@zilliz.com>
2021-12-24 12:13:18 +08:00
groot
b343a57784
[skip e2e] Add note for design doc (#14037)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
2021-12-23 10:49:11 +08:00
Jael Gu
4de7e1cd03
[skip ci] Fix typo in segcore/visitor (#11868)
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
2021-11-16 13:17:25 +08:00
Jael Gu
3aebf93534
[skip ci] Fix typo in segcore doc (#11827)
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
2021-11-15 19:51:47 +08:00
Jael Gu
be99f6fc95
Fix typo in visitor.md (#11825)
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
2021-11-15 19:49:52 +08:00
Xiaofan
0ab1f597ae
[skip ci] Refine vistor.md (#9176)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-10-04 08:26:32 +08:00
Xiaofan
d8d87e4beb
[skip ci] Add document for visitor in segcore (#9162)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-10-03 21:17:55 +08:00
Xiaofan
5763266c0b
[skip ci] Add visitor.md (#9053)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-10-02 07:46:51 +08:00