google / badwolf

Temporal graph store abstraction layer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad interaction between parsing predicates and string literals.

robertsdionne opened this issue · comments

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

Thx Robert. Will take a look today.

Finally got time to get to this. Wrote some more tests to cover the example highlighted. Putting together a fix right now.

@robertsdionne I just submitted a fix for this one. Thanks for filling the issue!