milvus/internal/parser/planparserv2
cai.zhang b900e4a63a
fix: [2.5] Handle error for invalid function params and prevent panic (#43190)
issue: #43188 
master pr: #43189

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2025-07-09 11:40:47 +08:00
..
generated fix: [2.5] Revert add a sign (positive or negative) to constants (#41192) 2025-04-09 20:06:27 +08:00
Plan.g4 fix: [2.5] Revert add a sign (positive or negative) to constants (#41192) 2025-04-09 20:06:27 +08:00
README.md enhance: Update antlr version and refine parsing not in (#36745) 2024-10-11 14:03:21 +08:00
check_identical.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
check_identical_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
convert_field_data_to_generic_value.go fix: [2.5] Update logging context and upgrade dependencies (#41319) 2025-04-24 23:50:40 +08:00
convert_field_data_to_generic_value_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
error_listener.go fix: [2.5] Update logging context and upgrade dependencies (#41319) 2025-04-24 23:50:40 +08:00
fill_expression_value.go fix: [2.5] Update logging context and upgrade dependencies (#41319) 2025-04-24 23:50:40 +08:00
fill_expression_value_test.go fix: [2.5] Add precheck for unsupport datatype cast (#42678) 2025-06-13 18:18:37 +08:00
floating_comparision.go Support antlr as plan parser (#16696) 2022-05-06 17:43:51 +08:00
floating_comparision_test.go Support antlr as plan parser (#16696) 2022-05-06 17:43:51 +08:00
generate.go Auto generate parser code (#26716) 2023-08-31 11:13:01 +08:00
generate.sh fix: [2.5] expression with capital AND and OR are not recognized (#38928) 2025-01-02 15:04:58 +08:00
logical_expr_visitor.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
node_ret.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
operators.go fix:fix wrong use return error for parse unsupported arith (#42729) (#42890) 2025-06-23 20:36:46 +08:00
parser_visitor.go fix: [2.5] Handle error for invalid function params and prevent panic (#43190) 2025-07-09 11:40:47 +08:00
pattern_match.go enhance: add optimize for like expr (#41222) 2025-04-14 21:06:32 +08:00
pattern_match_test.go enhance: add optimize for like expr (#41222) 2025-04-14 21:06:32 +08:00
plan_parser_v2.go fix: [2.5] Handle error for invalid function params and prevent panic (#43190) 2025-07-09 11:40:47 +08:00
plan_parser_v2_test.go fix: [2.5] Handle error for invalid function params and prevent panic (#43190) 2025-07-09 11:40:47 +08:00
pool.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
pool_test.go enhance: Update antlr version and refine parsing not in (#36745) 2024-10-11 14:03:21 +08:00
show_visitor.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
utils.go fix:reject div or mod by zero for binaryarith expr (#42691) (#42887) 2025-06-23 20:34:50 +08:00
utils_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00

README.md

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.