mirror of https://github.com/milvus-io/milvus.git
e549148a19
issue: #29988 This pr adds full-support for wildcard pattern matching from end to end. Before this pr, the users can only use prefix match in their expression, for example, "like 'prefix%'". With this pr, more flexible syntax can be combined. To do so, this pr makes these changes: - 1. support regex query both on index and raw data; - 2. translate the pattern matching to regex query, so that it can be handled by the regex query logic; - 3. loose the limit of the expression parsing, which allows general pattern matching syntax; With the support of regex query in segcore backend, we can also add mysql-like `REGEXP` syntax later easily. --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com> |
||
---|---|---|
.. | ||
generated | ||
Plan.g4 | ||
README.md | ||
check_identical.go | ||
check_identical_test.go | ||
error_listener.go | ||
floating_comparision.go | ||
floating_comparision_test.go | ||
generate.go | ||
generate.sh | ||
logical_expr_visitor.go | ||
node_ret.go | ||
operators.go | ||
parser_visitor.go | ||
pattern_match.go | ||
pattern_match_test.go | ||
plan_parser_v2.go | ||
plan_parser_v2_test.go | ||
pool.go | ||
pool_test.go | ||
show_visitor.go | ||
utils.go | ||
utils_test.go |
README.md
Generate Parser with Antlr4
Install Antlr4
Please follow install antlr4 to install the antlr tool.
The version of antlr tool: 4.9
.
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
.