-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support to range filter with json expr #23739
Conversation
90fcc2a
to
eaabc0d
Compare
@yah01 E2e jenkins job failed, comment |
@yah01 ut workflow job failed, comment |
Codecov Report
@@ Coverage Diff @@
## master #23739 +/- ##
==========================================
- Coverage 82.02% 81.67% -0.35%
==========================================
Files 744 745 +1
Lines 97244 99639 +2395
==========================================
+ Hits 79765 81385 +1620
- Misses 14514 15289 +775
Partials 2965 2965
|
@yah01 E2e jenkins job failed, comment |
@yah01 ut workflow job failed, comment |
@yah01 ut workflow job failed, comment |
@yah01 E2e jenkins job failed, comment |
@yah01 E2e jenkins job failed, comment |
@yah01 E2e jenkins job failed, comment |
1 similar comment
@yah01 E2e jenkins job failed, comment |
b5b4b9d
to
71095cd
Compare
@yah01 ut workflow job failed, comment |
@yah01 E2e jenkins job failed, comment |
@yah01 E2e jenkins job failed, comment |
@yah01 ut workflow job failed, comment |
@yah01 E2e jenkins job failed, comment |
da4cb0e
to
d6ea092
Compare
@yah01 E2e jenkins job failed, comment |
/lgtm |
@yah01 E2e jenkins job failed, comment |
@yah01 E2e jenkins job failed, comment |
@yah01 ut workflow job failed, comment |
Signed-off-by: yah01 <yang.cen@zilliz.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiaoew1991, yah01 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -76,10 +76,12 @@ VectorBase::set_data_raw(ssize_t element_offset, | |||
} | |||
case DataType::JSON: { | |||
auto& json_data = FIELD_DATA(data, json); | |||
std::vector<Json> data_raw(json_data.size()); | |||
std::vector<Json> data_raw{}; | |||
data_raw.reserve(json_data.size()); | |||
for (auto& json_bytes : json_data) { | |||
data_raw.emplace_back(simdjson::padded_string(json_bytes)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use simdjson::minify to save memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User may hope to retrieve the original data without any modification, so keep this unchanged here
exist(std::vector<std::string> nested_path) const { | ||
std::for_each( | ||
nested_path.begin(), nested_path.end(), [](std::string& key) { | ||
boost::replace_all(key, "~", "~0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave the comment here, make sure code reviewer understand it's the requirement of simdJson
#include "query/ExprImpl.h" | ||
#include "query/Relational.h" | ||
#include "query/Utils.h" | ||
#include "segcore/SegmentGrowingImpl.h" | ||
#include "simdjson/error.h" | ||
|
||
namespace milvus::query { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems we don't support exist for now right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiaocai2333 will support exist expression, this pr provides the exist()
method in Json
class
/kind feature
related #23389