Repository navigation
feat: add v1 of session apis - #27
Conversation
|
Hi @yuvalif, have started work on the issue. Please have a look and let me know your thoughts. |
|
as discussed, please add the following tests:
|
Signed-off-by: 9401adarsh <[email protected]>
0ff3616 to
dd473f6
Compare
| */ | ||
|
|
||
| #include "test_common.h" | ||
| #include <iostream> |
There was a problem hiding this comment.
I added print statements to verify cache growth for debugging - might be useful to keep imo. Will remove it if you feel they aren't required.
There was a problem hiding this comment.
see my comments below. please use explicit assertions that would print the condition that failed instead of using cout
Hi @yuvalif, have added these tests to the PR as well. |
87b65ff to
a718183
Compare
|
Hi @yuvalif, have added the tests with a deterministic seed as discussed for vector queries. Currently the tests show the following behavior:
This is consistent across multiple runs; should I add a check with these numbers as well ? |
i think that these assertions are good enough. they would probably also hold true if we use a random seed. btw, how many queries are performed by the test? |
20 queries for both. |
a718183 to
e79d5ef
Compare
|
Have made all changes, including the new |
… tables) and verify session cache populates after repeated queries Signed-off-by: 9401adarsh <[email protected]> tests: fix query test cout with asserts; add more deterministic asserts for validating cache stats behavior Signed-off-by: 9401adarsh <[email protected]> tests: add cache behavior monontonic increase for vector and scalar queries Signed-off-by: 9401adarsh <[email protected]> tests: add hits > misses check for session stats; nit: refactor Signed-off-by: 9401adarsh <[email protected]> fix seed init to inside for loop Signed-off-by: 9401adarsh <[email protected]>
e79d5ef to
2172c1f
Compare
this is to allow for deep call stacks that happening when the query planner is needed. example of deep call (63 frames) stack backtrace in upsert: C++ --- frames lancedb#63-lancedb#61 tokio --- frames lancedb#60-lancedb#50 lancedb merge logic --- frames lancedb#49-lancedb#45 lance execution --- frames lancedb#44-lancedb#28 df physical planning --- frames lancedb#27-lancedb#18 lance scanner --- frames lancedb#17-lancedb#10 SessionState clone --- frames lancedb#9-#0 backtrace: https://gist.github.com/yuvalif/7b3c78bd56765a03163f17377c20544b Signed-off-by: Yuval Lifshitz <[email protected]>
This PR addresses #17.
What's been implemented?
src/connection.rs.include/lancedb.h.tests/test_connection.cpp,tests/test_table.cppandtests/test_query.cpp,tests/test_vector_query.cpp.docs/index.rst.To-Discuss and Pending Items: