Skip to content
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

make DataSet gen helpers available to pyknowhere #509

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

zhengbuqian
Copy link
Collaborator

@zhengbuqian zhengbuqian commented Apr 18, 2024

/kind improvement
/hold

This pr only changes the const int64_t* and const size_t* arguments of GenIdsDataSet/GenResultDataSet to const void* when compiling for swig.

When const int64_t* and const size_t* is used as argument type, swig build fails due to error: invalid conversion from 'const long long int*' to 'const int64_t*' {aka 'const long int*'} [-fpermissive].

@zhengbuqian
Copy link
Collaborator Author

I think python3 wheel can now successfully build

/unhold

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.36%. Comparing base (3c46f4c) to head (a3a3059).
Report is 12 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           main     #509       +/-   ##
=========================================
+ Coverage      0   72.36%   +72.36%     
=========================================
  Files         0       63       +63     
  Lines         0     4291     +4291     
=========================================
+ Hits          0     3105     +3105     
- Misses        0     1186     +1186     

see 63 files with indirect coverage changes

@@ -254,8 +254,8 @@ GenDataSet(const int64_t nb, const int64_t dim, const void* xb) {
return ret_ds;
}

// swig won't compile when using int64_t* or size_t* as parameter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's because swig not support api override

Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
@PwzXxm
Copy link
Collaborator

PwzXxm commented Apr 19, 2024

/lgtm
/approve

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PwzXxm, zhengbuqian

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 818e12f into zilliztech:main Apr 19, 2024
11 checks passed
@zhengbuqian zhengbuqian deleted the swig-compile-work-around branch April 19, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants