Skip to content

Commit

Permalink
filling yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkWolters committed May 10, 2024
1 parent 455a938 commit 8b332fb
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 7 deletions.
Expand Up @@ -20,9 +20,9 @@

public class DataApiDropCollectionOp extends DataApiBaseOp {
private final String collectionName;
public DataApiDropCollectionOp(Database db, String dbName) {
public DataApiDropCollectionOp(Database db, String collectionName) {
super(db);
this.collectionName = dbName;
this.collectionName = collectionName;
}

@Override
Expand Down
Expand Up @@ -7,5 +7,5 @@ blocks:
ops:
op1:
create_collection: "collectionName"
dimensions: 128
dimensions: 10
similarity: "cosine"
Expand Up @@ -8,13 +8,11 @@ blocks:
op1:
delete_many: "collectionName"
filters:
- name: "filter1"
conjunction: "and"
- conjunction: "and"
operator: "lt"
field: "field1"
value: 10
- name: "filter2"
conjunction: "or"
- conjunction: "or"
operator: "eq"
field: "field2"
value: "value2"
@@ -0,0 +1,13 @@
scenarios:
default:
delete_one: run driver=dataapi tags==blocks:delete_one cycles=1

blocks:
delete_one:
ops:
op1:
delete_one: "collectionName"
sort:
type: "asc"
field: "field1"
vector: "1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0"
@@ -0,0 +1,9 @@
scenarios:
default:
drop_collection: run driver=dataapi tags==blocks:drop_collection cycles=1

blocks:
drop_collection:
ops:
op1:
drop_collection: "collectionName"
@@ -0,0 +1,25 @@
scenarios:
default:
find: run driver=dataapi tags==blocks:find cycles=10

blocks:
find:
ops:
op1:
find: "collectionName"
filters:
- conjunction: "and"
operator: "lt"
field: "field1"
value: 10
- conjunction: "or"
operator: "eq"
field: "field2"
value: "value2"
sort:
type: "asc"
field: "field1"
projection:
include:
- "field1"
- "field2"
@@ -0,0 +1,25 @@
scenarios:
default:
find_one: run driver=dataapi tags==blocks:find_one cycles=10

blocks:
find_one:
ops:
op1:
find_one: "collectionName"
filters:
- conjunction: "and"
operator: "lt"
field: "field1"
value: 10
- conjunction: "or"
operator: "eq"
field: "field2"
value: "value2"
sort:
type: "asc"
field: "field1"
projection:
include:
- "field1"
- "field2"
@@ -0,0 +1,25 @@
scenarios:
default:
find_one_and_delete: run driver=dataapi tags==blocks:find_one_and_delete cycles=1

blocks:
find_one_and_delete:
ops:
op1:
find_one_and_delete: "collectionName"
filters:
- conjunction: "and"
operator: "lt"
field: "field1"
value: 10
- conjunction: "or"
operator: "eq"
field: "field2"
value: "value2"
sort:
type: "asc"
field: "field1"
projection:
include:
- "field1"
- "field2"

0 comments on commit 8b332fb

Please sign in to comment.