mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
revert parser fix, a better solution is needed
This commit is contained in:
parent
0ff6e8a60f
commit
1607eaf3c1
@ -385,9 +385,12 @@ public class NBCLIScenarioParser {
|
|||||||
|
|
||||||
Matcher innerMatcher = innerTemplatePattern.matcher(match);
|
Matcher innerMatcher = innerTemplatePattern.matcher(match);
|
||||||
String[] matchArray = match.split(",");
|
String[] matchArray = match.split(",");
|
||||||
|
// if (matchArray.length!=2) {
|
||||||
|
// throw new BasicError("TEMPLATE form must have two arguments separated by a comma, like 'TEMPLATE(a,b), not '" + match +"'");
|
||||||
|
// }
|
||||||
//TODO: support recursive matches
|
//TODO: support recursive matches
|
||||||
if (innerMatcher.find()) {
|
if (innerMatcher.find()) {
|
||||||
String[] innerMatch = innerMatcher.group(1).split(",");
|
String[] innerMatch = innerMatcher.group(1).split("[,:]");
|
||||||
|
|
||||||
//We want the outer name with the inner default value
|
//We want the outer name with the inner default value
|
||||||
templates.put(matchArray[0], innerMatch[1]);
|
templates.put(matchArray[0], innerMatch[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user