Michael J. Carey created ASTERIXDB-1960:
-------------------------------------------
Summary: Possible error in SQL++ boolean WHERE handling?
Key: ASTERIXDB-1960
URL: https://issues.apache.org/jira/browse/ASTERIXDB-1960
Project: Apache AsterixDB
Issue Type: Bug
Environment: Current *DB master (SQL++)
Reporter: Michael J. Carey
Assignee: Yingyi Bu
I'm wondering if:
SELECT VALUE user
FROM GleambookUsers user
WHERE user.userSince;
should work as a lazy shorthand for:
SELECT VALUE user
FROM GleambookUsers user
WHERE user.userSince = TRUE;
Because if it should, it doesn’t, in current *DB.
The first form yields a runtime error:
"Runtime error: the select condition should be of the boolean type!
[IllegalStateException]"
The fact that it gets this far syntactically suggests that maybe it's indeed a
bug?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)