From 4eab050be413d2b735252ab769e600abe5f1d74c Mon Sep 17 00:00:00 2001 From: Szymon Wasik Date: Thu, 26 Mar 2026 08:39:59 +0100 Subject: [PATCH] test: enable SAI_VECTOR_ALLOW_CUSTOM_PARAMETERS for Cassandra tests --- test/cqlpy/run-cassandra | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/cqlpy/run-cassandra b/test/cqlpy/run-cassandra index aaaabab68a..36917d70c9 100755 --- a/test/cqlpy/run-cassandra +++ b/test/cqlpy/run-cassandra @@ -108,7 +108,12 @@ def run_cassandra_cmd(pid, dir): # have it listen on 0.0.0.0 :-( This is insecure, but arguably # can be forgiven for test environments. The following JVM_OPTS # configures that: - 'JVM_OPTS': '-Dcassandra.jmx.remote.port=7199', + 'JVM_OPTS': '-Dcassandra.jmx.remote.port=7199' + # SAI vector indexes in Cassandra 5.0 reject custom index + # parameters (like similarity_function) unless this flag is + # set. Our tests exercise those options for Cassandra SAI + # compatibility, so we need it enabled. + ' -Dcassandra.sai.vector.allow_custom_parameters=true', } # By default, Cassandra's startup script runs "java". We can override this # choice with the JAVA_HOME environment variable based on the Java we