mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
3628593d20
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> |
||
---|---|---|
.. | ||
generated | ||
check_identical_test.go | ||
check_identical.go | ||
error_listener.go | ||
floating_comparision_test.go | ||
floating_comparision.go | ||
generate.go | ||
generate.sh | ||
logical_expr_visitor.go | ||
node_ret.go | ||
operators.go | ||
parser_visitor.go | ||
pattern_match_test.go | ||
pattern_match.go | ||
plan_parser_v2_test.go | ||
plan_parser_v2.go | ||
Plan.g4 | ||
pool_test.go | ||
pool.go | ||
README.md | ||
show_visitor.go | ||
utils_test.go | ||
utils.go |
Generate Parser with Antlr4
Install Antlr4
Please follow install antlr4 to install the antlr tool.
The version of antlr tool: 4.13.2
.
Code Generate
After you install the antlr4, you can generate the parser code in golang with:
go generate
All generated code will be under directory generated
.