applied counter fix for vue

This commit is contained in:
Jonathan Shook 2020-12-22 13:31:38 -06:00
parent e561b4b847
commit 89841807fd

View File

@ -161,7 +161,7 @@ export default {
defaultYaml.bindings = {}
allColumns.forEach(column => {
let recipe = basictypes.bindings[column.type + "val"];
if (recipe == undefined) {
if (recipe == undefined && column.type.toLowerCase().includes("set", "map", "list") {
const chars = new antlr4.InputStream(column.type);
const lexer = new CQL3Lexer.CQL3Lexer(chars);
lexer.strictMode = false; // do not use js strictMode
@ -184,6 +184,7 @@ export default {
recipe = "Map(HashRange(1,<<map-count-" + column.name + ":5>>)," + basictypes.bindings[type1 + "val"] + "," + basictypes.bindings[type2 + "val"] + ") -> java.util.Map"
} else {
alert("Could not generate recipe for type: " + column.type + " for column: " + column.name)
recipe = "TODO";
}
}
defaultYaml.bindings[column.name] = recipe