chore: Fixes and Readme for python<>go interface#2936
chore: Fixes and Readme for python<>go interface#2936feast-ci-bot merged 10 commits intofeast-dev:masterfrom
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.
@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.
We should fix this these lint issues
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.
https://pkg.go.dev/github.com/stretchr/testify/assert#True instead of assert.Equal
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
|
[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 #