-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: Fixes and Readme for python<>go interface #2936
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2936 +/- ##
===========================================
- Coverage 78.57% 59.35% -19.23%
===========================================
Files 179 183 +4
Lines 15877 16119 +242
===========================================
- Hits 12475 9567 -2908
- Misses 3402 6552 +3150
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
kevjumba
left a comment
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.
@achals I think in online_features_service.py right after resp = record_batch_to_online_response(record_batch) we should also explicilty release the returned recordbatch. I'm not quite sure if returning from getOnlineFeatures actually decrements the reference counter but better safe than sorry?
I think we can explicitly |
Signed-off-by: Achal Shah <[email protected]>
Signed-off-by: Achal Shah <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
2b56aa9 to
a6232d9
Compare
Signed-off-by: Felix Wang <[email protected]>
|
|
||
| result := make([]*onlineserving.FeatureVector, 0) | ||
| arrowMemory := memory.NewGoAllocator() | ||
| arrowMemory := memory.NewCgoArrowAllocator() |
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.
We should fix this these lint issues
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.
I think #2940 should resolve this?
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
| assert.Nil(t, err) | ||
| for colIdx := 0; colIdx < int(record.NumCols()); colIdx++ { | ||
| assert.Equal(t, expectedRecord.Column(colIdx), record.Column(colIdx), "Columns with idx %d are not equal", colIdx) | ||
| assert.Equal(t, true, array.Equal(expectedRecord.Column(colIdx), record.Column(colIdx)), "Columns with idx %d are not equal", colIdx) |
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.
https://pkg.go.dev/github.com/stretchr/testify/assert#True instead of assert.Equal
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.
fixed
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
kevjumba
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, kevjumba The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* chore: Fixes and Readme for python<>go interface Signed-off-by: Achal Shah <[email protected]> * cr Signed-off-by: Achal Shah <[email protected]> * Switch to cgo allocator Signed-off-by: Felix Wang <[email protected]> * Fix memory leak Signed-off-by: Felix Wang <[email protected]> * Fix another memory leak Signed-off-by: Felix Wang <[email protected]> * Do not use cgo allocator for memory buffers Signed-off-by: Felix Wang <[email protected]> * Switch to cgo allocator for memory buffers Signed-off-by: Felix Wang <[email protected]> * Switch test to pass Signed-off-by: Felix Wang <[email protected]> * Use more idiomatic way to test truth Signed-off-by: Felix Wang <[email protected]> * Update docs Signed-off-by: Felix Wang <[email protected]> Co-authored-by: Felix Wang <[email protected]>
* chore: Fixes and Readme for python<>go interface Signed-off-by: Achal Shah <[email protected]> * cr Signed-off-by: Achal Shah <[email protected]> * Switch to cgo allocator Signed-off-by: Felix Wang <[email protected]> * Fix memory leak Signed-off-by: Felix Wang <[email protected]> * Fix another memory leak Signed-off-by: Felix Wang <[email protected]> * Do not use cgo allocator for memory buffers Signed-off-by: Felix Wang <[email protected]> * Switch to cgo allocator for memory buffers Signed-off-by: Felix Wang <[email protected]> * Switch test to pass Signed-off-by: Felix Wang <[email protected]> * Use more idiomatic way to test truth Signed-off-by: Felix Wang <[email protected]> * Update docs Signed-off-by: Felix Wang <[email protected]> Co-authored-by: Felix Wang <[email protected]>
Signed-off-by: Achal Shah [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #