[
https://issues.apache.org/jira/browse/TAJO-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyunsik Choi updated TAJO-272:
------------------------------
Attachment: TAJO-272.patch
This patch fixes the bug and adds various unit test for boolean test as follows:
{code:java}
testSimpleEval("select 1 < 3 is true", new String [] {"t"});
testSimpleEval("select 1 < 3 is not true", new String [] {"f"});
testSimpleEval("select 1 < 3 is false", new String [] {"f"});
testSimpleEval("select 1 < 3 is not false", new String [] {"t"});
testSimpleEval("select not (1 < 3 is true)", new String [] {"f"});
testSimpleEval("select not (1 < 3 is not true)", new String [] {"t"});
testSimpleEval("select not (1 < 3 is false)", new String [] {"t"});
testSimpleEval("select not (1 < 3 is not false)", new String [] {"f"});
testSimpleEval("select 1 > 3 is true", new String [] {"f"});
testSimpleEval("select 1 > 3 is not true", new String [] {"t"});
testSimpleEval("select 1 > 3 is false", new String [] {"t"});
testSimpleEval("select 1 > 3 is not false", new String [] {"f"});
testSimpleEval("select not (1 > 3 is true)", new String [] {"t"});
testSimpleEval("select not (1 > 3 is not true)", new String [] {"f"});
testSimpleEval("select not (1 > 3 is false)", new String [] {"f"});
testSimpleEval("select not (1 > 3 is not false)", new String [] {"t"});
{code}
> boolean test does not work correctly
> ------------------------------------
>
> Key: TAJO-272
> URL: https://issues.apache.org/jira/browse/TAJO-272
> Project: Tajo
> Issue Type: Bug
> Components: parser, physical operator
> Reporter: Hyunsik Choi
> Assignee: Hyunsik Choi
> Fix For: 0.2-incubating, 0.3-incubating
>
> Attachments: TAJO-272.patch
>
>
> The current parser does not parse boolean_test correctly. So, it leads to
> wrong results as follows:
> {code:sql}
> select 1 < 3 is false;
> t
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)