-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor query result - [MOD-5530] #412
Conversation
248b7bf
to
fb8df57
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #412 +/- ##
==========================================
- Coverage 95.63% 95.56% -0.08%
==========================================
Files 66 65 -1
Lines 4174 4079 -95
==========================================
- Hits 3992 3898 -94
+ Misses 182 181 -1
☔ View full report in Codecov by Sentry. |
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.
will done, looks like a really tidious PR
I do think that some re-organization needs to be done in the query results files
i suggest renaming query_result.h to query_result_c_api and divided it into query_result, query_list, and query_iterator sections.
I didn't quite understand why is query_result_struct belongs to a seperated file, maybe a btter naming would clearify its purpose.
5010fc2
to
52ab1e0
Compare
* remove `arr_cpp.h` and replace all its use cases with vectors * remove `uninitialized` from an error worthy warning in spaces * after rebase fixes * build fixes * another attempt * more build fixes * format * fix bindings * fix leak in test * some review fixes * remove `VecSimQueryResult` setters * renaming `query_result_struct.h` * generalize VecSimQueryResult_Iterator iterator * improved and aligned result collecting loop in bf_batch_iterator * use std::tie * remove error suppressing (seems to be fixed) * renaming `VecSimQueryResult` structures, introducing `VecSimQueryReply` * reordering comment * renaming * tidy up sorting functions * support for gcc-9 * rename VecSim_QueryResult_* codes
* remove `arr_cpp.h` and replace all its use cases with vectors * remove `uninitialized` from an error worthy warning in spaces * after rebase fixes * build fixes * another attempt * more build fixes * format * fix bindings * fix leak in test * some review fixes * remove `VecSimQueryResult` setters * renaming `query_result_struct.h` * generalize VecSimQueryResult_Iterator iterator * improved and aligned result collecting loop in bf_batch_iterator * use std::tie * remove error suppressing (seems to be fixed) * renaming `VecSimQueryResult` structures, introducing `VecSimQueryReply` * reordering comment * renaming * tidy up sorting functions * support for gcc-9 * rename VecSim_QueryResult_* codes
Describe the changes in the pull request
Remove the
arr_cpp.h
array implementation and moved to use vectors.Also, make
VecSimQueryResult_List
an opaque type and change the API to return a pointer to it instead of by value, and rename it toVecSimQueryReply
.This PR enables compiling the library with GCC 12 and 13 as well.
Which issues this PR fixes
Main objects this PR modified
arr_cpp.h
implementationMark if applicable