kakao / s2graph

This code base is retained for historical interest only, please visit Apache Incubator Repo for latest one
https://github.com/apache/incubator-s2graph
Other
250 stars 32 forks source link

Add String Literal in where parser #205

Open daewon opened 8 years ago

daewon commented 8 years ago

Where parser do not provide string literal Because parser cannot compare property value with empty string. and it can be ambiguous between property name or property value

Label meta Info

name: "address", dataType: "string", defaultValue: ""

ex) filter out empty string

as is
where address != 

to be
where address != ''

ex) Ambiguous with property name

as is
where address=address

to be 
whee address='address'