You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/integrationtest/t/planner/core/integration.test
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2435,4 +2435,20 @@ alter table t add index idx2(col1, (CAST(col2->'$.path' AS SIGNED ARRAY)) );
2435
2435
alter table t add index idx3(col1, (CAST(col3->'$.path' AS SIGNED ARRAY)) );
2436
2436
insert into t values (2, null, '{"path":[1]}', '{"path":[1]}');
2437
2437
select /*+ USE_INDEX_MERGE(t, idx2, idx3) */ * FROM t WHERE col1 is null and json_contains(col2->'$.path', '1') and json_contains(col3->'$.path', '1');
2438
-
explain format='brief' select /*+ USE_INDEX_MERGE(t, idx2, idx3) */ * FROM t WHERE col1 is null and json_contains(col2->'$.path', '1') and json_contains(col3->'$.path', '1');
2438
+
explain format='brief' select /*+ USE_INDEX_MERGE(t, idx2, idx3) */ * FROM t WHERE col1 is null and json_contains(col2->'$.path', '1') and json_contains(col3->'$.path', '1');
2439
+
2440
+
drop table if exists t;
2441
+
create table t (a int, b int, c int no_null_index, key a(a), key b(b), key ac(a, c), key bc(b, c));
2442
+
insert into t values (NULL, 1, 1);
2443
+
insert into t values (1, NULL, 1);
2444
+
insert into t values (1, 1, NULL);
2445
+
select * from t where a is null or b is null order by c;
2446
+
explain format='brief' select * from t where a is null or b is null order by c;
2447
+
2448
+
drop table if exists t;
2449
+
create table t (a int no_null_index, b int, c int, key a(a), key b(b), key ac(a, c), key bc(b, c));
2450
+
insert into t values (NULL, 1, 1);
2451
+
insert into t values (1, NULL, 1);
2452
+
insert into t values (1, 1, NULL);
2453
+
select * from t where a is null or b is null order by c;
2454
+
explain format='brief' select * from t where a is null or b is null order by c;
0 commit comments