You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/02/13 00:02:12 UTC
[jira] [Created] (DRILL-2235) Assert when NOT IN clause contains
multiple columns
Victoria Markman created DRILL-2235:
---------------------------------------
Summary: Assert when NOT IN clause contains multiple columns
Key: DRILL-2235
URL: https://issues.apache.org/jira/browse/DRILL-2235
Project: Apache Drill
Issue Type: Bug
Components: Query Planning & Optimization
Affects Versions: 0.8.0
Reporter: Victoria Markman
Assignee: Jinfeng Ni
{code}
0: jdbc:drill:schema=dfs> select * from t1;
+------------+------------+------------+
| a1 | b1 | c1 |
+------------+------------+------------+
| 1 | aaaaa | 2015-01-01 |
| 2 | bbbbb | 2015-01-02 |
| 3 | ccccc | 2015-01-03 |
| 4 | null | 2015-01-04 |
| 5 | eeeee | 2015-01-05 |
| 6 | fffff | 2015-01-06 |
| 7 | ggggg | 2015-01-07 |
| null | hhhhh | 2015-01-08 |
| 9 | iiiii | null |
| 10 | jjjjj | 2015-01-10 |
+------------+------------+------------+
10 rows selected (0.056 seconds)
0: jdbc:drill:schema=dfs> select * from t2;
+------------+------------+------------+
| a2 | b2 | c2 |
+------------+------------+------------+
| 0 | zzz | 2014-12-31 |
| 1 | aaaaa | 2015-01-01 |
| 2 | bbbbb | 2015-01-02 |
| 2 | bbbbb | 2015-01-02 |
| 2 | bbbbb | 2015-01-02 |
| 3 | ccccc | 2015-01-03 |
| 4 | ddddd | 2015-01-04 |
| 5 | eeeee | 2015-01-05 |
| 6 | fffff | 2015-01-06 |
| 7 | ggggg | 2015-01-07 |
| 7 | ggggg | 2015-01-07 |
| 8 | hhhhh | 2015-01-08 |
| 9 | iiiii | 2015-01-09 |
+------------+------------+------------+
13 rows selected (0.069 seconds)
{code}
IN clause returns correct result:
{code}
0: jdbc:drill:schema=dfs> select count(*) from t1 where (a1, b1) in (select a2, b2 from t2);
+------------+
| EXPR$0 |
+------------+
| 7 |
+------------+
1 row selected (0.258 seconds)
{code}
NOT IN clause asserts:
{code}
0: jdbc:drill:schema=dfs> select count(*) from t1 where (a1, b1) not in (select a2, b2 from t2);
Query failed: AssertionError: AND(AND(NOT(IS TRUE($7)), IS NOT NULL($3)), IS NOT NULL($4))
Error: exception while executing query: Failure while executing query. (state=,code=0)
{code}
{code}
#Thu Feb 12 12:13:26 EST 2015
git.commit.id.abbrev=de89f36
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)