[MDEV-3564] LP:719198 - Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN and materialization Created: 2011-02-15 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Repeatable with maria-5.3 and maria-5.3-mwl89. A crash happens when there is a subquery on both sides of a NOT IN statement. It appears that the right-side table must have at least 100 rows for the crash to occur. backtrace: mysqld: item_subselect.cc:4512: int Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed. #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6 test case: CREATE TABLE t1 ( f1 int(11)) ; CREATE TABLE t2 ( f11 varchar(1) ); CREATE TABLE t4 ( f1 int(11)) ; set session optimizer_switch='materialization=on;in_to_exists=off'; SELECT * |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-02-15 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN |
| Comment by Philip Stoev (Inactive) [ 2011-02-15 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN |
| Comment by Philip Stoev (Inactive) [ 2011-02-15 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN CREATE TABLE t1 ( f1 int(11)) ; CREATE TABLE t2 ( f11 varchar(1) ); CREATE TABLE t4 ( f1 int(11)) ; set session optimizer_switch='materialization=on,in_to_exists=off'; SELECT * |
| Comment by Philip Stoev (Inactive) [ 2011-03-07 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN and materialization |
| Comment by Timour Katchaounov (Inactive) [ 2011-03-30 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN and materialization CREATE TABLE t1 (f1a int, f1b int) ; set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off'; – wrong result with a single column: – correct empty result with two columns: |
| Comment by Timour Katchaounov (Inactive) [ 2011-03-30 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN and materialization |
| Comment by Timour Katchaounov (Inactive) [ 2011-04-04 ] |
|
Re: Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value' failed with subquery on both sides of NOT IN and materialization |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 719198 |