zvec/tests/db/sqlengine
egolearner aad5718112
feat(query): add VectorViewClause zero-copy path and unify validate (#478)
* feat(query): add VectorViewClause zero-copy path and unify validate

- Add VectorViewClause (string_view-based) as zero-copy counterpart to
  VectorClause; variant now holds VectorClause | VectorViewClause | FtsClause
- Add QueryTarget::get_vector_view() unified accessor via std::visit,
  returns optional<VectorViewClause> regardless of which variant is held
- Split validate_and_sanitize into QueryTarget::validate (read-only) +
  sanitize_sparse_vector (mutate); validate handles both VectorClause and
  VectorViewClause via get_vector_view()
- Collection::Query passes original request directly to sqlengine when no
  sparse sanitization is needed; only copies when sort is required
- Change build_query_info/BuildSQLInfoFromSearchQuery to take const
  SearchQuery& so VectorMatrixNode string_views point to caller's data
2026-06-22 11:32:26 +08:00
..
CMakeLists.txt feat: support zvec core-only build (#481) 2026-06-09 23:45:42 +08:00
contain_test.cc refactor: drop VectorQuery, unify single-target query on SearchQuery (#428) 2026-05-29 16:36:09 +08:00
forward_recall_test.cc refactor: drop VectorQuery, unify single-target query on SearchQuery (#428) 2026-05-29 16:36:09 +08:00
fts_multi_segment_test.cc feat: add fts support (#408) 2026-06-01 15:02:54 +08:00
fts_parser_test.cc feat: add fts support (#408) 2026-06-01 15:02:54 +08:00
fts_recall_test.cc feat: add fts support (#408) 2026-06-01 15:02:54 +08:00
invert_recall_test.cc refactor: drop VectorQuery, unify single-target query on SearchQuery (#428) 2026-05-29 16:36:09 +08:00
like_test.cc refactor: drop VectorQuery, unify single-target query on SearchQuery (#428) 2026-05-29 16:36:09 +08:00
mock_segment.h feat: add FTS support for Collection::CreateIndex/DropIndex (#445) 2026-06-03 17:56:56 +08:00
optimizer_test.cc refactor: tidy query APIs and execution (#431) 2026-06-01 21:07:35 +08:00
query_info_test.cc feat(query): add VectorViewClause zero-copy path and unify validate (#478) 2026-06-22 11:32:26 +08:00
recall_base.h feat(ci): integrate clang-tidy for changed C/C++ files (#116) 2026-04-20 20:14:21 +08:00
simple_rewriter_test.cc refactor: tidy query APIs and execution (#431) 2026-06-01 21:07:35 +08:00
sqlengine_test.cc feat(query): add VectorViewClause zero-copy path and unify validate (#478) 2026-06-22 11:32:26 +08:00
test_helper.h feat(ci): integrate clang-tidy for changed C/C++ files (#116) 2026-04-20 20:14:21 +08:00
vector_recall_test.cc feat(query): add VectorViewClause zero-copy path and unify validate (#478) 2026-06-22 11:32:26 +08:00