You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow pipeline parameter binding for k in lance_knn and pg_knn (#76)
lance_knn and pg_knn rejected non-literal k at planning time, so pipeline
`{k}` parameters (which surface as NULL during schema inference) could not
be used — unlike sqlite_knn which already had a NULL fallback. Hoist the
parsing into a shared knn_utils::extract_k helper that handles the NULL
inference placeholder and the MAX_KNN_K bound check, and adopt it in all
three KNN table functions. Update the lance/pg demo pipelines and their
READMEs to take k (and keep limit where it was already a parameter).
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments