Bad interaction between parsing predicates and string literals.
robertsdionne opened this issue · comments
Robert Dionne commented
create graph ?world;
insert data into ?world {
/room<000> "named"@[] "Hallway"^^type:text.
/room<000> "connects_to"@[] /room<001>
};
fails with:
[FAIL] [ERROR] Failed to parse BQL statement with error Parser.parse: Failed to consume symbol INSERT_OBJECT, with error Parser.consume: could not consume token &{ERROR "Hallway" [lexer:0:57] predicates require time anchor information; missing "@[} in production INSERT_OBJECT
Xavier Llorà commented
Thx Robert. Will take a look today.
Xavier Llorà commented
Finally got time to get to this. Wrote some more tests to cover the example highlighted. Putting together a fix right now.
Xavier Llorà commented
@robertsdionne I just submitted a fix for this one. Thanks for filling the issue!