mattbishop / sql-jsonpath-js

JS implementation of the SQL/JSONPath dialect, from SQL2016.
MIT License
0 stars 0 forks source link

Add `is unknown` predicate #5

Closed mattbishop closed 1 year ago

mattbishop commented 2 years ago

In SQL JSONPath, is unknown indicates a predicate cannot be determined to be either true or false. For example, given this array:

myArray: ["boo", 5]

This will be true because "boo" is not a number: $.myArray[0] ? (@ > 0) is unknown

This will be false because the actual value can be determined so it is known: $.myArray[1] ? (@ > 0) is unknown

mattbishop commented 1 year ago

Resolved in #20