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 <achals@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
2b56aa9 to
a6232d9
Compare
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
|
|
||
| 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 <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
| 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 <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
|
[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 <achals@gmail.com> * cr Signed-off-by: Achal Shah <achals@gmail.com> * Switch to cgo allocator Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Fix memory leak Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Fix another memory leak Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Do not use cgo allocator for memory buffers Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Switch to cgo allocator for memory buffers Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Switch test to pass Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Use more idiomatic way to test truth Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Update docs Signed-off-by: Felix Wang <wangfelix98@gmail.com> Co-authored-by: Felix Wang <wangfelix98@gmail.com>
* chore: Fixes and Readme for python<>go interface Signed-off-by: Achal Shah <achals@gmail.com> * cr Signed-off-by: Achal Shah <achals@gmail.com> * Switch to cgo allocator Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Fix memory leak Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Fix another memory leak Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Do not use cgo allocator for memory buffers Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Switch to cgo allocator for memory buffers Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Switch test to pass Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Use more idiomatic way to test truth Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Update docs Signed-off-by: Felix Wang <wangfelix98@gmail.com> Co-authored-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Achal Shah achals@gmail.com
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #