mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 02:50:33 +00:00
Merge 'index: implement schema management layer for vector search indexes' from null
This pull request adds support for creating custom indexes (at a metadata level) as long as a supported custom class is provided (currently only vector search). The patch contains: - a change in CREATE INDEX statement that allows for the USING keyword to be present as long as one of the supported classes is used - support for describing custom indexes in the DESCRIBE statement - unit tests Co-authored by: @Balwancia Closes scylladb/scylladb#23720 * github.com:scylladb/scylladb: test/cqlpy: add custom index tests index: support storing metadata for custom indices
This commit is contained in:
@@ -711,11 +711,6 @@ SEASTAR_TEST_CASE(test_secondary_index_create_custom_index) {
|
||||
// "exceptions::invalid_request_exception: CUSTOM index requires
|
||||
// specifying the index class"
|
||||
assert_that_failed(e.execute_cql("create custom index on cf (a)"));
|
||||
// It's also a syntax error to try to specify a "USING" without
|
||||
// specifying CUSTOM. We expect the exception:
|
||||
// "exceptions::invalid_request_exception: Cannot specify index class
|
||||
// for a non-CUSTOM index"
|
||||
assert_that_failed(e.execute_cql("create index on cf (a) using 'org.apache.cassandra.index.sasi.SASIIndex'"));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user