Merge pull request #1114 from nosqlbench/jeffb/fix-mongodb-scen-formats

Adapter and ops loader fixes
This commit is contained in:
Jonathan Shook
2023-02-15 17:36:00 -06:00
committed by GitHub
5 changed files with 36 additions and 32 deletions

View File

@@ -43,7 +43,7 @@ blocks:
};
truncate-table: |
truncate table <<keyspace:baselines>>.<<table:iot>>;
truncate table TEMPLATE(keyspace, baselines).TEMPLATE(table:iot);
rampup:
params:
cl: <<write_cl:LOCAL_QUORUM>>

View File

@@ -40,7 +40,7 @@ blocks:
PRIMARY KEY ((machine_id), time)
) WITH CLUSTERING ORDER BY (time DESC);
truncate-table: |
truncate table <<keyspace:starter>>.<<table:cqlstarter>>;
truncate table TEMPLATE(keyspace,starter).TEMPLATE(table,cqlstarter);
schema-astra:
params:
prepared: false

View File

@@ -104,8 +104,10 @@ blocks:
"debt": null,
"match1": {match1},
"match2": "{match2}",
"match3": {match2}
{additional_fields}
"match3": {match2},
{
additional_fields
}
}
]
}

View File

@@ -81,7 +81,9 @@ public class OpsLoader {
transformer.checkpointAccesses().forEach((k, v) -> {
layered.addTemplateVariable(k, v);
if (params.containsKey(k)) {
params.remove(k);
}
});
return layered;