Skip to content

implement QueryExecutionOptions - #8

Draft
yuvalif wants to merge 1 commit into
lancedb:mainfrom
yuvalif:query-execution-options
Draft

yuvalif wants to merge 1 commit into
lancedb:mainfrom
yuvalif:query-execution-options

Conversation

@yuvalif

@yuvalif yuvalif commented Jan 26, 2026

Copy link
Copy Markdown
Collaborator

also change verification of vector query parameters

@yuvalif yuvalif added the enhancement New feature or request label Feb 17, 2026
also change verification of vector query parameters

Signed-off-by: Yuval Lifshitz <[email protected]>
@yuvalif
yuvalif force-pushed the query-execution-options branch from eae420d to 0fcfcb0 Compare May 20, 2026 19:42
@yuvalif
yuvalif marked this pull request as draft August 12, 2026 11:25
@Xuanwo

Xuanwo commented Nov 21, 2026

Copy link
Copy Markdown
Member

This still looks relevant, but let's rebase before reviewing.

Facts as of today: the branch is based on 02b8609 (#47) with lancedb 0.22.3; main is 6071a08 (#73), 50 commits ahead, on lancedb 0.33.0. It conflicts in include/lancedb.h, src/query.rs, tests/test_df_query.cpp, tests/test_query.cpp and tests/test_vector_query.cpp. Open #76 (spawn-hop-rework) touches the first two and conflicts the same way, so rebasing after it lands avoids doing this twice.

Still supported by 0.33 and still missing from main, so worth keeping: QueryExecutionOptions (execute_with_options, max_batch_length, timeout), VectorQuery::minimum_nprobes / maximum_nprobes, and distance_range. Post-filter (#51) is separate and not in this PR.

The one thing to settle first is the execute signature: adding a required options argument to lancedb_query_execute and lancedb_vector_query_execute breaks every existing caller, the repo's examples and tests included. Nothing has been released yet, so I'd rather take this additively: keep the current prototypes and add lancedb_query_execute_with_options / lancedb_vector_query_execute_with_options. That lands the same capability and keeps the header a contract the Go binding can build on without a break. If you meant to break it, say so and we'll decide it as an ABI change on its own.

Two notes for the rebase: on 0.33 the defaults are minimum_nprobes 20 and maximum_nprobes 20, and maximum_nprobes errors when it is below the current minimum, so setting only a max needs care rather than a silent fallback to min 1; and nprobes(0) = unset is a second semantic change worth its own commit. The doc-comment rewrite and the test_vector_query.cpp rework also read better as separate additions on top of current main.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants