File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
test/unit/org/apache/cassandra/index/sai/cql Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .apache .cassandra .index .sai .cql ;
18
18
19
+ import java .util .Collection ;
20
+ import java .util .stream .Collectors ;
21
+
22
+ import org .junit .Before ;
19
23
import org .junit .Test ;
24
+ import org .junit .runner .RunWith ;
25
+ import org .junit .runners .Parameterized ;
26
+
27
+ import org .apache .cassandra .index .sai .SAIUtil ;
28
+ import org .apache .cassandra .index .sai .disk .format .Version ;
20
29
21
30
/**
22
31
* Tests vector indexes in different column positions (partition key, clustering key, static and regular columns).
23
32
*/
33
+ @ RunWith (Parameterized .class )
24
34
public class VectorColumnPositionsTest extends VectorTester
25
35
{
36
+ @ Parameterized .Parameter
37
+ public Version version ;
38
+
39
+ @ Parameterized .Parameters (name = "{0}" )
40
+ public static Collection <Object []> data ()
41
+ {
42
+ return Version .ALL .stream ()
43
+ .filter (v -> v .onOrAfter (Version .JVECTOR_EARLIEST ))
44
+ .sorted ()
45
+ .map (v -> new Object []{ v })
46
+ .collect (Collectors .toList ());
47
+ }
48
+
49
+ @ Before
50
+ public void setupVersion ()
51
+ {
52
+ SAIUtil .setCurrentVersion (version );
53
+ }
54
+
26
55
@ Test
27
56
public void testPartitionKey ()
28
57
{
You can’t perform that action at this time.
0 commit comments